123
|
@ -1,5 +0,0 @@
|
|||
# 默认忽略的文件
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# 基于编辑器的 HTTP 客户端请求
|
||||
/httpRequests/
|
|
@ -1,13 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="cn.fjdmy.uniapp.UniappProjectDataService">
|
||||
<option name="basePath" value="$PROJECT_DIR$" />
|
||||
<option name="generalBasePath" value="$PROJECT_DIR$" />
|
||||
<option name="manifestPath" value="$PROJECT_DIR$/manifest.json" />
|
||||
<option name="pagesPath" value="$PROJECT_DIR$/pages.json" />
|
||||
<option name="scanNum" value="1" />
|
||||
<option name="type" value="store" />
|
||||
<option name="uniapp" value="true" />
|
||||
<option name="vueVersion" value="2" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptLibraryMappings">
|
||||
<excludedPredefinedLibrary name="uni-api" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/云商会.iml" filepath="$PROJECT_DIR$/.idea/云商会.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
|
@ -1,6 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -1,12 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
68
App.vue
|
@ -2,17 +2,19 @@
|
|||
import Vue from 'vue'
|
||||
import store from './store/index.js'
|
||||
import updateCustomBarInfo from './tuniao-ui/libs/function/updateCustomBarInfo.js'
|
||||
|
||||
import {
|
||||
UserLogin
|
||||
} from '@/util/api.js';
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
var Gid = uni.getStorageSync('Gid');
|
||||
if(Gid){
|
||||
store.commit('$tStore', {
|
||||
name: 'Gid',
|
||||
value: Gid
|
||||
})
|
||||
}
|
||||
uni.getSystemInfo({
|
||||
var Gid = uni.getStorageSync('Gid');
|
||||
if (Gid) {
|
||||
store.commit('$tStore', {
|
||||
name: 'Gid',
|
||||
value: Gid
|
||||
})
|
||||
}
|
||||
uni.getSystemInfo({
|
||||
success: function(e) {
|
||||
// #ifndef H5
|
||||
// 获取手机系统版本
|
||||
|
@ -91,6 +93,54 @@
|
|||
// console.log('App Hide')
|
||||
},
|
||||
methods: {
|
||||
getUserLogin(returnA) {
|
||||
uni.getProvider({
|
||||
service: 'oauth',
|
||||
success: function(res) {
|
||||
console.log(res)
|
||||
if (~res.provider.indexOf('weixin')) {
|
||||
uni.login({
|
||||
provider: "weixin",
|
||||
success: function(loginRes) {
|
||||
UserLogin({
|
||||
code: loginRes.code
|
||||
})
|
||||
.then(response => {
|
||||
console.log(response);
|
||||
if (response.code == 1) {
|
||||
console.log();
|
||||
if (typeof(response.data.id) == 'undefined') {
|
||||
uni.setStorageSync('openid', response.data
|
||||
.openid);
|
||||
} else {
|
||||
uni.setStorageSync('uid', response.data
|
||||
.id);
|
||||
}
|
||||
|
||||
} else {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: response.msg,
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
//returnA(response);
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
icon: 'none',
|
||||
title: error,
|
||||
duration: 2000
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
} else {
|
||||
console.log(123);
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
addWidthToImages(html) {
|
||||
// 匹配并更新已有 style 属性的 img 标签
|
||||
html = html.replace(/(<img\b[^>]*\bstyle\s*=\s*['"])([^'"]*)(['"][^>]*>)/g,
|
||||
|
|
190
manifest.json
|
@ -1,97 +1,97 @@
|
|||
{
|
||||
"name": "智慧云商协",
|
||||
"appid": "__UNI__F702B81",
|
||||
"description": "",
|
||||
"versionName": "1.0.0",
|
||||
"versionCode": "100",
|
||||
"transformPx": false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus": {
|
||||
"usingComponents": true,
|
||||
"nvueStyleCompiler": "uni-app",
|
||||
"compilerVersion": 3,
|
||||
"splashscreen": {
|
||||
"alwaysShowBeforeRender": true,
|
||||
"waiting": true,
|
||||
"autoclose": true,
|
||||
"delay": 0
|
||||
},
|
||||
/* 模块配置 */
|
||||
"modules": {},
|
||||
/* 应用发布信息 */
|
||||
"distribute": {
|
||||
/* android打包配置 */
|
||||
"android": {
|
||||
"permissions": [
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
]
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios": {},
|
||||
/* SDK配置 */
|
||||
"sdkConfigs": {
|
||||
"share": {}
|
||||
}
|
||||
}
|
||||
},
|
||||
/* 快应用特有相关 */
|
||||
"quickapp": {},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin": {
|
||||
"appid": "wxabc0f954cce7fe56",
|
||||
"setting": {
|
||||
"urlCheck": false,
|
||||
"minified": true,
|
||||
"postcss": true
|
||||
},
|
||||
"usingComponents": true
|
||||
},
|
||||
"mp-alipay": {
|
||||
"usingComponents": true
|
||||
},
|
||||
"mp-baidu": {
|
||||
"usingComponents": true
|
||||
},
|
||||
"mp-toutiao": {
|
||||
"usingComponents": true
|
||||
},
|
||||
"uniStatistics": {
|
||||
"enable": false
|
||||
},
|
||||
"vueVersion": "2",
|
||||
"h5": {
|
||||
"router": {
|
||||
"base": ""
|
||||
},
|
||||
"template": "",
|
||||
"devServer": {
|
||||
"port": 80,
|
||||
"https": false,
|
||||
"disableHostCheck": true,
|
||||
"proxy": {
|
||||
"/api": {
|
||||
"target": "http://192.168.3.130", //域名
|
||||
"changeOrigin": true,
|
||||
"secure": false,
|
||||
"pathRewrite": {
|
||||
"^/api": "/api"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"name" : "智慧云商协",
|
||||
"appid" : "__UNI__F702B81",
|
||||
"description" : "",
|
||||
"versionName" : "1.0.0",
|
||||
"versionCode" : "100",
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
"app-plus" : {
|
||||
"usingComponents" : true,
|
||||
"nvueStyleCompiler" : "uni-app",
|
||||
"compilerVersion" : 3,
|
||||
"splashscreen" : {
|
||||
"alwaysShowBeforeRender" : true,
|
||||
"waiting" : true,
|
||||
"autoclose" : true,
|
||||
"delay" : 0
|
||||
},
|
||||
/* 模块配置 */
|
||||
"modules" : {},
|
||||
/* 应用发布信息 */
|
||||
"distribute" : {
|
||||
/* android打包配置 */
|
||||
"android" : {
|
||||
"permissions" : [
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||
]
|
||||
},
|
||||
/* ios打包配置 */
|
||||
"ios" : {},
|
||||
/* SDK配置 */
|
||||
"sdkConfigs" : {
|
||||
"share" : {}
|
||||
}
|
||||
}
|
||||
},
|
||||
/* 快应用特有相关 */
|
||||
"quickapp" : {},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin" : {
|
||||
"appid" : "wx51c40ff1c6337652",
|
||||
"setting" : {
|
||||
"urlCheck" : true,
|
||||
"minified" : true,
|
||||
"postcss" : true
|
||||
},
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-alipay" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-baidu" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"mp-toutiao" : {
|
||||
"usingComponents" : true
|
||||
},
|
||||
"uniStatistics" : {
|
||||
"enable" : false
|
||||
},
|
||||
"vueVersion" : "2",
|
||||
"h5" : {
|
||||
"router" : {
|
||||
"base" : ""
|
||||
},
|
||||
"template" : "",
|
||||
"devServer" : {
|
||||
"port" : 80,
|
||||
"https" : false,
|
||||
"disableHostCheck" : true,
|
||||
"proxy" : {
|
||||
"/api" : {
|
||||
"target" : "http://192.168.3.130", //域名
|
||||
"changeOrigin" : true,
|
||||
"secure" : false,
|
||||
"pathRewrite" : {
|
||||
"^/api" : "/api"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -14,7 +14,8 @@
|
|||
</view>
|
||||
</tn-nav-bar>
|
||||
<view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
||||
<view class="tn-flex tn-flex-col-center tn-flex-row-between" @click="selectShow= true" style="padding: 30rpx;">
|
||||
<view class="tn-flex tn-flex-col-center tn-flex-row-between" @click="selectShow= true"
|
||||
style="padding: 30rpx;">
|
||||
<view>
|
||||
<text>{{HomeTitle}}</text>
|
||||
<text class="tn-icon-down-triangle"></text>
|
||||
|
@ -43,11 +44,12 @@
|
|||
<!-- 分类内容子栏目 -->
|
||||
<view class="tn-classify__content__sub-classify__content ">
|
||||
<view v-for="(item,index) in list" :key="index">
|
||||
<view
|
||||
<view v-if="item.neirong"
|
||||
style="font-weight: 300;;background-color: #EBF4F7;color:#4AA2EF;width: 100%;height: 60rpx;line-height: 60rpx;text-align: center;">
|
||||
{{item.position_name}}
|
||||
</view>
|
||||
<view v-if="item.neirong" v-for="(v,k) in item.neirong" @click="tn('/pages/index/user_info')"
|
||||
<view v-if="item.neirong" v-for="(v,k) in item.neirong"
|
||||
@click="tn('/pages/index/my_card?id='+v.member_id)"
|
||||
class="tn-classify__content__sub-classify__content__item tn-flex tn-flex-center tn-flex-col-center">
|
||||
<!-- 标题,有需要可以显示出来 -->
|
||||
<view style="width: 100rpx;height: 100rpx">
|
||||
|
@ -60,36 +62,38 @@
|
|||
<text>{{v.nikename}}</text>
|
||||
<text style="margin-left: 50rpx;">{{v.nation}}</text>
|
||||
</view>
|
||||
<view style="font-size: 24rpx;margin-top: 10rpx;">
|
||||
<view class="tn-text-ellipsis-2"
|
||||
style="font-size: 24rpx;margin-top: 10rpx;">
|
||||
<text>{{v.enterprise_Introduction}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="!item.neirong" style="text-align: center;padding: 20rpx">
|
||||
暂无
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view v-if="list.length==0" style="text-align: center;padding: 20rpx">
|
||||
暂无
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view @click="tn('/pages/index/apply_in')" style="line-height: 40rpx;text-align: center;position: fixed;bottom:15%;right: 20rpx;width: 120rpx;height: 120rpx;border-radius: 50%;background: linear-gradient(270deg, #EE7E45, #EE9657);-->
|
||||
<!--box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.2);">-->
|
||||
<!-- <view style="color: #fff;letter-spacing: 2rpx;padding: 20rpx;font-size: 32rpx;">申请入会-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<tn-select v-model="selectShow" mode="single" :list="selectList" @confirm="confirm"></tn-select>
|
||||
<!-- <view @click="tn('/pages/index/apply_in')" style="line-height: 40rpx;text-align: center;position: fixed;bottom:15%;right: 20rpx;width: 120rpx;height: 120rpx;border-radius: 50%;background: linear-gradient(270deg, #EE7E45, #EE9657);-->
|
||||
<!--box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.2);">-->
|
||||
<!-- <view style="color: #fff;letter-spacing: 2rpx;padding: 20rpx;font-size: 32rpx;">申请入会-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<tn-select v-model="selectShow" mode="single" :list="selectList" @confirm="confirm"></tn-select>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
addressList, associationIndex, newIndustryIndex
|
||||
} from '@/util/api.js';
|
||||
import store from "@/store";
|
||||
import {
|
||||
addressList,
|
||||
associationIndex,
|
||||
newIndustryIndex
|
||||
} from '@/util/api.js';
|
||||
import store from "@/store";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
@ -108,13 +112,13 @@ import store from "@/store";
|
|||
rightScrollViewTop: 0,
|
||||
// 当前选中的tabbar序号
|
||||
currentTabbarIndex: 0,
|
||||
apiImgUrl:this.$store.state.imgUrl,
|
||||
industry_list:[],
|
||||
leftId:0,
|
||||
selectShow:false,
|
||||
HomeTitle:'',
|
||||
selectList:[],
|
||||
gid:store.state.Gid
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
industry_list: [],
|
||||
leftId: 0,
|
||||
selectShow: false,
|
||||
HomeTitle: '',
|
||||
selectList: [],
|
||||
gid: store.state.Gid
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
@ -127,7 +131,8 @@ import store from "@/store";
|
|||
if (this.currentTabbarIndex > 0 && index === this.currentTabbarIndex - 1) {
|
||||
clazz += ' tn-classify__tabbar__item--active--prev'
|
||||
}
|
||||
if (this.currentTabbarIndex < this.industry_list.length && index === this.currentTabbarIndex + 1) {
|
||||
if (this.currentTabbarIndex < this.industry_list.length && index === this.currentTabbarIndex +
|
||||
1) {
|
||||
clazz += ' tn-classify__tabbar__item--active--next'
|
||||
}
|
||||
return clazz
|
||||
|
@ -135,90 +140,90 @@ import store from "@/store";
|
|||
}
|
||||
}
|
||||
},
|
||||
onLoad(d) {
|
||||
console.log(d.id);
|
||||
if(typeof (d.id) != 'undefined'){
|
||||
this.gid=d.id;
|
||||
}
|
||||
this.getIndustryList();
|
||||
this.getAssociationIndex();
|
||||
},
|
||||
onLoad(d) {
|
||||
console.log(d.id);
|
||||
if (typeof(d.id) != 'undefined') {
|
||||
this.gid = d.id;
|
||||
}
|
||||
this.getIndustryList();
|
||||
this.getAssociationIndex();
|
||||
},
|
||||
methods: {
|
||||
confirm(d){
|
||||
confirm(d) {
|
||||
|
||||
var info = d[0];
|
||||
this.list = [];
|
||||
this.gid=info.value;
|
||||
this.getAssociationIndex();
|
||||
this.getIndustryList();
|
||||
},
|
||||
getAssociationIndex() {
|
||||
associationIndex()
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
const transformedSelectList = key.map(item => ({
|
||||
value: item.id,
|
||||
label: item.association_name
|
||||
}));
|
||||
const foundNumber = transformedSelectList.find((element) => element.value == this.gid);
|
||||
this.HomeTitle = foundNumber.label;
|
||||
this.selectList = transformedSelectList;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
getIndustryList(){
|
||||
newIndustryIndex({
|
||||
association_id: this.gid
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if(res.code==1){
|
||||
this.industry_list=res.data;
|
||||
this.leftId=res.data[0].id;
|
||||
this.getAddressList();
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
getAddressList(){
|
||||
addressList({
|
||||
association_id:this.gid,
|
||||
industry_id:this.leftId
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if(res.code==1){
|
||||
this.list=res.data.ret;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
var info = d[0];
|
||||
this.list = [];
|
||||
this.gid = info.value;
|
||||
this.getAssociationIndex();
|
||||
this.getIndustryList();
|
||||
},
|
||||
getAssociationIndex() {
|
||||
associationIndex()
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
const transformedSelectList = key.map(item => ({
|
||||
value: item.id,
|
||||
label: item.association_name
|
||||
}));
|
||||
const foundNumber = transformedSelectList.find((element) => element.value == this.gid);
|
||||
this.HomeTitle = foundNumber.label;
|
||||
this.selectList = transformedSelectList;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
getIndustryList() {
|
||||
newIndustryIndex({
|
||||
association_id: this.gid
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
this.industry_list = res.data;
|
||||
this.leftId = res.data[0].id;
|
||||
this.getAddressList();
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
getAddressList() {
|
||||
addressList({
|
||||
association_id: this.gid,
|
||||
industry_id: this.leftId
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
this.list = res.data.ret;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
clickClassifyNav(index) {
|
||||
this.currentTabbarIndex = index;
|
||||
this.leftId=this.industry_list[index].id;
|
||||
this.list=[];
|
||||
this.getAddressList();
|
||||
this.leftId = this.industry_list[index].id;
|
||||
this.list = [];
|
||||
this.getAddressList();
|
||||
//this.handleLeftScrollView(index)
|
||||
//this.switchClassifyContent();
|
||||
},
|
||||
|
|
|
@ -1,64 +1,64 @@
|
|||
<template>
|
||||
<view style="letter-spacing: 1rpx;">
|
||||
<tn-nav-bar :isBack="false" :bottomShadow="true" backgroundColor="#FFFFFF">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
||||
<view class="tn-margin-top"
|
||||
style="text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
|
||||
<tn-tabs :list="[{name:info.association_name}]" :current="topCurrent" activeColor="#000" :bold="false"
|
||||
:fontSize="36"></tn-tabs>
|
||||
</view>
|
||||
</view>
|
||||
</tn-nav-bar>
|
||||
<view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
||||
<view style="position: relative;">
|
||||
<swiper class="card-swiper" :circular="true" :autoplay="true" duration="500" interval="8000"
|
||||
@change="cardSwiper" style="height: 370rpx;">
|
||||
<swiper-item
|
||||
style="padding: 0px;border-radius: 0;">
|
||||
<view class="swiper-item image-banner"
|
||||
:style="'background-image:url('+ apiImgUrl+info.association_image + ');background-size: 100%; background-repeat: no-repeat;border-radius: 0;'">
|
||||
</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view style="position: absolute;top: 10px;right: 10px;">
|
||||
<view
|
||||
style="position: relative;;width: 70rpx;height: 60rpx;background-color: rgba(255, 255, 255, 0.9);border-radius: 8rpx;box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.2);">
|
||||
<image src="/static/c1455.png" mode="widthFix"
|
||||
style="width: 40rpx;position: absolute;left: 0;right: 0;margin: 0 auto;top: 15rpx;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding:20rpx 30rpx;">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-between" style="font-size: 30rpx;">
|
||||
<view>协会地址</view>
|
||||
<view>{{info.association_dizhi}}</view>
|
||||
</view>
|
||||
<view style="margin: 20rpx 0rpx;font-size: 30rpx;"
|
||||
class="custom-nav tn-flex tn-flex-col-center tn-flex-row-between">
|
||||
<view>协会邮箱</view>
|
||||
<view>{{info.association_emal}}</view>
|
||||
</view>
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-between" style="font-size: 30rpx;">
|
||||
<view>联系方式</view>
|
||||
<view>{{info.association_phone}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 10rpx;background-color: #EBF4F7;"></view>
|
||||
<view style="padding:10rpx 30rpx 200rpx 30rpx;">
|
||||
<tn-tabs :list="list" :isScroll="false" :activeItemStyle="{'fontWeight':'600','fontSize':'30rpx'}"
|
||||
style="font-weight: ;" activeColor="#000" :barWidth="50" :barHeight="6"
|
||||
:barStyle="{'background': 'linear-gradient(-45deg, #4AA2EF, #3A7FF4)','borderRadius': '4rpx'}"
|
||||
:current="current" name="name" @change="change"></tn-tabs>
|
||||
<!-- <view style="margin-top: 20rpx;position: relative;">-->
|
||||
<!-- <image src="/static/b1.png"-->
|
||||
<!-- style="width: 100rpx;height: 100rpx;position: absolute;left: 0;right: 0;top: 38%;z-index: 10;margin: 0 auto;">-->
|
||||
<!-- </image>-->
|
||||
<!-- <image src="/static/t7.jpg" style="width: 100%;border-radius: 20rpx;" mode="widthFix"></image>-->
|
||||
<!-- </view>-->
|
||||
<view style="line-height: 50rpx; text-indent: 2em;margin-top: 20rpx;" v-if="current==0">
|
||||
<view style="letter-spacing: 1rpx;">
|
||||
<tn-nav-bar :isBack="false" :bottomShadow="true" backgroundColor="#FFFFFF">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
||||
<view class="tn-margin-top"
|
||||
style="text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
|
||||
<tn-tabs :list="[{name:info.association_name}]" :current="topCurrent" activeColor="#000" :bold="false"
|
||||
:fontSize="36"></tn-tabs>
|
||||
</view>
|
||||
</view>
|
||||
</tn-nav-bar>
|
||||
<view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
||||
<view style="position: relative;">
|
||||
<swiper class="card-swiper" :circular="true" :autoplay="true" duration="500" interval="8000"
|
||||
@change="cardSwiper" style="height: 370rpx;">
|
||||
<swiper-item
|
||||
style="padding: 0px;border-radius: 0;">
|
||||
<view class="swiper-item image-banner"
|
||||
:style="'background-image:url('+ apiImgUrl+info.association_image + ');background-size:auto 100% ; background-position:center; background-repeat: no-repeat;border-radius: 0;'">
|
||||
</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<!-- <view style="position: absolute;top: 10px;right: 10px;">-->
|
||||
<!-- <view-->
|
||||
<!-- style="position: relative;;width: 70rpx;height: 60rpx;background-color: rgba(255, 255, 255, 0.9);border-radius: 8rpx;box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.2);">-->
|
||||
<!-- <image src="/static/c1455.png" mode="widthFix"-->
|
||||
<!-- style="width: 40rpx;position: absolute;left: 0;right: 0;margin: 0 auto;top: 15rpx;"></image>-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding:20rpx 30rpx;">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-between" style="font-size: 30rpx;">
|
||||
<view>协会地址</view>
|
||||
<view>{{info.association_dizhi}}</view>
|
||||
</view>
|
||||
<view style="margin: 20rpx 0rpx;font-size: 30rpx;"
|
||||
class="custom-nav tn-flex tn-flex-col-center tn-flex-row-between">
|
||||
<view>协会邮箱</view>
|
||||
<view>{{info.association_emal}}</view>
|
||||
</view>
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-between" style="font-size: 30rpx;">
|
||||
<view>联系方式</view>
|
||||
<view>{{info.association_phone}}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 10rpx;background-color: #EBF4F7;"></view>
|
||||
<view style="padding:10rpx 30rpx 200rpx 30rpx;">
|
||||
<tn-tabs :list="list" :isScroll="false" :activeItemStyle="{'fontWeight':'600','fontSize':'30rpx'}"
|
||||
style="font-weight: ;" activeColor="#000" :barWidth="50" :barHeight="6"
|
||||
:barStyle="{'background': 'linear-gradient(-45deg, #4AA2EF, #3A7FF4)','borderRadius': '4rpx'}"
|
||||
:current="current" name="name" @change="change"></tn-tabs>
|
||||
<!-- <view style="margin-top: 20rpx;position: relative;">-->
|
||||
<!-- <image src="/static/b1.png"-->
|
||||
<!-- style="width: 100rpx;height: 100rpx;position: absolute;left: 0;right: 0;top: 38%;z-index: 10;margin: 0 auto;">-->
|
||||
<!-- </image>-->
|
||||
<!-- <image src="/static/t7.jpg" style="width: 100%;border-radius: 20rpx;" mode="widthFix"></image>-->
|
||||
<!-- </view>-->
|
||||
<view style="line-height: 50rpx; text-indent: 2em;margin-top: 20rpx;" v-if="current==0">
|
||||
<div v-html="info.association_desc"></div>
|
||||
</view>
|
||||
</view>
|
||||
<view style="line-height: 50rpx; text-indent: 2em;margin-top: 20rpx;" v-if="current==2">
|
||||
<div v-html="info.association_guizhang"></div>
|
||||
</view>
|
||||
|
@ -66,36 +66,42 @@
|
|||
<div v-html="info.ruhuixizhu"></div>
|
||||
</view>
|
||||
<view style="padding: 30rpx;text-align: center; " v-if="current==1">
|
||||
<template v-for="(item, index) in architecture">
|
||||
<tn-button backgroundColor="#E83A30" height="50rpx" width="250rpx" fontColor="#ffffff">{{item.position_name}}</tn-button>
|
||||
<tn-grid align="center" col="5">
|
||||
<tn-grid-item v-if="item.neirong" style="width:20%" v-for="(v,i) in item.neirong">
|
||||
<view style="padding: 30rpx;">
|
||||
<image :src="apiImgUrl+v.photo_image" style="width: 100rpx;height: 100rpx;border-radius: 50%;">
|
||||
</image>
|
||||
<view>{{v.nikename}}</view>
|
||||
</view>
|
||||
</tn-grid-item>
|
||||
<tn-grid-item v-if="!item.neirong" style="width:20%">
|
||||
<view style="padding: 30rpx;">
|
||||
<view>暂无</view>
|
||||
</view>
|
||||
</tn-grid-item>
|
||||
</tn-grid>
|
||||
<template v-for="(item, index) in architecture">
|
||||
<tn-button backgroundColor="#E83A30" height="50rpx" width="250rpx" fontColor="#ffffff">
|
||||
{{item.position_name}}
|
||||
</tn-button>
|
||||
<tn-grid align="center" col="5">
|
||||
<tn-grid-item v-if="item.neirong" style="width:20%" v-for="(v,i) in item.neirong">
|
||||
<view style="padding: 30rpx;">
|
||||
<image :src="apiImgUrl+v.photo_image" style="width: 100rpx;height: 100rpx;border-radius: 50%;">
|
||||
</image>
|
||||
<view>{{v.nikename}}</view>
|
||||
</view>
|
||||
</tn-grid-item>
|
||||
<tn-grid-item v-if="!item.neirong" style="width:20%">
|
||||
<view style="padding: 30rpx;">
|
||||
<view>暂无</view>
|
||||
</view>
|
||||
</tn-grid-item>
|
||||
</tn-grid>
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
<view style="position: fixed;bottom: 250rpx;width: 100%;">
|
||||
<view class="tn-flex tn-flex-row-around">
|
||||
<view @click="openUrl('/pages/index/directory?id='+info.id)"
|
||||
style="color: #fff;;letter-spacing: 10rpx;line-height: 70rpx;;text-align: center;;width: 300rpx;height: 70rpx;background: linear-gradient(-45deg, #4AA2EF, #3A7FF4);border-radius: 50rpx;">
|
||||
会员名录</view>
|
||||
<view v-if="userInfo.association_id!=info.id" @click="openUrl('/pages/index/apply_in')"
|
||||
style="color: #fff;;letter-spacing: 10rpx;line-height: 70rpx;;text-align: center;;width: 300rpx;height: 70rpx;background: linear-gradient(270deg, #EE7E45, #EE9657);border-radius: 50rpx;">
|
||||
申请入会</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view v-if="userInfo.association_id!=info.id" @click="openUrl('/pages/index/apply_in')"
|
||||
style="position: fixed;bottom: 260rpx;right: 20rpx;line-height: 35rpx;color: #fff;;text-align: center;width: 100rpx;height: 100rpx;background: linear-gradient(270deg, #EE7E45, #EE9657);border-radius: 50%;">
|
||||
<view style="padding-top: 16rpx;">申请</view>
|
||||
<view>入会</view>
|
||||
</view>
|
||||
<view style="position: fixed;bottom: 250rpx; width: 100%;">
|
||||
<view class="tn-flex tn-flex-row-around" >
|
||||
<view @click="openUrl('/pages/index/directory?id='+info.id)"
|
||||
style="position: absolute; right:20rpx;color: #fff; line-height:35rpx;text-align: center;width: 100rpx;height: 100rpx;background: linear-gradient(-45deg, #4AA2EF, #3A7FF4);border-radius: 50%;">
|
||||
<view style="padding-top: 16rpx;">会员</view> <view>名录</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
@ -103,59 +109,40 @@ import {
|
|||
associationInfo, architectureList, getUserIndex,
|
||||
} from '@/util/api.js';
|
||||
import store from "@/store";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
topCurrent: 0,
|
||||
swiperList: [{
|
||||
url: '/static/banner1.jpg',
|
||||
}],
|
||||
list: [{
|
||||
name: '协会简介'
|
||||
}, {
|
||||
name: '组织架构'
|
||||
}, {
|
||||
name: '规章制度',
|
||||
}, {
|
||||
name: '入会须知',
|
||||
}],
|
||||
current: 0,
|
||||
cardCur: 0,
|
||||
info:{},
|
||||
apiImgUrl:this.$store.state.imgUrl,
|
||||
architecture:[],
|
||||
userInfo:{}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getUserInfo(){
|
||||
var uid = uni.getStorageSync('uid');
|
||||
if(uid){
|
||||
getUserIndex({member_id:uid})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if(res.code==1){
|
||||
this.userInfo = res.data;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
getArchitectureList() {
|
||||
architectureList({
|
||||
association_id: store.state.Gid,
|
||||
})
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
topCurrent: 0,
|
||||
swiperList: [{
|
||||
url: '/static/banner1.jpg',
|
||||
}],
|
||||
list: [{
|
||||
name: '协会简介'
|
||||
}, {
|
||||
name: '组织架构'
|
||||
}, {
|
||||
name: '规章制度',
|
||||
}, {
|
||||
name: '入会须知',
|
||||
}],
|
||||
current: 0,
|
||||
cardCur: 0,
|
||||
info: {},
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
architecture: [],
|
||||
userInfo: {}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getUserInfo() {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
if (uid) {
|
||||
getUserIndex({member_id: uid})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if(res.code==1){
|
||||
this.architecture=res.data;
|
||||
if (res.code == 1) {
|
||||
this.userInfo = res.data;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
@ -165,61 +152,85 @@ import store from "@/store";
|
|||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
getAssociationInfo(){
|
||||
console.log('discovery');
|
||||
associationInfo({
|
||||
association_id: store.state.Gid,
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if(res.code==1){
|
||||
var key=res.data;
|
||||
if(key.association_desc.indexOf("<img")!=-1){
|
||||
key.association_desc=getApp().addWidthToImages(key.association_desc);
|
||||
}
|
||||
this.info=key;
|
||||
}
|
||||
|
||||
},
|
||||
getArchitectureList() {
|
||||
architectureList({
|
||||
association_id: store.state.Gid,
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
this.architecture = res.data;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
getAssociationInfo() {
|
||||
console.log('discovery');
|
||||
associationInfo({
|
||||
association_id: store.state.Gid,
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
if (key.association_desc.indexOf("<img") != -1) {
|
||||
key.association_desc = getApp().addWidthToImages(key.association_desc);
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
getNewInfo() {
|
||||
this.getAssociationInfo();
|
||||
this.getArchitectureList();
|
||||
this.getUserInfo();
|
||||
},
|
||||
openUrl(url) {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
if(!uid){
|
||||
uni.showToast({
|
||||
title: '请登录!',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
})
|
||||
},
|
||||
openPages(url){
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
})
|
||||
},
|
||||
change(e) {
|
||||
this.current = e;
|
||||
},
|
||||
}
|
||||
}
|
||||
this.info = key;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
getNewInfo() {
|
||||
this.getAssociationInfo();
|
||||
this.getArchitectureList();
|
||||
this.getUserInfo();
|
||||
},
|
||||
openUrl(url) {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
if (!uid) {
|
||||
uni.showToast({
|
||||
title: '请登录!',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
})
|
||||
},
|
||||
openPages(url) {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
})
|
||||
},
|
||||
change(e) {
|
||||
this.current = e;
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
.tn-flex-row-around{
|
||||
position: relative;
|
||||
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<view style="margin: 15rpx 0rpx;">
|
||||
<text style="color: #BE7E28;">●</text>
|
||||
<text style="margin-left: 10rpx;font-weight: 600;">结束时间:</text>
|
||||
<text style="color: #979797;">{{info.activity_end_time}}</text>
|
||||
<text style="color: #979797;">{{info.activity_end_time}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text style="color: #DB5022;">●</text>
|
||||
|
@ -37,43 +37,44 @@
|
|||
</view>
|
||||
<view style="margin-top: 60rpx;font-size: 32rpx;font-weight: 600;">活动介绍</view>
|
||||
<view>
|
||||
<view class="ks_html" style="line-height: 50rpx;margin-top: 20rpx;padding-bottom:180rpx">
|
||||
<div v-html="info.activity_content"></div>
|
||||
</view>
|
||||
<view class="ks_html" style="line-height: 50rpx;margin-top: 20rpx;padding-bottom:180rpx">
|
||||
<div v-html="info.activity_content"></div>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="position: fixed;bottom: 30rpx;background-color: #ffffff;padding: 30rpx;width: 100%;">
|
||||
<!-- <view class="tn-flex tn-flex-center tn-flex-row-center tn-flex-col-center"-->
|
||||
<!-- style="background-color: #FDF2EC;text-align: center;padding: 30rpx;">-->
|
||||
<!-- <view style="font-weight: 600;">-->
|
||||
<!-- <text style="margin-right: 10rpx;">距报名结束剩<text style="color: #F73909;">119</text>天</text>-->
|
||||
<!-- <tn-count-down fontColor="#F73909" backgroundColor="#FDF2EC" :fontSize="30" :timestamp="86400"-->
|
||||
<!-- :showDays="true" :showHours="true" :showSeconds="true" :showMinutes="true"></tn-count-down>-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<view style="text-align: center;margin-top: 30rpx;">
|
||||
<tn-button v-if="info.type=='未开始'" backgroundColor="#F73909" height="80rpx" width="100%" fontColor="#ffffff"
|
||||
shape="round">报名</tn-button>
|
||||
<tn-button v-if="info.type=='已结束'||info.type=='进行中'" disabled backgroundColor="#E6E6E6" height="80rpx" width="100%" fontColor="#ffffff"
|
||||
shape="round">报名已结束</tn-button>
|
||||
<view style="position: fixed;bottom: 30rpx; width: 100%;">
|
||||
<!-- <view class="tn-flex tn-flex-center tn-flex-row-center tn-flex-col-center"-->
|
||||
<!-- style="background-color: #FDF2EC;text-align: center;padding: 30rpx;">-->
|
||||
<!-- <view style="font-weight: 600;">-->
|
||||
<!-- <text style="margin-right: 10rpx;">距报名结束剩<text style="color: #F73909;">119</text>天</text>-->
|
||||
<!-- <tn-count-down fontColor="#F73909" backgroundColor="#FDF2EC" :fontSize="30" :timestamp="86400"-->
|
||||
<!-- :showDays="true" :showHours="true" :showSeconds="true" :showMinutes="true"></tn-count-down>-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
<view style="text-align: center;padding:0 30rpx;">
|
||||
<tn-button @click="application_add" v-if="info.type=='未开始'" backgroundColor="#F73909" height="80rpx"
|
||||
width="100%" fontColor="#ffffff" shape="round">报名</tn-button>
|
||||
<tn-button v-if="info.type=='已结束'||info.type=='进行中'" disabled backgroundColor="#E6E6E6" height="80rpx"
|
||||
width="100%" fontColor="#ffffff" shape="round">报名已结束</tn-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
eventInfo,
|
||||
} from '@/util/api.js';
|
||||
import store from '@/store/index.js'
|
||||
import {
|
||||
eventInfo,
|
||||
applicationAdd
|
||||
} from '@/util/api.js';
|
||||
import store from '@/store/index.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
topCurrent: 0,
|
||||
id: 0,
|
||||
info:{},
|
||||
apiImgUrl:this.$store.state.imgUrl
|
||||
id: 0,
|
||||
info: {},
|
||||
apiImgUrl: this.$store.state.imgUrl
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
@ -89,38 +90,77 @@ import store from '@/store/index.js'
|
|||
// link: "http://ysh.0rui.cn/#/pages/index/event_info", // 分享链接,该链接域名或路径必须与当前页面对应的公众号 JS 安全域名一致
|
||||
// }
|
||||
// })
|
||||
// var id = this.$route.query.id;
|
||||
// this.id = id;
|
||||
// this.getEventInfo();
|
||||
// var id = this.$route.query.id;
|
||||
// this.id = id;
|
||||
// this.getEventInfo();
|
||||
},
|
||||
onLoad(d) {
|
||||
console.log(d);
|
||||
this.id = d.id;
|
||||
this.getEventInfo();
|
||||
},
|
||||
onLoad(d) {
|
||||
console.log(d);
|
||||
this.id = d.id;
|
||||
this.getEventInfo();
|
||||
},
|
||||
methods: {
|
||||
getEventInfo() {
|
||||
eventInfo({
|
||||
association_id: store.state.Gid,
|
||||
id: this.id
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
var key=res.data;
|
||||
if(key.activity_content.indexOf("<img")!=-1){
|
||||
key.activity_content=getApp().addWidthToImages(key.activity_content);
|
||||
}
|
||||
this.info=key;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
application_add() {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
if (!uid) {
|
||||
uni.showToast({
|
||||
title: '请登录后报名!',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
return;
|
||||
}
|
||||
applicationAdd({
|
||||
association_id: store.state.Gid,
|
||||
member_id: uid,
|
||||
activity_id: this.id,
|
||||
application_time: new Date().toISOString().slice(0, 19).replace('T', ' ')
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: '报名成功!',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
getEventInfo() {
|
||||
eventInfo({
|
||||
association_id: store.state.Gid,
|
||||
id: this.id
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
if (key.activity_content.indexOf("<img") != -1) {
|
||||
key.activity_content = getApp().addWidthToImages(key.activity_content);
|
||||
}
|
||||
this.info = key;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
goBack() {
|
||||
if (getCurrentPages().length > 1) {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
</view>
|
||||
<view class="tn-margin-top"
|
||||
style=";text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
|
||||
<tn-tabs :list="[{name:'参与活动'}]" :current="topCurrent" activeColor="#000" :bold="false"
|
||||
<tn-tabs :list="[{name:'我参与的活动'}]" :current="topCurrent" activeColor="#000" :bold="false"
|
||||
:fontSize="36"></tn-tabs>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -15,7 +15,7 @@
|
|||
<view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
||||
<view style="padding:10px 30rpx;">
|
||||
<view v-for="(item,index) in list" class="tn-flex tn-flex-row-between"
|
||||
@click="openUrl('/pages/index/event_info')"
|
||||
@click="openUrl('/pages/index/event_info?id='+item.activity_id)"
|
||||
style="background-color: #ffffff;padding: 20rpx;border-radius: 10rpx;margin-bottom: 30rpx;box-shadow: rgba(12, 0, 5, 0.1) 0px 0px 5px 0px;">
|
||||
<view style="position:relative;">
|
||||
<view style="font-size: 28rpx;">{{item.activity_name}}</view>
|
||||
|
@ -23,17 +23,18 @@
|
|||
style="position: absolute;bottom: 0rpx;width:420rpx;color: #808080;">
|
||||
<view>{{item.activity_start_time}}</view>
|
||||
<view style="margin-left: 10rpx">
|
||||
<tn-button v-if="item.type=='未开始'" padding="0px" width="100rpx" height="40rpx"
|
||||
size="sm" backgroundColor="#6BC7F0 " fontColor="tn-color-white">未开始</tn-button>
|
||||
<tn-button v-if="item.type=='进行中'" padding="0px" width="100rpx" height="40rpx"
|
||||
size="sm" backgroundColor="#EE9556 " fontColor="tn-color-white">进行中</tn-button>
|
||||
<tn-button v-if="item.type=='未开始'" padding="0px" width="100rpx" height="40rpx" size="sm"
|
||||
backgroundColor="#6BC7F0 " fontColor="tn-color-white">未开始</tn-button>
|
||||
<tn-button v-if="item.type=='进行中'" padding="0px" width="100rpx" height="40rpx" size="sm"
|
||||
backgroundColor="#EE9556 " fontColor="tn-color-white">进行中</tn-button>
|
||||
<tn-button v-if="item.type=='已结束'" padding="0px" width="100rpx" height="40rpx" size="sm"
|
||||
backgroundColor="#E12B33 " fontColor="tn-color-white">已结束</tn-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="margin-left: 20rpx;">
|
||||
<image src="/static/hd1.jpg" style="width: 200rpx;height: 135rpx;;border-radius: 10rpx;">
|
||||
<image :src="apiImgUrl+item.activity_image"
|
||||
style="width: 200rpx;height: 135rpx;border-radius: 10rpx;">
|
||||
</image>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -43,37 +44,42 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {UserApplication} from "@/util/api";
|
||||
import store from "@/store";
|
||||
import {
|
||||
UserApplication
|
||||
} from "@/util/api";
|
||||
import store from "@/store";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
topCurrent: 0,
|
||||
list:[]
|
||||
list: [],
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
this.uid=uid;
|
||||
this.getUserApplication();
|
||||
},
|
||||
onLoad() {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
this.uid = uid;
|
||||
this.getUserApplication();
|
||||
},
|
||||
methods: {
|
||||
getUserApplication(){
|
||||
UserApplication({member_id: 2})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if(res.code==1){
|
||||
this.list = res.data;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
getUserApplication() {
|
||||
UserApplication({
|
||||
member_id: 2
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
this.list = res.data;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
openUrl(e) {
|
||||
uni.navigateTo({
|
||||
url: e
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
:fontSize="36"></tn-tabs> -->
|
||||
<view style="text-align: center;font-size: 36rpx;" @click="selectShow = true">
|
||||
<text>{{HomeTitle}}</text>
|
||||
<!-- <image src="/static/c1455.png" style="width: 25rpx;height: 25rpx;margin-left: 10rpx;"></image>-->
|
||||
<!-- <image src="/static/c1455.png" style="width: 25rpx;height: 25rpx;margin-left: 10rpx;"></image>-->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -29,25 +29,31 @@
|
|||
</view>
|
||||
|
||||
|
||||
<swiper class="card-swiper" :circular="true" :autoplay="true" duration="500" interval="8000"
|
||||
<swiper class="card-swiper" current="0" :circular="true" duration="500" interval="8000"
|
||||
@change="cardSwiper">
|
||||
<swiper-item v-for="(item,index) in swiperList" :key="index" :class="cardCur==index?'cur':''">
|
||||
<!-- <view class="swiper-item image-banner"
|
||||
:style="'background-image:url('+ item.url + ');background-size: cover;border-radius: 15rpx;'">
|
||||
</view> -->
|
||||
<image :src="item.url" mode="widthFix" style="width: 100%;border-radius: 15rpx;"></image>
|
||||
<video v-if="item.video" id="myVideo"
|
||||
src="https://ysx.0rui.cn/uploads/20240508/b3b1cb700d9cf2ecc4e2fcc16f277b5c.mp4"
|
||||
:controls="false" loop autoplay object-fit="contain"
|
||||
style="width: 100%;border-radius: 15rpx;height: 167px;" @error="videoErrorCallback"></video>
|
||||
<image v-if="!item.video" :src="item.url" mode="widthFix" style="width: 100%;border-radius: 15rpx;">
|
||||
</image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view class="indication">
|
||||
<block v-for="(item,index) in swiperList" :key="index">
|
||||
<view class="spot" :class="cardCur==index?'active':''"></view>
|
||||
</block>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center"
|
||||
style="padding:0px 30rpx 0rpx 30rpx;text-align: center;font-size: 28rpx;">
|
||||
<view @click="openUrl('/pages/index/tissue')"
|
||||
style="width: 25%;background: linear-gradient(270deg, #3CBAEA, #6BC7F0);;border-radius: 16rpx;padding:35rpx 20rpx;">
|
||||
style="width: 33%;background: linear-gradient(270deg, #3CBAEA, #6BC7F0);;border-radius: 16rpx;padding:25rpx 20rpx;">
|
||||
<view>
|
||||
<image src="/static/c3.png" style="width: 35rpx;height: 35rpx;vertical-align: middle;">
|
||||
</image>
|
||||
|
@ -57,7 +63,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view @click="opentab(1)"
|
||||
style="width: 25%;background: linear-gradient(270deg, #EE7E45, #EE9657);border-radius: 16rpx;padding:35rpx 20rpx;margin-left:10rpx;">
|
||||
style="width: 33%;background: linear-gradient(270deg, #EE7E45, #EE9657);border-radius: 16rpx;padding:25rpx 20rpx;margin-left:10rpx;">
|
||||
<view>
|
||||
<image src="/static/c2.png" style="width: 35rpx;height: 35rpx;vertical-align: middle;">
|
||||
</image>
|
||||
|
@ -67,7 +73,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view @click="openUrl('/pages/index/directory')"
|
||||
style="width: 25%;background: linear-gradient(270deg, #45B335, #89C33D);border-radius: 16rpx;padding:35rpx 20rpx;margin-left:10rpx;">
|
||||
style="width: 33%;background: linear-gradient(270deg, #45B335, #89C33D);border-radius: 16rpx;padding:25rpx 20rpx;margin-left:10rpx;">
|
||||
<view>
|
||||
<image src="/static/c1.png" style="width: 35rpx;height: 35rpx;vertical-align: middle;">
|
||||
</image>
|
||||
|
@ -77,16 +83,16 @@
|
|||
</view>
|
||||
|
||||
</view>
|
||||
<view @click="openUrl('/pages/index/knowledge_list')"
|
||||
style="width: 25%;background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);;border-radius: 16rpx;padding:35rpx 20rpx;margin-left:10rpx;">
|
||||
<view>
|
||||
<image src="/static/book.png" style="width: 35rpx;height: 35rpx;vertical-align: middle;">
|
||||
</image>
|
||||
</view>
|
||||
<view style="margin-top: 10rpx;">
|
||||
<text style="color: #FFF;">商学院</text>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view @click="openUrl('/pages/index/knowledge_list')"-->
|
||||
<!-- style="width: 25%;background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);;border-radius: 16rpx;padding:35rpx 20rpx;margin-left:10rpx;">-->
|
||||
<!-- <view>-->
|
||||
<!-- <image src="/static/book.png" style="width: 35rpx;height: 35rpx;vertical-align: middle;">-->
|
||||
<!-- </image>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view style="margin-top: 10rpx;">-->
|
||||
<!-- <text style="color: #FFF;">商学院</text>-->
|
||||
<!-- </view>-->
|
||||
<!-- </view>-->
|
||||
</view>
|
||||
<view @click.stop="opentab(1)" class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center"
|
||||
style="padding: 30rpx;">
|
||||
|
@ -104,8 +110,10 @@
|
|||
<image :src="apiImgUrl+item.activity_image" style="width: 350rpx;height: 170rpx;">
|
||||
</image>
|
||||
</view>
|
||||
<view style="padding:10rpx 20rpx;font-weight: 400;">
|
||||
<view class="tn-text-ellipsis-2">{{ item.activity_name }}</view>
|
||||
<view style="padding:10rpx 20rpx;font-weight: 400;min-height: 100rpx;">
|
||||
<view class="tn-text-ellipsis-2" style="text-align: left;">
|
||||
<text>{{ item.activity_name }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view style="position: absolute;top: 10rpx;left: 10rpx;">
|
||||
<tn-button v-if="item.type=='进行中'" width="80rpx" height="40rpx" size="sm"
|
||||
|
@ -120,7 +128,8 @@
|
|||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view style="background-color: #ffffff;padding: 20rpx;text-align: center" v-if="actList.length==0">暂无活动</view>
|
||||
<view style="background-color: #ffffff;padding: 20rpx;text-align: center" v-if="actList.length==0">暂无活动
|
||||
</view>
|
||||
</view>
|
||||
<view style="background-color: #ffffff;">
|
||||
<tn-tabs :list="goryList" :isScroll="true" :activeItemStyle="{fontSize:'35rpx',fontWeight:'600'}"
|
||||
|
@ -131,13 +140,14 @@
|
|||
@click="openUrl('/pages/index/new_info?id='+item.news_id)"
|
||||
style="background-color: #ffffff;padding: 20rpx;border-radius: 10rpx;margin-bottom: 10rpx;">
|
||||
<view style="position:relative;">
|
||||
<view class="tn-text-ellipsis-2" style="font-size: 28rpx;">{{ item.news_title }}</view>
|
||||
<view class="tn-text-ellipsis-2" style="font-size: 28rpx;">{{ item.news_title }}
|
||||
</view>
|
||||
<view class="tn-flex tn-flex-row-between"
|
||||
style="bottom: 0rpx;width: 100%;color: #808080;padding-top: 80rpx; min-width: 380rpx;overflow: hidden">
|
||||
style="width: 100%;color: #808080;position: absolute; bottom: 0rpx; min-width: 380rpx;overflow: hidden">
|
||||
<view>{{ item.name }}</view>
|
||||
<view>
|
||||
<text class="tn-icon-eye"></text>
|
||||
<text>{{ item.news_hits }}</text>
|
||||
<text class="tn-icon-eye" style="vertical-align: middle;"></text>
|
||||
<text style="vertical-align: middle;">{{ item.news_hits }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -173,10 +183,13 @@
|
|||
cardCur: 0,
|
||||
isAndroid: true,
|
||||
swiperList: [{
|
||||
url: '/static/1fcf0b1ee9e590f5253841bf25ba60cd.mp4',
|
||||
video: true,
|
||||
}, {
|
||||
url: '/static/banner.jpg',
|
||||
}, {
|
||||
url: '/static/banner2.jpg',
|
||||
}],
|
||||
}, ],
|
||||
goryList: [],
|
||||
news_list: [],
|
||||
actList: [],
|
||||
|
@ -186,10 +199,13 @@
|
|||
gory_id: 0,
|
||||
type: 1,
|
||||
HomeTitle: '',
|
||||
apiImgUrl:this.$store.state.imgUrl
|
||||
apiImgUrl: this.$store.state.imgUrl
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
getApp().getUserLogin((r) => {
|
||||
console.log('---Login---', r);
|
||||
})
|
||||
this.getNewsGoryList();
|
||||
this.getActivityList();
|
||||
this.getAssociationIndex();
|
||||
|
@ -201,8 +217,8 @@
|
|||
name: 'Gid',
|
||||
value: info.value
|
||||
})
|
||||
uni.setStorageSync('Gid', info.value);
|
||||
this.page = 1;
|
||||
uni.setStorageSync('Gid', info.value);
|
||||
this.page = 1;
|
||||
this.goryList = [];
|
||||
this.news_list = [];
|
||||
this.actList = [];
|
||||
|
@ -210,30 +226,36 @@
|
|||
this.getActivityList();
|
||||
this.getAssociationIndex();
|
||||
|
||||
//this.$emit('childEvent', '修改后的数据');
|
||||
//this.$emit('childEvent', '修改后的数据');
|
||||
},
|
||||
getAssociationIndex() {
|
||||
associationIndex()
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
var key = res.data;
|
||||
const transformedSelectList = key.map(item => ({
|
||||
value: item.id,
|
||||
label: item.association_name,
|
||||
icon: item.association_image
|
||||
icon: item.association_image
|
||||
}));
|
||||
const foundNumber = transformedSelectList.find((element) => element.value == store.state
|
||||
.Gid);
|
||||
this.HomeTitle = foundNumber.label;
|
||||
this.selectList = transformedSelectList;
|
||||
this.$parent.childEvent(foundNumber);
|
||||
//#ifdef MP-WEIXIN
|
||||
this.$parent.childEvent(foundNumber);
|
||||
//#endif
|
||||
// #ifdef H5
|
||||
console.log('H5');
|
||||
this.$parent.$parent.$parent.$parent.childEvent(foundNumber);
|
||||
// #endif
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
|
@ -255,7 +277,7 @@
|
|||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
|
@ -281,7 +303,7 @@
|
|||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
|
@ -303,7 +325,7 @@
|
|||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
|
@ -335,7 +357,13 @@
|
|||
uni.$emit('depId', {
|
||||
index: 1
|
||||
})
|
||||
}
|
||||
},
|
||||
videoErrorCallback: function(e) {
|
||||
uni.showModal({
|
||||
content: e.target.errMsg,
|
||||
showCancel: false
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
currentIndex: 0,
|
||||
// 自定义底栏对应页面的加载情况
|
||||
tabberPageLoadFlag: [],
|
||||
apiImgUrl:this.$store.state.imgUrl,
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
|
@ -117,11 +117,12 @@
|
|||
}
|
||||
},
|
||||
methods: {
|
||||
childEvent(data) {
|
||||
console.log(data);
|
||||
this.tabbarList[2].activeIcon=this.apiImgUrl+data.icon;
|
||||
this.tabbarList[2].inactiveIcon=this.apiImgUrl+data.icon;
|
||||
},
|
||||
childEvent(data) {
|
||||
console.log(123);
|
||||
console.log(data);
|
||||
this.tabbarList[2].activeIcon = this.apiImgUrl + data.icon;
|
||||
this.tabbarList[2].inactiveIcon = this.apiImgUrl + data.icon;
|
||||
},
|
||||
wxshare() {
|
||||
this.$wxshare({
|
||||
url: 'http://ysh.0rui.cn/#/pages/index/index',
|
||||
|
@ -163,11 +164,16 @@
|
|||
this.tabberPageLoadFlag[index] = true
|
||||
}
|
||||
this.currentIndex = index
|
||||
if(index===2){
|
||||
setTimeout(()=>{
|
||||
this.$refs.discovery.getNewInfo();
|
||||
},100)
|
||||
}
|
||||
if (index === 1) {
|
||||
setTimeout(() => {
|
||||
this.$refs.service.getNewInfo();
|
||||
}, 100)
|
||||
}
|
||||
if (index === 2) {
|
||||
setTimeout(() => {
|
||||
this.$refs.discovery.getNewInfo();
|
||||
}, 100)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<view style="background-color: #EBF4F7;letter-spacing: 1rpx;">
|
||||
<view style="background-color: #EBF4F7;letter-spacing: 1rpx;height: 100vh">
|
||||
<tn-nav-bar :isBack="false" backTitle="" :bottomShadow="true" backgroundColor="#FFFFFF">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
||||
<view style="padding-left: 15rpx;" @click="goBack()">
|
||||
|
@ -14,14 +14,13 @@
|
|||
</tn-nav-bar>
|
||||
<view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
||||
<view style="padding:10px 30rpx;">
|
||||
<view v-for="(item,index) in 10" class="tn-flex tn-flex-row-between"
|
||||
@click="openUrl('/pages/index/new_info')"
|
||||
<view v-for="(item,index) in news_list" class="tn-flex tn-flex-row-between"
|
||||
@click="openUrl('/pages/index/new_info?id='+item.news_id)"
|
||||
style="background-color: #ffffff;padding: 20rpx;border-radius: 10rpx;margin-bottom: 10rpx;">
|
||||
<view style="position:relative;">
|
||||
<view style="font-size: 28rpx;">青年企业家能力提升 计划培训班(第20期)</view>
|
||||
<view class="tn-text-ellipsis-2" style="font-size: 28rpx;">{{item.news_title}}</view>
|
||||
<view class="tn-flex tn-flex-row-between"
|
||||
style="position: absolute;bottom: 0rpx;width: 100%;color: #808080;">
|
||||
<view>河南青企协</view>
|
||||
<view>
|
||||
<text class="tn-icon-eye"></text>
|
||||
<text>568</text>
|
||||
|
@ -29,7 +28,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view style="margin-left: 20rpx;">
|
||||
<image src="/static/s1.jpg" style="width: 200rpx;height: 135rpx;;border-radius: 10rpx;">
|
||||
<image :src="apiImgUrl+item.news_image" style="width: 200rpx;height: 135rpx;;border-radius: 10rpx;">
|
||||
</image>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -39,13 +38,49 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
import {newsList} from "@/util/api";
|
||||
import store from "@/store";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
topCurrent: 0
|
||||
topCurrent: 0,
|
||||
gory_id:53,
|
||||
news_list:[],
|
||||
apiImgUrl:this.$store.state.imgUrl,
|
||||
page:1,
|
||||
size:10
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getNewsList();
|
||||
},
|
||||
onReachBottom() {
|
||||
this.page = this.page + 1;
|
||||
this.getNewsList();
|
||||
},
|
||||
methods: {
|
||||
getNewsList() {
|
||||
newsList({
|
||||
association_id: store.state.Gid,
|
||||
gory_id: this.gory_id,
|
||||
page: this.page,
|
||||
size: this.size
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
this.news_list.push(...res.data.ret);
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
openUrl(url) {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
|
|
|
@ -1,437 +1,445 @@
|
|||
<template>
|
||||
<view class="page-c">
|
||||
<tn-nav-bar :isBack="false" backTitle="" :bottomShadow="true" backgroundColor="#FFFFFF">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
||||
<view style="padding-left: 15rpx;" @click="goBack()">
|
||||
<text class="tn-icon-left" style="font-size: 40rpx;"></text>
|
||||
</view>
|
||||
<view class="tn-margin-top"
|
||||
style=";text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
|
||||
<tn-tabs :list="[{name:'我的名片'}]" :current="topCurrent" activeColor="#000" :bold="false"
|
||||
:fontSize="36"></tn-tabs>
|
||||
</view>
|
||||
</view>
|
||||
</tn-nav-bar>
|
||||
<!-- 顶部 -->
|
||||
<view :style="{paddingTop: vuex_custom_bar_height +20+'px'}">
|
||||
<view class="tn-strip-bottom">
|
||||
<view class="slideshow">
|
||||
<image :src="apiImgUrl+userThisInfo.photo_image" style="width: 300rpx;height: 300rpx;border-radius: 50%;"></image>
|
||||
</view>
|
||||
<view class='tn-margin'>
|
||||
<view class="tn-text-bold">
|
||||
<text class='tn-text-xxl tn-padding-right'>{{ userThisInfo.nikename }}</text>
|
||||
<text class='tn-text-lg tn-color-gray'>{{ userThisInfo.enterprise_name }}</text>
|
||||
</view>
|
||||
<template v-if="userThisInfo.association_id==userInfo.association_id || is">
|
||||
<view class="tn-margin-top-lg">
|
||||
<text class="tn-text-lg">微信:{{ userThisInfo.wx_number }}</text>
|
||||
<text class="tn-icon-copy tn-color-blue tn-padding-left-xs"></text>
|
||||
</view>
|
||||
<view class="tn-margin-top-xs" @click="callPhone">
|
||||
<text class="tn-text-lg">电话:{{ userThisInfo.phone }}</text>
|
||||
<text class="tn-icon-phone tn-color-orange tn-padding-left-xs"></text>
|
||||
</view>
|
||||
</template>
|
||||
<template v-if="userThisInfo.association_id!=userInfo.association_id && !is">
|
||||
<view class="tn-margin-top-lg">
|
||||
<text class="tn-text-lg">微信:加入协会后查看</text>
|
||||
<text class="tn-icon-copy tn-color-blue tn-padding-left-xs"></text>
|
||||
</view>
|
||||
<view class="tn-margin-top-xs">
|
||||
<text class="tn-text-lg">电话:加入协会后查看</text>
|
||||
<text class="tn-icon-phone tn-color-orange tn-padding-left-xs"></text>
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
<view class="king-list tn-margin-top-sm">
|
||||
<view class="page-c">
|
||||
<tn-nav-bar :isBack="false" backTitle="" :bottomShadow="true" backgroundColor="#FFFFFF">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
||||
<view style="padding-left: 15rpx;" @click="goBack()">
|
||||
<text class="tn-icon-left" style="font-size: 40rpx;"></text>
|
||||
</view>
|
||||
<view class="tn-margin-top"
|
||||
style=";text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;">
|
||||
<tn-tabs :list="[{name:'我的名片'}]" :current="topCurrent" activeColor="#000" :bold="false"
|
||||
:fontSize="36"></tn-tabs>
|
||||
</view>
|
||||
</view>
|
||||
</tn-nav-bar>
|
||||
<!-- 顶部 -->
|
||||
<view :style="{paddingTop: vuex_custom_bar_height +20+'px'}">
|
||||
<view class="tn-strip-bottom">
|
||||
<view class="slideshow">
|
||||
<image :src="apiImgUrl+userThisInfo.photo_image"
|
||||
style="width: 300rpx;height: 300rpx;border-radius: 50%;"></image>
|
||||
</view>
|
||||
<view class='tn-margin'>
|
||||
<view class="tn-text-bold">
|
||||
<text class='tn-text-xxl tn-padding-right'>{{ userThisInfo.nikename }}</text>
|
||||
<text class='tn-text-lg tn-color-gray'>{{ userThisInfo.enterprise_name }}</text>
|
||||
</view>
|
||||
<template v-if="userThisInfo.association_id==userInfo.association_id || is">
|
||||
<view class="tn-margin-top-lg">
|
||||
<text class="tn-text-lg">微信:{{ userThisInfo.wx_number }}</text>
|
||||
<text class="tn-icon-copy tn-color-blue tn-padding-left-xs"></text>
|
||||
</view>
|
||||
<view class="tn-margin-top-xs" @click="callPhone">
|
||||
<text class="tn-text-lg">电话:{{ userThisInfo.phone }}</text>
|
||||
<text class="tn-icon-phone tn-color-orange tn-padding-left-xs"></text>
|
||||
</view>
|
||||
</template>
|
||||
<template v-if="userThisInfo.association_id!=userInfo.association_id && !is">
|
||||
<view class="tn-margin-top-lg">
|
||||
<text class="tn-text-lg">微信:加入协会后查看</text>
|
||||
<text class="tn-icon-copy tn-color-blue tn-padding-left-xs"></text>
|
||||
</view>
|
||||
<view class="tn-margin-top-xs">
|
||||
<text class="tn-text-lg">电话:加入协会后查看</text>
|
||||
<text class="tn-icon-phone tn-color-orange tn-padding-left-xs"></text>
|
||||
</view>
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
<view class="king-list tn-margin-top-sm">
|
||||
|
||||
<view class="king-icon">
|
||||
<text class='tn-icon-creative tn-color-white tn-text-lg tn-bg-blue tn-round tn-padding-xs'></text>
|
||||
<text class='tn-text-xl tn-margin-left'>自我介绍</text>
|
||||
</view>
|
||||
<view class='king-item tn-color-red tn-icon-circle-fill'>
|
||||
<view class="resume2">
|
||||
<text class="">
|
||||
{{userThisInfo.introduction}}
|
||||
</text>
|
||||
</view>
|
||||
<view class="king-icon">
|
||||
<text class='tn-icon-creative tn-color-white tn-text-lg tn-bg-blue tn-round tn-padding-xs'></text>
|
||||
<text class='tn-text-xl tn-margin-left'>自我介绍</text>
|
||||
</view>
|
||||
<view class='king-item tn-color-red tn-icon-circle-fill'>
|
||||
<view class="resume2">
|
||||
<text class="">
|
||||
{{userThisInfo.introduction}}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="king-icon">
|
||||
<text class='tn-icon-company tn-color-white tn-text-lg tn-bg-blue tn-round tn-padding-xs'></text>
|
||||
<text class='tn-text-xl tn-margin-left'>公司介绍</text>
|
||||
</view>
|
||||
<view class='king-item tn-color-red tn-icon-circle-fill'>
|
||||
<view>
|
||||
<view class="resume2">
|
||||
<text>{{userThisInfo.enterprise_name}}</text>
|
||||
</view>
|
||||
<view class="resume2">
|
||||
<text>
|
||||
{{userThisInfo.enterprise_Introduction}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="king-icon">
|
||||
<text class='tn-icon-company tn-color-white tn-text-lg tn-bg-blue tn-round tn-padding-xs'></text>
|
||||
<text class='tn-text-xl tn-margin-left'>公司介绍</text>
|
||||
</view>
|
||||
<view class='king-item tn-color-red tn-icon-circle-fill'>
|
||||
<view>
|
||||
<view class="resume2">
|
||||
<text>{{userThisInfo.enterprise_name}}</text>
|
||||
</view>
|
||||
<view class="resume2">
|
||||
<text>
|
||||
{{userThisInfo.enterprise_Introduction}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="">
|
||||
<view class="icon15__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur button-2">
|
||||
<button class="tn-button--clear-style" open-type="share" style="border-radius: 0;">
|
||||
<view class="tn-icon-send-fill tn-color-white"></view>
|
||||
</button>
|
||||
<!-- <view class="tn-icon-send-fill tn-color-white"></view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="">
|
||||
<view class="icon15__item--icon tn-flex tn-flex-row-center tn-flex-col-center tn-shadow-blur button-2">
|
||||
<button class="tn-button--clear-style" open-type="share" style="border-radius: 0;">
|
||||
<view class="tn-icon-send-fill tn-color-white"></view>
|
||||
</button>
|
||||
<!-- <view class="tn-icon-send-fill tn-color-white"></view> -->
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<view class='tn-tabbar-height'></view>
|
||||
<view class='tn-tabbar-height'></view>
|
||||
|
||||
<view class="bg-tabbar-shadow"></view>
|
||||
<view class="bg-tabbar-shadow"></view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getUserIndex} from "@/util/api";
|
||||
import store from "@/store";
|
||||
import {
|
||||
getUserIndex
|
||||
} from "@/util/api";
|
||||
import store from "@/store";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
topCurrent: 0,
|
||||
uid: 0,
|
||||
this_uid: 0,
|
||||
userInfo: {},
|
||||
userThisInfo: {},
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
is:false
|
||||
}
|
||||
},
|
||||
onLoad(d) {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
this.uid = uid;
|
||||
this.this_uid = d.id;
|
||||
this.getUserInfo();
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
var info = this.info;
|
||||
console.log(info);
|
||||
return {
|
||||
title: this.userThisInfo.nikename,
|
||||
path: '/pages/index/my_card?id=' + this.userThisInfo.member_id,
|
||||
imageUrl: this.apiImgUrl+this.userThisInfo.photo_image
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
callPhone(){
|
||||
// 电话号码为示例,请替换为实际需要拨打的号码
|
||||
const phoneNumber = this.userThisInfo.phone;
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phoneNumber, // 电话号码
|
||||
success: function () {
|
||||
console.log('拨打电话成功');
|
||||
},
|
||||
fail: function () {
|
||||
console.log('拨打电话失败');
|
||||
}
|
||||
});
|
||||
},
|
||||
getThisUserInfo() {
|
||||
getUserIndex({member_id: this.this_uid})
|
||||
.then(res => {
|
||||
if (res.code == 1) {
|
||||
this.userThisInfo = res.data;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
getUserInfo() {
|
||||
getUserIndex({member_id: this.uid})
|
||||
.then(res => {
|
||||
if (res.code == 1) {
|
||||
if (this.this_uid != this.uid) {
|
||||
this.getThisUserInfo();
|
||||
}else{
|
||||
this.is=true;
|
||||
this.userInfo = res.data;
|
||||
this.userThisInfo = res.data;
|
||||
}
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
topCurrent: 0,
|
||||
uid: 0,
|
||||
this_uid: 0,
|
||||
userInfo: {},
|
||||
userThisInfo: {},
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
is: false
|
||||
}
|
||||
},
|
||||
onLoad(d) {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
this.uid = uid;
|
||||
this.this_uid = d.id;
|
||||
this.getUserInfo();
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
var info = this.info;
|
||||
console.log(info);
|
||||
return {
|
||||
title: this.userThisInfo.nikename,
|
||||
path: '/pages/index/my_card?id=' + this.userThisInfo.member_id,
|
||||
imageUrl: this.apiImgUrl + this.userThisInfo.photo_image
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
callPhone() {
|
||||
// 电话号码为示例,请替换为实际需要拨打的号码
|
||||
const phoneNumber = this.userThisInfo.phone;
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: phoneNumber, // 电话号码
|
||||
success: function() {
|
||||
console.log('拨打电话成功');
|
||||
},
|
||||
fail: function() {
|
||||
console.log('拨打电话失败');
|
||||
}
|
||||
});
|
||||
},
|
||||
getThisUserInfo() {
|
||||
getUserIndex({
|
||||
member_id: this.this_uid
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code == 1) {
|
||||
this.userThisInfo = res.data;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
getUserInfo() {
|
||||
getUserIndex({
|
||||
member_id: this.this_uid
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res)
|
||||
if (res.code == 1) {
|
||||
this.userInfo = res.data;
|
||||
if (this.this_uid != this.uid) {
|
||||
this.getThisUserInfo();
|
||||
} else {
|
||||
this.is = true;
|
||||
this.userThisInfo = res.data;
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
openUrl(url) {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
})
|
||||
},
|
||||
goBack() {
|
||||
if (getCurrentPages().length > 1) {
|
||||
uni.navigateBack()
|
||||
} else {
|
||||
uni.redirectTo({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
openUrl(url) {
|
||||
uni.navigateTo({
|
||||
url: url
|
||||
})
|
||||
},
|
||||
goBack() {
|
||||
if (getCurrentPages().length > 1) {
|
||||
uni.navigateBack()
|
||||
} else {
|
||||
uni.redirectTo({
|
||||
url: '/pages/index/index'
|
||||
})
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.page-c {
|
||||
background-color: #EBF4F7;
|
||||
height: 100vh;
|
||||
}
|
||||
.page-c {
|
||||
background-color: #EBF4F7;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* 底部安全边距 start*/
|
||||
.tn-tabbar-height {
|
||||
min-height: 120rpx;
|
||||
height: calc(140rpx + env(safe-area-inset-bottom) / 2);
|
||||
height: calc(140rpx + constant(safe-area-inset-bottom));
|
||||
}
|
||||
/* 底部安全边距 start*/
|
||||
.tn-tabbar-height {
|
||||
min-height: 120rpx;
|
||||
height: calc(140rpx + env(safe-area-inset-bottom) / 2);
|
||||
height: calc(140rpx + constant(safe-area-inset-bottom));
|
||||
}
|
||||
|
||||
.tn-footerfixed {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
bottom: calc(180rpx + env(safe-area-inset-bottom));
|
||||
z-index: 1024;
|
||||
box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0);
|
||||
.tn-footerfixed {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
bottom: calc(180rpx + env(safe-area-inset-bottom));
|
||||
z-index: 1024;
|
||||
box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/* 按钮 */
|
||||
.button-1 {
|
||||
background-color: rgba(0, 0, 0, 0.15);
|
||||
position: fixed;
|
||||
/* bottom:200rpx;
|
||||
/* 按钮 */
|
||||
.button-1 {
|
||||
background-color: rgba(0, 0, 0, 0.15);
|
||||
position: fixed;
|
||||
/* bottom:200rpx;
|
||||
right: 20rpx; */
|
||||
bottom: 27%;
|
||||
right: 30rpx;
|
||||
z-index: 1001;
|
||||
border-radius: 100px;
|
||||
}
|
||||
bottom: 27%;
|
||||
right: 30rpx;
|
||||
z-index: 1001;
|
||||
border-radius: 100px;
|
||||
}
|
||||
|
||||
.button-2 {
|
||||
background-color: rgba(0, 0, 0, 0.15);
|
||||
position: fixed;
|
||||
/* bottom:200rpx;
|
||||
.button-2 {
|
||||
background-color: rgba(0, 0, 0, 0.15);
|
||||
position: fixed;
|
||||
/* bottom:200rpx;
|
||||
right: 20rpx; */
|
||||
bottom: 18%;
|
||||
right: 30rpx;
|
||||
z-index: 1001;
|
||||
border-radius: 100px;
|
||||
}
|
||||
bottom: 18%;
|
||||
right: 30rpx;
|
||||
z-index: 1001;
|
||||
border-radius: 100px;
|
||||
}
|
||||
|
||||
/* 图标容器15 start */
|
||||
.icon15 {
|
||||
&__item {
|
||||
width: 30%;
|
||||
/* 图标容器15 start */
|
||||
.icon15 {
|
||||
&__item {
|
||||
width: 30%;
|
||||
|
||||
border-radius: 10rpx;
|
||||
padding: 30rpx;
|
||||
margin: 20rpx 10rpx;
|
||||
transform: scale(1);
|
||||
transition: transform 0.3s linear;
|
||||
transform-origin: center center;
|
||||
border-radius: 10rpx;
|
||||
padding: 30rpx;
|
||||
margin: 20rpx 10rpx;
|
||||
transform: scale(1);
|
||||
transition: transform 0.3s linear;
|
||||
transform-origin: center center;
|
||||
|
||||
&--icon {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
font-size: 50rpx;
|
||||
border-radius: 50%;
|
||||
margin-bottom: 18rpx;
|
||||
z-index: 1;
|
||||
&--icon {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
font-size: 50rpx;
|
||||
border-radius: 50%;
|
||||
margin-bottom: 18rpx;
|
||||
z-index: 1;
|
||||
|
||||
&::after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
border-radius: inherit;
|
||||
opacity: 1;
|
||||
transform: scale(1, 1);
|
||||
background-size: 100% 100%;
|
||||
&::after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
z-index: -1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
border-radius: inherit;
|
||||
opacity: 1;
|
||||
transform: scale(1, 1);
|
||||
background-size: 100% 100%;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* 相册 */
|
||||
.slideshow {
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
}
|
||||
/* 相册 */
|
||||
.slideshow {
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
|
||||
/* 简历内容 */
|
||||
.king-list {
|
||||
display: block;
|
||||
// background-color: #ffffff;
|
||||
}
|
||||
/* 简历内容 */
|
||||
.king-list {
|
||||
display: block;
|
||||
// background-color: #ffffff;
|
||||
}
|
||||
|
||||
.king-list .king-icon {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 20rpx 0 20rpx 37rpx;
|
||||
font-size: 26rpx;
|
||||
color: #888;
|
||||
display: block;
|
||||
}
|
||||
.king-list .king-icon {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 20rpx 0 20rpx 37rpx;
|
||||
font-size: 26rpx;
|
||||
color: #888;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.king-list > .king-item {
|
||||
padding: 30rpx 30rpx 30rpx 120rpx;
|
||||
position: relative;
|
||||
display: block;
|
||||
z-index: 0;
|
||||
}
|
||||
.king-list>.king-item {
|
||||
padding: 30rpx 30rpx 30rpx 120rpx;
|
||||
position: relative;
|
||||
display: block;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.king-list > .king-item::after {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 1rpx;
|
||||
background-color: #E6E6E6;
|
||||
left: 60rpx;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
z-index: 8;
|
||||
}
|
||||
.king-list>.king-item::after {
|
||||
content: "";
|
||||
display: block;
|
||||
position: absolute;
|
||||
width: 1rpx;
|
||||
background-color: #E6E6E6;
|
||||
left: 60rpx;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
z-index: 8;
|
||||
}
|
||||
|
||||
.king-list > .king-item::before {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 36rpx;
|
||||
z-index: 9;
|
||||
background-color: #ffffff;
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
text-align: center;
|
||||
border: none;
|
||||
line-height: 50rpx;
|
||||
left: 36rpx;
|
||||
}
|
||||
.king-list>.king-item::before {
|
||||
display: block;
|
||||
position: absolute;
|
||||
top: 36rpx;
|
||||
z-index: 9;
|
||||
background-color: #ffffff;
|
||||
width: 50rpx;
|
||||
height: 50rpx;
|
||||
text-align: center;
|
||||
border: none;
|
||||
line-height: 50rpx;
|
||||
left: 36rpx;
|
||||
}
|
||||
|
||||
|
||||
/* 名片微调 */
|
||||
.img-solid {
|
||||
border: 1rpx solid #eee;
|
||||
}
|
||||
/* 名片微调 */
|
||||
.img-solid {
|
||||
border: 1rpx solid #eee;
|
||||
}
|
||||
|
||||
.share-img {
|
||||
position: fixed;
|
||||
/* padding: 10rpx; */
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
/* top: 680rpx; */
|
||||
bottom: 200rpx;
|
||||
right: 20rpx;
|
||||
z-index: 1024;
|
||||
opacity: 0.8;
|
||||
box-shadow: 0rpx 8rpx 30rpx 0rpx rgba(0, 0, 0, 0.3);
|
||||
border: none;
|
||||
border: 6rpx solid rgba(255, 255, 255, 0);
|
||||
}
|
||||
.share-img {
|
||||
position: fixed;
|
||||
/* padding: 10rpx; */
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
/* top: 680rpx; */
|
||||
bottom: 200rpx;
|
||||
right: 20rpx;
|
||||
z-index: 1024;
|
||||
opacity: 0.8;
|
||||
box-shadow: 0rpx 8rpx 30rpx 0rpx rgba(0, 0, 0, 0.3);
|
||||
border: none;
|
||||
border: 6rpx solid rgba(255, 255, 255, 0);
|
||||
}
|
||||
|
||||
.resume {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding-top: 10rpx;
|
||||
border-radius: 6rpx;
|
||||
color: #666;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.resume {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding-top: 10rpx;
|
||||
border-radius: 6rpx;
|
||||
color: #666;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.resume + .resume {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.resume+.resume {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
|
||||
.resume2 {
|
||||
padding-top: 10rpx;
|
||||
border-radius: 6rpx;
|
||||
display: block;
|
||||
color: #666;
|
||||
line-height: 1.6;
|
||||
text-align: justify;
|
||||
}
|
||||
.resume2 {
|
||||
padding-top: 10rpx;
|
||||
border-radius: 6rpx;
|
||||
display: block;
|
||||
color: #666;
|
||||
line-height: 1.6;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
/* 间隔线 start*/
|
||||
.tn-strip-bottom {
|
||||
width: 100%;
|
||||
border-bottom: 5rpx solid #ffffff;
|
||||
}
|
||||
/* 间隔线 start*/
|
||||
.tn-strip-bottom {
|
||||
width: 100%;
|
||||
border-bottom: 5rpx solid #ffffff;
|
||||
}
|
||||
|
||||
/* 间隔线 end*/
|
||||
/* 间隔线 end*/
|
||||
|
||||
|
||||
.bg-img-cont {
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
height: 350rpx;
|
||||
margin: 20rpx 0;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
.bg-img-cont {
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-repeat: no-repeat;
|
||||
height: 350rpx;
|
||||
margin: 20rpx 0;
|
||||
border-radius: 8rpx;
|
||||
}
|
||||
|
||||
|
||||
// .button-no {
|
||||
// border: none;
|
||||
// width: 100%;
|
||||
// height: 100%;
|
||||
// background-color: rgba(0, 0, 0, 0);
|
||||
// }
|
||||
// .button-no {
|
||||
// border: none;
|
||||
// width: 100%;
|
||||
// height: 100%;
|
||||
// background-color: rgba(0, 0, 0, 0);
|
||||
// }
|
||||
|
||||
|
||||
/* 标签内容 start*/
|
||||
.tn-tag-content {
|
||||
&__item {
|
||||
display: inline-block;
|
||||
line-height: 45rpx;
|
||||
padding: 10rpx 30rpx;
|
||||
margin: 0rpx 20rpx 25rpx 0rpx;
|
||||
/* 标签内容 start*/
|
||||
.tn-tag-content {
|
||||
&__item {
|
||||
display: inline-block;
|
||||
line-height: 45rpx;
|
||||
padding: 10rpx 30rpx;
|
||||
margin: 0rpx 20rpx 25rpx 0rpx;
|
||||
|
||||
&--prefix {
|
||||
padding-right: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
&--prefix {
|
||||
padding-right: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* 标签内容 end*/
|
||||
/* 标签内容 end*/
|
||||
|
||||
.see {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding-top: 10rpx;
|
||||
border-radius: 6rpx;
|
||||
color: #666;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.see {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding-top: 10rpx;
|
||||
border-radius: 6rpx;
|
||||
color: #666;
|
||||
line-height: 1.6;
|
||||
}
|
||||
</style>
|
|
@ -13,27 +13,8 @@
|
|||
</view>
|
||||
</tn-nav-bar>
|
||||
<view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
||||
<view style="padding: 30rpx; line-height: 50rpx;">
|
||||
<p>一、发展服务</p>
|
||||
<p>发展服务既为个人也为企业。比如:推举会员当选政协委员、人大代表,积极参政议政;积极申请推荐会员进入市青年企业家“领航计划”班学习;组织参观会员企业学习管理;组织会员参加对外商贸考察等等。</p>
|
||||
<p>二、政策服务</p>
|
||||
<p>区青企协根据形势发展的需要,不定期地为会员提供各类优惠政策的指引和告知。</p>
|
||||
<p>三、协调服务</p>
|
||||
<p>区青企协积极为会员企业与外单位或合作企业搭建沟通的平台,互帮互助,进行工作协调。</p>
|
||||
<p>四、宣传服务</p>
|
||||
<p>积极利用报纸、电视、网络,宣传会员及企业的活动和正能量,例如:杰出企业家评选、关爱员工的企业家评选,企业庆典活动,员工表彰活动,剪彩挂牌活动等等,青企协都给予大力的宣传。</p>
|
||||
<p>五、亲子服务</p>
|
||||
<p>番禺区青企协举办一系列的亲子登山、亲子植树、亲子扶贫等等活动,和谐家庭关系,教育孩子成长。</p>
|
||||
<p>六、文体服务</p>
|
||||
<p>比如:组织参加文化展览,组织网球、乒乓球、羽毛球比赛,组织观看企业晚会,组织学习企业文化等等。</p>
|
||||
<p>七、信息服务</p>
|
||||
<p>比如:为会员企业提供积分入学、积分入户、优秀外来工评选、加入企业人才库、企业招聘等等各种信息服务。</p>
|
||||
<p>八、社会服务</p>
|
||||
<p>引领青年企业家热心公益,回报社会。比如:组织会员及其企业参加志愿活动、慈善爱心活动等等。</p>
|
||||
<p>九、提醒服务</p>
|
||||
<p>比如:每逢节假日向会员发送温馨问候的短信;遇到极端天气,向会员发出安全提醒短信等等。并且在青企协微信群里提供知识、文化、新闻方面的精神层面的服务。</p>
|
||||
<p>十、资源共享服务</p>
|
||||
<p>会员里面培训机构、律师、会计学校、审计机构、医生、地产商都有,资源充足,涵盖面广。番禺区青企协积极为会员排忧解难,为有需要的会员提供资源对接,谋求共同发展。</p>
|
||||
<view style="padding: 30rpx;line-height: 50rpx;">
|
||||
<view v-html="info.association_guizhang"></view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
@ -41,13 +22,42 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {associationInfo, UserApplication} from "@/util/api";
|
||||
import store from "@/store";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
topCurrent: 0
|
||||
topCurrent: 0,
|
||||
info:{}
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getAssociationInfo();
|
||||
},
|
||||
methods: {
|
||||
getAssociationInfo(){
|
||||
console.log('discovery');
|
||||
associationInfo({
|
||||
association_id: store.state.Gid,
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if(res.code==1){
|
||||
var key=res.data;
|
||||
if(key.association_guizhang.indexOf("<img")!=-1){
|
||||
key.association_guizhang=getApp().addWidthToImages(key.association_guizhang);
|
||||
}
|
||||
this.info=key;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
goBack() {
|
||||
if (getCurrentPages().length > 1) {
|
||||
uni.navigateBack()
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="tn-margin tn-bg-gray--light" style="border-radius: 10rpx;padding: 20rpx 30rpx;">
|
||||
<input placeholder="填写姓名" name="input" placeholder-style="color:#AAAAAA"></input>
|
||||
<input placeholder="填写姓名" name="input" v-model="formData.name" placeholder-style="color:#AAAAAA"></input>
|
||||
</view>
|
||||
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-padding-top tn-margin">
|
||||
<view class="tn-flex justify-content-item">
|
||||
|
@ -29,7 +29,7 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="tn-margin tn-bg-gray--light" style="border-radius: 10rpx;padding: 20rpx 30rpx;">
|
||||
<input placeholder="填写联系方式" name="input" placeholder-style="color:#AAAAAA"></input>
|
||||
<input placeholder="填写联系方式" v-model="formData.phone" name="input" placeholder-style="color:#AAAAAA"></input>
|
||||
</view>
|
||||
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-padding-top tn-margin">
|
||||
<view class="tn-flex justify-content-item">
|
||||
|
@ -37,13 +37,13 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="tn-margin tn-bg-gray--light tn-padding" style="border-radius: 10rpx;">
|
||||
<textarea maxlength="500" placeholder="填写反馈内容" placeholder-style="color:#AAAAAA"></textarea>
|
||||
<textarea maxlength="500" v-model="formData.content" placeholder="填写反馈内容" placeholder-style="color:#AAAAAA"></textarea>
|
||||
</view>
|
||||
<!-- 悬浮按钮-->
|
||||
<view class="tn-flex tn-footerfixed">
|
||||
<view class="tn-flex-1 justify-content-item tn-margin-sm tn-text-center">
|
||||
<tn-button backgroundColor="#FBBD12" fontColor="#ffffff" padding="40rpx 0" width="60%" shadow
|
||||
fontBold @tap="upload">
|
||||
fontBold @tap="submit">
|
||||
<!-- <text class="tn-icon-light tn-padding-right-xs tn-color-black"></text> -->
|
||||
<text>提 交</text>
|
||||
</tn-button>
|
||||
|
@ -58,17 +58,55 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import { messageAdd} from "@/util/api";
|
||||
import store from "@/store";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
topCurrent: 0,
|
||||
|
||||
formData:{
|
||||
name:'',
|
||||
phone:'',
|
||||
content:'',
|
||||
association_id:store.state.Gid,
|
||||
member_id:uni.getStorageSync('uid'),
|
||||
createtime:new Date().toISOString().slice(0, 19).replace('T', ' ')
|
||||
}
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
||||
},
|
||||
methods: {
|
||||
submit(){
|
||||
messageAdd(this.formData)
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if(res.code==1){
|
||||
uni.showToast({
|
||||
title: '提交成功!',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
this.formData.name='';
|
||||
this.formData.phone='';
|
||||
this.formData.content='';
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
// 跳转
|
||||
tn(e) {
|
||||
uni.navigateTo({
|
||||
|
|
|
@ -30,7 +30,6 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
|
|
@ -19,17 +19,17 @@
|
|||
<swiper-item
|
||||
style="padding: 0px;border-radius: 0;">
|
||||
<view class="swiper-item image-banner"
|
||||
:style="'background-image:url('+ apiImgUrl+info.association_image + ');background-size: 100%; background-repeat: no-repeat;border-radius: 0;'">
|
||||
:style="'background-image:url('+ apiImgUrl+info.association_image + ');background-size: contain; background-position:center; background-repeat: no-repeat;border-radius: 0;'">
|
||||
</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view style="position: absolute;top: 10px;right: 10px;">
|
||||
<!-- <view style="position: absolute;top: 10px;right: 10px;">
|
||||
<view
|
||||
style="position: relative;;width: 70rpx;height: 60rpx;background-color: rgba(255, 255, 255, 0.9);border-radius: 8rpx;box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.2);">
|
||||
<image src="/static/c1455.png" mode="widthFix"
|
||||
style="width: 40rpx;position: absolute;left: 0;right: 0;margin: 0 auto;top: 15rpx;"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding:20rpx 30rpx;">
|
||||
|
@ -88,15 +88,29 @@
|
|||
</template>
|
||||
</view>
|
||||
</view>
|
||||
<view style="position: fixed;bottom: 50rpx;width: 100%;">
|
||||
<view class="tn-flex tn-flex-row-around">
|
||||
<view @click="openUrl('/pages/index/directory?id='+info.id)"
|
||||
<!-- <view style="position: fixed;bottom: 50rpx;width: 100%;">
|
||||
<view class="tn-flex tn-flex-row-around"> -->
|
||||
<!-- <view @click="openUrl('/pages/index/directory?id='+info.id)"
|
||||
style="color: #fff;;letter-spacing: 10rpx;line-height: 70rpx;;text-align: center;;width: 300rpx;height: 70rpx;background: linear-gradient(-45deg, #4AA2EF, #3A7FF4);border-radius: 50rpx;">
|
||||
会员名录</view>
|
||||
<view v-if="userInfo.association_id!=association_id" @click="openUrl('/pages/index/apply_in')"
|
||||
会员名录</view> -->
|
||||
|
||||
<!-- <view v-if="userInfo.association_id!=association_id" @click="openUrl('/pages/index/apply_in')"
|
||||
style="color: #fff;;letter-spacing: 10rpx;line-height: 70rpx;;text-align: center;;width: 300rpx;height: 70rpx;background: linear-gradient(270deg, #EE7E45, #EE9657);border-radius: 50rpx;">
|
||||
申请入会</view>
|
||||
</view>
|
||||
申请入会</view> -->
|
||||
<view v-if="userInfo.association_id!=association_id" @click="openUrl('/pages/index/apply_in')"
|
||||
style="position: fixed;bottom: 260rpx;right: 20rpx;line-height: 35rpx;color: #fff;;text-align: center;width: 100rpx;height: 100rpx;background: linear-gradient(270deg, #EE7E45, #EE9657);border-radius: 50%;">
|
||||
<view style="padding-top: 16rpx;">申请</view>
|
||||
<view>入会</view>
|
||||
</view>
|
||||
<view style="position: fixed;bottom: 250rpx; width: 100%;">
|
||||
<view class="tn-flex tn-flex-row-around" >
|
||||
<view @click="openUrl('/pages/index/directory?id='+info.id)"
|
||||
style="position: absolute; right:20rpx;color: #fff; line-height:35rpx;text-align: center;width: 100rpx;height: 100rpx;background: linear-gradient(-45deg, #4AA2EF, #3A7FF4);border-radius: 50%;">
|
||||
<view style="padding-top: 16rpx;">会员</view> <view>名录</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- </view> -->
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
|
|
@ -1,328 +1,346 @@
|
|||
<template>
|
||||
<view style="background-color: #EBF4F7;letter-spacing: 1rpx;min-height: 100vh;">
|
||||
<tn-nav-bar :isBack="false" :bottomShadow="true" backgroundColor="#FFFFFF">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
||||
<view style="text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;width: 100%;">
|
||||
<!-- <tn-tabs :list="[{name:'智慧云商协'}]" :current="topCurrent" activeColor="#000" :bold="false"
|
||||
:fontSize="36"></tn-tabs> -->
|
||||
<view style="text-align: center;font-size: 36rpx;">协会活动</view>
|
||||
</view>
|
||||
</view>
|
||||
</tn-nav-bar>
|
||||
<view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
||||
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin">
|
||||
<view class="justify-content-item align-content-item" style="width: 100%;">
|
||||
<view class="tn-flex tn-flex-col-center"
|
||||
style="border-radius: 100rpx;padding: 10rpx 20rpx 10rpx 20rpx;width: 95%;background-color: rgba(255, 255, 255, 0.9);">
|
||||
<text
|
||||
class="tn-icon-search justify-content-item tn-padding-right-xs tn-color-gray tn-text-lg"></text>
|
||||
<input v-model="content" class="justify-content-item"
|
||||
placeholder="请填写活动标题" name="input" placeholder-style="color:#AAAAAA"
|
||||
style="width: 90%;"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view style="background-color: #EBF4F7;letter-spacing: 1rpx;min-height: 100vh;">
|
||||
<tn-nav-bar :isBack="false" :bottomShadow="true" backgroundColor="#FFFFFF">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
||||
<view style="text-shadow: 1rpx 0 0 #FFF, 0 1rpx 0 #FFF, -1rpx 0 0 #FFF , 0 -1rpx 0 #FFF;width: 100%;">
|
||||
<!-- <tn-tabs :list="[{name:'智慧云商协'}]" :current="topCurrent" activeColor="#000" :bold="false"
|
||||
:fontSize="36"></tn-tabs> -->
|
||||
<view style="text-align: center;font-size: 36rpx;">协会活动</view>
|
||||
</view>
|
||||
</view>
|
||||
</tn-nav-bar>
|
||||
<view :style="{paddingTop: vuex_custom_bar_height + 'px'}">
|
||||
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-margin">
|
||||
<view class="justify-content-item align-content-item" style="width: 100%;">
|
||||
<view class="tn-flex tn-flex-col-center"
|
||||
style="border-radius: 100rpx;padding: 10rpx 20rpx 10rpx 20rpx;width: 95%;background-color: rgba(255, 255, 255, 0.9);">
|
||||
<text
|
||||
class="tn-icon-search justify-content-item tn-padding-right-xs tn-color-gray tn-text-lg"></text>
|
||||
<input v-model="content" class="justify-content-item"
|
||||
placeholder="请填写活动标题" name="input" placeholder-style="color:#AAAAAA"
|
||||
style="width: 90%;"></input>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view>
|
||||
<view class="justify-content-item tn-text-center">
|
||||
<tn-button backgroundColor="#3668fc" shape="round" padding="20rpx 20rpx" width="150rpx" @click="onsubmit()">
|
||||
<text class="tn-color-white">搜 索</text>
|
||||
</tn-button>
|
||||
<view>
|
||||
<view class="justify-content-item tn-text-center">
|
||||
<tn-button backgroundColor="#3668fc" shape="round" padding="20rpx 20rpx" width="150rpx" @click="onsubmit()">
|
||||
<text class="tn-color-white">搜 索</text>
|
||||
</tn-button>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="tn-flex tn-flex-row-between tn-flex-center tn-flex-col-center" style="padding: 0px 30rpx;">
|
||||
<view
|
||||
style="text-align: center;background-color: #FFF;padding:10rpx 30rpx;width: 48%;border-radius: 5rpx;">
|
||||
<text>年(全部显示)</text>
|
||||
<text class="tn-icon-down-triangle"></text>
|
||||
</view>
|
||||
<view
|
||||
style="text-align: center;background-color: #FFF;padding:10rpx 30rpx;width: 48%;border-radius: 5rpx;">
|
||||
<text>月(全部显示)</text>
|
||||
<text class="tn-icon-down-triangle"></text>
|
||||
</view>
|
||||
</view> -->
|
||||
<tn-tabs :list="tabList" :isScroll="false" :current="current" name="name" @change="tabChange" activeColor="#3668FC"></tn-tabs>
|
||||
<!-- <view style="padding: 30rpx;">
|
||||
<view class="tn-flex tn-flex-center tn-flex-col-center tn-flex-row-between"
|
||||
style="text-align: center;padding: 30rpx;background-color: #FFF;border-radius: 20rpx;">
|
||||
<view>
|
||||
<view>
|
||||
<image src="/static/ico1.png" style="width: 70rpx;height: 70rpx;"></image>
|
||||
</view>
|
||||
<view style="margin-top: 10rpx;">
|
||||
<text>协会活动</text>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
<image src="/static/ico2.png" style="width: 70rpx;height: 70rpx;"></image>
|
||||
</view>
|
||||
<view style="margin-top: 10rpx;">
|
||||
<text>知识学堂</text>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
<image src="/static/ico3.png" style="width: 70rpx;height: 70rpx;"></image>
|
||||
</view>
|
||||
<view style="margin-top: 10rpx;">
|
||||
<text>供需服务</text>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
<image src="/static/ico4.png" style="width: 70rpx;height: 70rpx;"></image>
|
||||
</view>
|
||||
<view style="margin-top: 10rpx;">
|
||||
<text>金融服务</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<!-- <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center"
|
||||
style="padding:10rpx 30rpx;margin-top: 20rpx;">
|
||||
<view style="font-size: 36rpx;">协会活动</view>
|
||||
<view style="color: #808080;" @click="openUrl('/pages/index/events_list')">
|
||||
<text>更多</text>
|
||||
<text class="tn-icon-right"></text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view style="padding-bottom: 30rpx;">
|
||||
<!-- <scroll-view :scroll-x="true" style="padding:0rpx 30rpx;white-space: nowrap;">
|
||||
<view v-for="(item,index) in 3" @click="openUrl('/pages/index/events_info')"
|
||||
style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);position: relative;;display: inline-block;width: 300rpx;text-align: center;background-color: #FFF;border-radius: 20rpx;overflow: hidden;margin-right: 20rpx;">
|
||||
<view>
|
||||
<image src="/static/hd1.jpg" mode="widthFix" style="width: 300rpx;"></image>
|
||||
</view>
|
||||
<view style="padding:10rpx 20rpx;font-weight: 400;">
|
||||
<view class="tn-text-ellipsis-2" style="letter-spacing: 1px;">青年企业家能力提升 计划培训班(第20期)</view>
|
||||
</view>
|
||||
<view style="position: absolute;top: 10rpx;left: 10rpx;">
|
||||
<tn-button v-if="index==0" width="80rpx" height="40rpx" size="sm" backgroundColor="#6BC7F0 "
|
||||
fontColor="tn-color-white">报名中</tn-button>
|
||||
<tn-button v-if="index==1" width="80rpx" height="40rpx" size="sm" backgroundColor="#EE9556 "
|
||||
fontColor="tn-color-white">预告</tn-button>
|
||||
<tn-button v-if="index==2" width="80rpx" height="40rpx" size="sm" backgroundColor="#E12B33 "
|
||||
fontColor="tn-color-white">进行中</tn-button>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view> -->
|
||||
<view style="padding: 30rpx 0rpx;">
|
||||
<tn-grid align="left" :col="2">
|
||||
<block v-for="(item,index) in actList">
|
||||
<tn-grid-item style="width:50%">
|
||||
<view @click="openUrl('/pages/index/event_info')"
|
||||
style="margin-bottom: 30rpx;background-color: #FFF;box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);position: relative;display: inline-block;width: 350rpx;text-align: center;border-radius: 20rpx;overflow: hidden;">
|
||||
<view>
|
||||
<image :src="apiImgUrl+item.activity_image"
|
||||
style="width: 350rpx;height: 170rpx;">
|
||||
</image>
|
||||
</view>
|
||||
<view style="padding:10rpx 20rpx;font-weight: 400;">
|
||||
<view class="tn-text-ellipsis">{{item.activity_name}}</view>
|
||||
<view class="tn-flex tn-flex-row-between"
|
||||
style="font-size: 24rpx;color:#808080;padding: 15rpx 0rpx;">
|
||||
<!-- <view>{{item.name}}</view>
|
||||
<view>
|
||||
<text class="tn-icon-eye"></text>
|
||||
<text style="margin-left: 5rpx;">{{item.eye}}</text>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view style="position: absolute;top: 10rpx;left: 10rpx;">
|
||||
<tn-button v-if="item.is==0" padding="0" width="80rpx" height="40rpx" size="sm"
|
||||
backgroundColor="#6BC7F0 " fontColor="tn-color-white">报名中</tn-button>
|
||||
<tn-button v-if="item.is==1" padding="0" width="80rpx" height="40rpx" size="sm"
|
||||
backgroundColor="#EE9556 " fontColor="tn-color-white">预告</tn-button>
|
||||
<tn-button v-if="item.is==2" padding="0" width="80rpx" height="40rpx" size="sm"
|
||||
backgroundColor="#E12B33 " fontColor="tn-color-white">进行中</tn-button>
|
||||
</view>
|
||||
</view>
|
||||
</tn-grid-item>
|
||||
</block>
|
||||
</tn-grid>
|
||||
<!-- <view style="position: absolute;top: 10rpx;left: 10rpx;">
|
||||
<tn-button v-if="index==0" width="80rpx" height="40rpx" size="sm" backgroundColor="#6BC7F0 "
|
||||
fontColor="tn-color-white">报名中</tn-button>
|
||||
<tn-button v-if="index==1" width="80rpx" height="40rpx" size="sm" backgroundColor="#EE9556 "
|
||||
fontColor="tn-color-white">预告</tn-button>
|
||||
<tn-button v-if="index==2" width="80rpx" height="40rpx" size="sm" backgroundColor="#E12B33 "
|
||||
fontColor="tn-color-white">进行中</tn-button>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center" style="padding:10rpx 30rpx;">
|
||||
<view style="font-size: 36rpx;">知识学堂</view>
|
||||
<view style="color: #808080;" @click="openUrl('/pages/index/knowledge_list')">
|
||||
<text>更多</text>
|
||||
<text class="tn-icon-right"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding:0rpx 30rpx;">
|
||||
<view @click="openUrl('/pages/index/new_info')"
|
||||
style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);position: relative;width: 100%;background-color: #FFF;border-radius: 20rpx;overflow: hidden;">
|
||||
<view>
|
||||
<image src="/static/s1.jpg" mode="widthFix" style="width: 100%;"></image>
|
||||
</view>
|
||||
<view style="padding:10rpx 20rpx;font-weight: 400;">
|
||||
<view class="tn-text-ellipsis-2">青年企业家能力提升 计划培训班(第20期)</view>
|
||||
<view class="tn-flex tn-flex-row-between"
|
||||
style="font-size: 24rpx;color:#808080;padding: 20rpx 0rpx;">
|
||||
<view>河南青企协</view>
|
||||
<view>
|
||||
<text class="tn-icon-eye"></text>
|
||||
<text style="margin-left: 5rpx;">568</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding: 30rpx 0rpx;">
|
||||
<scroll-view :scroll-x="true" style="padding:0rpx 30rpx;white-space: nowrap;">
|
||||
<view v-for="(item,index) in 3" @click="openUrl('/pages/index/new_info')"
|
||||
style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);position: relative;;display: inline-block;width: 335rpx;text-align: center;background-color: #FFF;border-radius: 20rpx;overflow: hidden;margin-right: 20rpx;">
|
||||
<view>
|
||||
<image src="/static/hd1.jpg" style="width: 335rpx;height: 200rpx;"></image>
|
||||
</view>
|
||||
<view style="padding:10rpx 20rpx;font-weight: 400;">
|
||||
<view class="tn-text-ellipsis" style="letter-spacing: 1px;">青年企业家能力提升 计划培训班(第20期)</view>
|
||||
<view class="tn-flex tn-flex-row-between"
|
||||
style="font-size: 24rpx;color:#808080;padding: 15rpx 0rpx;">
|
||||
<view>河南青企协</view>
|
||||
<view>
|
||||
<text class="tn-icon-eye"></text>
|
||||
<text style="margin-left: 5rpx;">568</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center" style="padding:10rpx 30rpx;">
|
||||
<view style="font-size: 36rpx;">供需服务</view>
|
||||
<view style="color: #808080;" @click="openUrl('/pages/index/goods_list')">
|
||||
<text>更多</text>
|
||||
<text class="tn-icon-right"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding:10rpx 30rpx 100rpx 30rpx;">
|
||||
<view v-for="(item,index) in 3" @click="openUrl('/pages/index/goods_info')" style="background-color: #FFF;padding: 20rpx;border-radius: 20rpx;
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="tn-flex tn-flex-row-between tn-flex-center tn-flex-col-center" style="padding: 0px 30rpx;">
|
||||
<view
|
||||
style="text-align: center;background-color: #FFF;padding:10rpx 30rpx;width: 48%;border-radius: 5rpx;">
|
||||
<text>年(全部显示)</text>
|
||||
<text class="tn-icon-down-triangle"></text>
|
||||
</view>
|
||||
<view
|
||||
style="text-align: center;background-color: #FFF;padding:10rpx 30rpx;width: 48%;border-radius: 5rpx;">
|
||||
<text>月(全部显示)</text>
|
||||
<text class="tn-icon-down-triangle"></text>
|
||||
</view>
|
||||
</view> -->
|
||||
<tn-tabs :list="tabList" :isScroll="false" :current="current" name="name" @change="tabChange"
|
||||
activeColor="#3668FC"></tn-tabs>
|
||||
<!-- <view style="padding: 30rpx;">
|
||||
<view class="tn-flex tn-flex-center tn-flex-col-center tn-flex-row-between"
|
||||
style="text-align: center;padding: 30rpx;background-color: #FFF;border-radius: 20rpx;">
|
||||
<view>
|
||||
<view>
|
||||
<image src="/static/ico1.png" style="width: 70rpx;height: 70rpx;"></image>
|
||||
</view>
|
||||
<view style="margin-top: 10rpx;">
|
||||
<text>协会活动</text>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
<image src="/static/ico2.png" style="width: 70rpx;height: 70rpx;"></image>
|
||||
</view>
|
||||
<view style="margin-top: 10rpx;">
|
||||
<text>知识学堂</text>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
<image src="/static/ico3.png" style="width: 70rpx;height: 70rpx;"></image>
|
||||
</view>
|
||||
<view style="margin-top: 10rpx;">
|
||||
<text>供需服务</text>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view>
|
||||
<image src="/static/ico4.png" style="width: 70rpx;height: 70rpx;"></image>
|
||||
</view>
|
||||
<view style="margin-top: 10rpx;">
|
||||
<text>金融服务</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
<!-- <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center"
|
||||
style="padding:10rpx 30rpx;margin-top: 20rpx;">
|
||||
<view style="font-size: 36rpx;">协会活动</view>
|
||||
<view style="color: #808080;" @click="openUrl('/pages/index/events_list')">
|
||||
<text>更多</text>
|
||||
<text class="tn-icon-right"></text>
|
||||
</view>
|
||||
</view> -->
|
||||
<view style="padding-bottom: 30rpx;">
|
||||
<!-- <scroll-view :scroll-x="true" style="padding:0rpx 30rpx;white-space: nowrap;">
|
||||
<view v-for="(item,index) in 3" @click="openUrl('/pages/index/events_info')"
|
||||
style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);position: relative;;display: inline-block;width: 300rpx;text-align: center;background-color: #FFF;border-radius: 20rpx;overflow: hidden;margin-right: 20rpx;">
|
||||
<view>
|
||||
<image src="/static/hd1.jpg" mode="widthFix" style="width: 300rpx;"></image>
|
||||
</view>
|
||||
<view style="padding:10rpx 20rpx;font-weight: 400;">
|
||||
<view class="tn-text-ellipsis-2" style="letter-spacing: 1px;">青年企业家能力提升 计划培训班(第20期)</view>
|
||||
</view>
|
||||
<view style="position: absolute;top: 10rpx;left: 10rpx;">
|
||||
<tn-button v-if="index==0" width="80rpx" height="40rpx" size="sm" backgroundColor="#6BC7F0 "
|
||||
fontColor="tn-color-white">报名中</tn-button>
|
||||
<tn-button v-if="index==1" width="80rpx" height="40rpx" size="sm" backgroundColor="#EE9556 "
|
||||
fontColor="tn-color-white">预告</tn-button>
|
||||
<tn-button v-if="index==2" width="80rpx" height="40rpx" size="sm" backgroundColor="#E12B33 "
|
||||
fontColor="tn-color-white">进行中</tn-button>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view> -->
|
||||
<view style="padding: 30rpx 0rpx;">
|
||||
<tn-grid align="left" :col="2">
|
||||
<block v-for="(item,index) in actList">
|
||||
<tn-grid-item style="width:50%">
|
||||
<view @click="openUrl('/pages/index/event_info?id='+item.id)"
|
||||
style="margin-bottom: 30rpx;background-color: #FFF;box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);position: relative;display: inline-block;width: 350rpx;text-align: center;border-radius: 20rpx;overflow: hidden;">
|
||||
<view>
|
||||
<image :src="apiImgUrl+item.activity_image"
|
||||
style="width: 350rpx;height: 170rpx;">
|
||||
</image>
|
||||
</view>
|
||||
<view style="padding:10rpx 20rpx;font-weight: 400;">
|
||||
<view class="tn-text-ellipsis "style="text-align: left;">{{ item.activity_name }}</view>
|
||||
<view class="tn-flex tn-flex-row-between"
|
||||
style="font-size: 24rpx;color:#808080;padding: 15rpx 0rpx;">
|
||||
<view>
|
||||
<text v-if="item.activity_type==1">线下活动</text>
|
||||
<text v-if="item.activity_type==2">调查问卷</text>
|
||||
<text v-if="item.activity_type==3">公益捐赠</text>
|
||||
<text v-if="item.activity_type==4">学习培训</text>
|
||||
</view>
|
||||
<!-- <view>-->
|
||||
<!-- <text class="tn-icon-eye"></text>-->
|
||||
<!-- <text style="margin-left: 5rpx;">{{item.eye}}</text>-->
|
||||
<!-- </view>-->
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view style="position: absolute;top: 10rpx;left: 10rpx;">-->
|
||||
<!-- <tn-button v-if="item.is==0" padding="0" width="80rpx" height="40rpx" size="sm"-->
|
||||
<!-- backgroundColor="#6BC7F0 " fontColor="tn-color-white">报名中</tn-button>-->
|
||||
<!-- <tn-button v-if="item.is==1" padding="0" width="80rpx" height="40rpx" size="sm"-->
|
||||
<!-- backgroundColor="#EE9556 " fontColor="tn-color-white">预告</tn-button>-->
|
||||
<!-- <tn-button v-if="item.is==2" padding="0" width="80rpx" height="40rpx" size="sm"-->
|
||||
<!-- backgroundColor="#E12B33 " fontColor="tn-color-white">进行中</tn-button>-->
|
||||
<!-- </view>-->
|
||||
</view>
|
||||
</tn-grid-item>
|
||||
</block>
|
||||
</tn-grid>
|
||||
<!-- <view style="position: absolute;top: 10rpx;left: 10rpx;">
|
||||
<tn-button v-if="index==0" width="80rpx" height="40rpx" size="sm" backgroundColor="#6BC7F0 "
|
||||
fontColor="tn-color-white">报名中</tn-button>
|
||||
<tn-button v-if="index==1" width="80rpx" height="40rpx" size="sm" backgroundColor="#EE9556 "
|
||||
fontColor="tn-color-white">预告</tn-button>
|
||||
<tn-button v-if="index==2" width="80rpx" height="40rpx" size="sm" backgroundColor="#E12B33 "
|
||||
fontColor="tn-color-white">进行中</tn-button>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<!-- <view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center" style="padding:10rpx 30rpx;">
|
||||
<view style="font-size: 36rpx;">知识学堂</view>
|
||||
<view style="color: #808080;" @click="openUrl('/pages/index/knowledge_list')">
|
||||
<text>更多</text>
|
||||
<text class="tn-icon-right"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding:0rpx 30rpx;">
|
||||
<view @click="openUrl('/pages/index/new_info')"
|
||||
style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);position: relative;width: 100%;background-color: #FFF;border-radius: 20rpx;overflow: hidden;">
|
||||
<view>
|
||||
<image src="/static/s1.jpg" mode="widthFix" style="width: 100%;"></image>
|
||||
</view>
|
||||
<view style="padding:10rpx 20rpx;font-weight: 400;">
|
||||
<view class="tn-text-ellipsis-2">青年企业家能力提升 计划培训班(第20期)</view>
|
||||
<view class="tn-flex tn-flex-row-between"
|
||||
style="font-size: 24rpx;color:#808080;padding: 20rpx 0rpx;">
|
||||
<view>河南青企协</view>
|
||||
<view>
|
||||
<text class="tn-icon-eye"></text>
|
||||
<text style="margin-left: 5rpx;">568</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding: 30rpx 0rpx;">
|
||||
<scroll-view :scroll-x="true" style="padding:0rpx 30rpx;white-space: nowrap;">
|
||||
<view v-for="(item,index) in 3" @click="openUrl('/pages/index/new_info')"
|
||||
style="box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);position: relative;;display: inline-block;width: 335rpx;text-align: center;background-color: #FFF;border-radius: 20rpx;overflow: hidden;margin-right: 20rpx;">
|
||||
<view>
|
||||
<image src="/static/hd1.jpg" style="width: 335rpx;height: 200rpx;"></image>
|
||||
</view>
|
||||
<view style="padding:10rpx 20rpx;font-weight: 400;">
|
||||
<view class="tn-text-ellipsis" style="letter-spacing: 1px;">青年企业家能力提升 计划培训班(第20期)</view>
|
||||
<view class="tn-flex tn-flex-row-between"
|
||||
style="font-size: 24rpx;color:#808080;padding: 15rpx 0rpx;">
|
||||
<view>河南青企协</view>
|
||||
<view>
|
||||
<text class="tn-icon-eye"></text>
|
||||
<text style="margin-left: 5rpx;">568</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center" style="padding:10rpx 30rpx;">
|
||||
<view style="font-size: 36rpx;">供需服务</view>
|
||||
<view style="color: #808080;" @click="openUrl('/pages/index/goods_list')">
|
||||
<text>更多</text>
|
||||
<text class="tn-icon-right"></text>
|
||||
</view>
|
||||
</view>
|
||||
<view style="padding:10rpx 30rpx 100rpx 30rpx;">
|
||||
<view v-for="(item,index) in 3" @click="openUrl('/pages/index/goods_info')" style="background-color: #FFF;padding: 20rpx;border-radius: 20rpx;
|
||||
box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);margin-bottom: 20rpx;">
|
||||
<view class="tn-text-ellipsis">
|
||||
<tn-tag v-if="index%2==0" shape="radius" size="sm" backgroundColor="tn-main-gradient-red--reverse"
|
||||
width="60rpx">需求</tn-tag>
|
||||
<tn-tag v-if="index%2!=0" shape="radius" size="sm" backgroundColor="tn-main-gradient-blue"
|
||||
width="60rpx">供应</tn-tag>
|
||||
<text style="vertical-align: middle;padding-left: 20rpx;font-size:30rpx;">
|
||||
劲捷飞燕系列P056C旅拍三脚架碳纤维摄影旅拍三脚架碳纤维摄影</text>
|
||||
</view>
|
||||
<view style="font-size: 24rpx;color: #808080;margin-top: 20rpx;">洛阳灵睿网络技术有限公司</view>
|
||||
<view>
|
||||
<tn-tag shape="radius" width="auto" backgroundColor="#F7F7F7" fontColor="#808080">洛阳市</tn-tag>
|
||||
<tn-tag shape="radius" margin="20rpx" width="auto" backgroundColor="#EBF4F7"
|
||||
fontColor="#3377FF">合作意向18人</tn-tag>
|
||||
<tn-tag shape="radius" width="auto" backgroundColor="#F7F3EB" fontColor="#FF8C19">项目金额1万以下</tn-tag>
|
||||
</view>
|
||||
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center"
|
||||
style="margin-top: 20rpx;">
|
||||
<view style="color: #808080;font-size: 24rpx;">2023-12-19</view>
|
||||
<view>
|
||||
<tn-button shape="round" :fontSize="22" width="160rpx" height="50rpx"
|
||||
backgroundColor="tn-main-gradient-orange" fontColor="#ffffff">意向合作</tn-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="tn-text-ellipsis">
|
||||
<tn-tag v-if="index%2==0" shape="radius" size="sm" backgroundColor="tn-main-gradient-red--reverse"
|
||||
width="60rpx">需求</tn-tag>
|
||||
<tn-tag v-if="index%2!=0" shape="radius" size="sm" backgroundColor="tn-main-gradient-blue"
|
||||
width="60rpx">供应</tn-tag>
|
||||
<text style="vertical-align: middle;padding-left: 20rpx;font-size:30rpx;">
|
||||
劲捷飞燕系列P056C旅拍三脚架碳纤维摄影旅拍三脚架碳纤维摄影</text>
|
||||
</view>
|
||||
<view style="font-size: 24rpx;color: #808080;margin-top: 20rpx;">洛阳灵睿网络技术有限公司</view>
|
||||
<view>
|
||||
<tn-tag shape="radius" width="auto" backgroundColor="#F7F7F7" fontColor="#808080">洛阳市</tn-tag>
|
||||
<tn-tag shape="radius" margin="20rpx" width="auto" backgroundColor="#EBF4F7"
|
||||
fontColor="#3377FF">合作意向18人</tn-tag>
|
||||
<tn-tag shape="radius" width="auto" backgroundColor="#F7F3EB" fontColor="#FF8C19">项目金额1万以下</tn-tag>
|
||||
</view>
|
||||
<view class="tn-flex tn-flex-row-between tn-flex-col-center tn-flex-row-center"
|
||||
style="margin-top: 20rpx;">
|
||||
<view style="color: #808080;font-size: 24rpx;">2023-12-19</view>
|
||||
<view>
|
||||
<tn-button shape="round" :fontSize="22" width="160rpx" height="50rpx"
|
||||
backgroundColor="tn-main-gradient-orange" fontColor="#ffffff">意向合作</tn-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<tn-load-more class="tn-margin-top" :status="load_status"></tn-load-more>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
activityIndex,
|
||||
} from '@/util/api.js';
|
||||
import store from '@/store/index.js'
|
||||
import {
|
||||
activityIndex,
|
||||
} from '@/util/api.js';
|
||||
import store from '@/store/index.js'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
current: 0,
|
||||
load_status:'loading ',
|
||||
tabList: [{
|
||||
name: '进行中',
|
||||
id: 1
|
||||
}, {
|
||||
name: '未开始',
|
||||
id: 2
|
||||
}, {
|
||||
name: '已结束',
|
||||
id: 3
|
||||
}],
|
||||
apiImgUrl:this.$store.state.imgUrl,
|
||||
content: '',
|
||||
topCurrent: 0,
|
||||
actList: [],
|
||||
page: 1,
|
||||
tabType: 1,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
export default {
|
||||
data() {
|
||||
//1.线下活动2.调查问卷3.公益捐赠4.学习培训
|
||||
return {
|
||||
current: 0,
|
||||
load_status: 'loading ',
|
||||
tabList: [{
|
||||
name: '全部',
|
||||
id: 0
|
||||
}, {
|
||||
name: '线下活动',
|
||||
id: 1
|
||||
}, {
|
||||
name: '调查问卷',
|
||||
id: 2
|
||||
}, {
|
||||
name: '公益捐赠',
|
||||
id: 3
|
||||
}, {
|
||||
name: '学习培训',
|
||||
id: 4
|
||||
}],
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
content: '',
|
||||
topCurrent: 0,
|
||||
actList: [],
|
||||
page: 1,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
this.getActivityIndex();
|
||||
},
|
||||
methods: {
|
||||
onsubmit(){
|
||||
this.page=1;
|
||||
this.actList=[];
|
||||
this.getActivityIndex();
|
||||
},
|
||||
tabChange(d) {
|
||||
console.log(d);
|
||||
this.current=d;
|
||||
this.page=1;
|
||||
this.actList=[];
|
||||
this.tabType = this.tabList[d].id;
|
||||
this.getActivityIndex();
|
||||
},
|
||||
ReachBottom() {
|
||||
console.log('service');
|
||||
this.page = this.page + 1;
|
||||
this.getActivityIndex();
|
||||
//this.getIndex();
|
||||
},
|
||||
getActivityIndex() {
|
||||
activityIndex({
|
||||
association_id: store.state.Gid,
|
||||
type: this.tabType,
|
||||
page: this.page,
|
||||
size: 10,
|
||||
activity_name:this.content
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
this.actList.push(... res.data.ret);
|
||||
}else{
|
||||
this.load_status='nomore';
|
||||
// this.getActivityIndex();
|
||||
},
|
||||
methods: {
|
||||
onsubmit() {
|
||||
this.page = 1;
|
||||
this.actList = [];
|
||||
this.getActivityIndex();
|
||||
},
|
||||
tabChange(d) {
|
||||
console.log(d);
|
||||
this.current = d;
|
||||
this.page = 1;
|
||||
this.actList = [];
|
||||
this.getActivityIndex();
|
||||
},
|
||||
ReachBottom() {
|
||||
console.log('service');
|
||||
this.page = this.page + 1;
|
||||
this.getActivityIndex();
|
||||
//this.getIndex();
|
||||
},
|
||||
getNewInfo(){
|
||||
this.current = 0;
|
||||
this.page = 1;
|
||||
this.actList = [];
|
||||
this.getActivityIndex();
|
||||
},
|
||||
getActivityIndex() {
|
||||
var type=this.tabList[this.current].id;
|
||||
activityIndex({
|
||||
association_id: store.state.Gid,
|
||||
page: this.page,
|
||||
size: 10,
|
||||
activity_name: this.content,
|
||||
activity_type:type
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
this.actList.push(...res.data.ret);
|
||||
} else {
|
||||
this.load_status = 'nomore';
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
openUrl(e) {
|
||||
uni.navigateTo({
|
||||
url: e
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
openUrl(e) {
|
||||
uni.navigateTo({
|
||||
url: e
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<view style="letter-spacing: 1rpx;">
|
||||
<view style="letter-spacing: 1rpx;background-color: #F2F2F2;min-height: 100vh;">
|
||||
<tn-nav-bar :isBack="false" backTitle="" :bottomShadow="true" backgroundColor="#FFFFFF">
|
||||
<view class="custom-nav tn-flex tn-flex-col-center tn-flex-row-left">
|
||||
<view style="padding-left: 15rpx;" @click="goBack()">
|
||||
|
@ -12,25 +12,32 @@
|
|||
</view>
|
||||
</view>
|
||||
</tn-nav-bar>
|
||||
<view :style="{paddingTop: vuex_custom_bar_height+ 'px'}">
|
||||
<view style="padding: 30rpx;text-align: center;">
|
||||
<template v-for="(item, index) in architecture">
|
||||
<tn-button backgroundColor="#E83A30" height="50rpx" width="250rpx" fontColor="#ffffff">{{item.position_name}}</tn-button>
|
||||
<tn-grid align="center" col="5">
|
||||
<tn-grid-item v-if="item.neirong" style="width:20%" v-for="(v,i) in item.neirong">
|
||||
<view style="padding: 30rpx;">
|
||||
<image :src="apiImgUrl+v.photo_image" style="width: 100rpx;height: 100rpx;border-radius: 50%;">
|
||||
</image>
|
||||
<view>{{v.nikename}}</view>
|
||||
</view>
|
||||
</tn-grid-item>
|
||||
<tn-grid-item v-if="!item.neirong" style="width:20%">
|
||||
<view style="padding: 30rpx;">
|
||||
<view>暂无</view>
|
||||
</view>
|
||||
</tn-grid-item>
|
||||
</tn-grid>
|
||||
</template>
|
||||
<view :style="{paddingTop: vuex_custom_bar_height+ 'px',}">
|
||||
<view style="position: fixed;width: 100%;background-color: #F2F2F2;z-index: 1;">
|
||||
<tn-tabs :list="list" :isScroll="false" :current="current" name="name" activeColor="#000000"
|
||||
:activeItemStyle="{backgroundColor:'#ffffff'}" :showBar='false' @change="change"></tn-tabs>
|
||||
</view>
|
||||
<view style="padding: 30rpx;text-align: center;padding-top: 94rpx;">
|
||||
<template v-for="(item, index) in architecture">
|
||||
<tn-button backgroundColor="#ffffff" height="50rpx"
|
||||
fontColor="#000000">{{item.position_name}}</tn-button>
|
||||
<tn-grid align="center" col="5" hoverClass="none">
|
||||
<tn-grid-item v-if="item.neirong" style="width:20%" v-for="(v,i) in item.neirong"
|
||||
@click="openInfo('/pages/index/my_card?id='+v.member_id)">
|
||||
<view style="padding: 30rpx;">
|
||||
<image :src="apiImgUrl+v.photo_image"
|
||||
style="width: 100rpx;height: 100rpx;border-radius: 50%;">
|
||||
</image>
|
||||
<view>{{v.nikename}}</view>
|
||||
</view>
|
||||
</tn-grid-item>
|
||||
<tn-grid-item v-if="!item.neirong" style="width:20%">
|
||||
<view style="padding: 30rpx;">
|
||||
<view>暂无</view>
|
||||
</view>
|
||||
</tn-grid-item>
|
||||
</tn-grid>
|
||||
</template>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
|
@ -38,39 +45,54 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {architectureList} from "@/util/api";
|
||||
import store from "@/store";
|
||||
import {
|
||||
architectureList
|
||||
} from "@/util/api";
|
||||
import store from "@/store";
|
||||
|
||||
export default {
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
topCurrent: 0,
|
||||
architecture:[],
|
||||
apiImgUrl:this.$store.state.imgUrl,
|
||||
architecture: [],
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
current: 0,
|
||||
list: [{
|
||||
name: '理事会'
|
||||
}, {
|
||||
name: '监事会'
|
||||
}],
|
||||
type: 1
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
this.getArchitectureList();
|
||||
},
|
||||
onLoad(d) {
|
||||
this.getArchitectureList();
|
||||
},
|
||||
methods: {
|
||||
getArchitectureList() {
|
||||
architectureList({
|
||||
association_id: store.state.Gid,
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if(res.code==1){
|
||||
this.architecture=res.data;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
openInfo(u) {
|
||||
uni.navigateTo({
|
||||
url: u
|
||||
})
|
||||
},
|
||||
getArchitectureList() {
|
||||
architectureList({
|
||||
association_id: store.state.Gid,
|
||||
type: this.type,
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
this.architecture = res.data;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
goBack() {
|
||||
if (getCurrentPages().length > 1) {
|
||||
uni.navigateBack()
|
||||
|
@ -80,6 +102,11 @@
|
|||
})
|
||||
|
||||
}
|
||||
},
|
||||
change(index) {
|
||||
this.current = index;
|
||||
this.type = index + 1;
|
||||
this.getArchitectureList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,30 +4,31 @@
|
|||
style="background: linear-gradient(50deg, #034EF9 0%, #05ACFF 99%);height: 400rpx;">
|
||||
|
||||
<view class="tn-flex tn-flex-center tn-flex-col-center" style="padding: 30rpx;width: 100%;">
|
||||
<view v-if="login" >
|
||||
<image :src="apiImgUrl+userInfo.photo_image" style="width: 100rpx;height: 100rpx;border-radius: 50%;"></image>
|
||||
<view v-if="login">
|
||||
<image :src="apiImgUrl+userInfo.photo_image"
|
||||
style="width: 100rpx;height: 100rpx;border-radius: 50%;"></image>
|
||||
</view>
|
||||
<view v-if="!login">
|
||||
<image src="/static/def.png" style="width: 100rpx;height: 100rpx;border-radius: 50%;"></image>
|
||||
</view>
|
||||
<view v-if="!login" >
|
||||
<image src="/static/def.png" style="width: 100rpx;height: 100rpx;border-radius: 50%;"></image>
|
||||
</view>
|
||||
<view style="width: 100%;">
|
||||
<view v-if="login" class="tn-flex tn-flex-col-center tn-flex-row-between">
|
||||
<view style="margin-left: 20rpx;color: #fff">
|
||||
<view style="font-size: 35rpx;">{{userInfo.nikename}}</view>
|
||||
<view style="font-size: 35rpx;">{{ userInfo.nikename }}</view>
|
||||
<view style="font-size: 24rpx;margin-top: 10rpx;" v-if="userInfo.status==1">接口返回商会+职位</view>
|
||||
</view>
|
||||
<!-- <view @click="tn('/pages/index/my_edit')">-->
|
||||
<!-- <image src="/static/ico13.png" style="width: 40rpx ;" mode="widthFix"></image>-->
|
||||
<!-- </view>-->
|
||||
<!-- <view @click="tn('/pages/index/my_edit')">-->
|
||||
<!-- <image src="/static/ico13.png" style="width: 40rpx ;" mode="widthFix"></image>-->
|
||||
<!-- </view>-->
|
||||
</view>
|
||||
<view v-if="!login" class="tn-flex tn-flex-col-center tn-flex-row-between">
|
||||
<view style="margin-left: 20rpx;color: #fff">
|
||||
<tn-button @click="loginMod = true">点击登陆</tn-button>
|
||||
</view>
|
||||
<!-- <view @click="tn('/pages/index/my_edit')">-->
|
||||
<!-- <image src="/static/ico13.png" style="width: 40rpx ;" mode="widthFix"></image>-->
|
||||
<!-- </view>-->
|
||||
</view>
|
||||
<view v-if="!login" class="tn-flex tn-flex-col-center tn-flex-row-between">
|
||||
<view style="margin-left: 20rpx;color: #fff">
|
||||
<tn-button @click="loginMod = true">点击登陆</tn-button>
|
||||
</view>
|
||||
<!-- <view @click="tn('/pages/index/my_edit')">-->
|
||||
<!-- <image src="/static/ico13.png" style="width: 40rpx ;" mode="widthFix"></image>-->
|
||||
<!-- </view>-->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -71,140 +72,171 @@
|
|||
</view>
|
||||
<view style="background-color: #fff;">
|
||||
<view style="padding:0px 20rpx;">
|
||||
<!-- <tn-list-cell :arrow="true" @click="tn('/pages/index/my_pizz')">-->
|
||||
<!-- <view class="tn-flex tn-flex-center tn-flex-col-center">-->
|
||||
<!-- <image src="/static/ico7.png" style="width: 50rpx;height: 50rpx"></image>-->
|
||||
<!-- <view style="margin-left: 20rpx;">所在商/协会</view>-->
|
||||
<!-- </view>-->
|
||||
<!-- </tn-list-cell>-->
|
||||
<!-- <tn-list-cell :arrow="true" @click="tn('/pages/index/my_pizz')">-->
|
||||
<!-- <view class="tn-flex tn-flex-center tn-flex-col-center">-->
|
||||
<!-- <image src="/static/ico7.png" style="width: 50rpx;height: 50rpx"></image>-->
|
||||
<!-- <view style="margin-left: 20rpx;">所在商/协会</view>-->
|
||||
<!-- </view>-->
|
||||
<!-- </tn-list-cell>-->
|
||||
<tn-list-cell :arrow="true" @click="tn('/pages/index/my_apply')">
|
||||
<view class="tn-flex tn-flex-center tn-flex-col-center">
|
||||
<image src="/static/ico8.png" style="width: 50rpx;height: 50rpx"></image>
|
||||
<view style="margin-left: 20rpx;">入会申请记录</view>
|
||||
</view>
|
||||
</tn-list-cell>
|
||||
<tn-list-cell :arrow="true" @click="tn('/pages/index/my_msg')">
|
||||
<view class="tn-flex tn-flex-center tn-flex-col-center">
|
||||
<image src="/static/ico9.png" style="width: 50rpx;height: 50rpx"></image>
|
||||
<view style="margin-left: 20rpx;">我的消息</view>
|
||||
</view>
|
||||
</tn-list-cell>
|
||||
<tn-list-cell :arrow="true" @click="tn('/pages/index/my_assist')">
|
||||
<view class="tn-flex tn-flex-center tn-flex-col-center">
|
||||
<image src="/static/ico10.png" style="width: 50rpx;height: 50rpx"></image>
|
||||
<view style="margin-left: 20rpx;">常见问题</view>
|
||||
</view>
|
||||
</tn-list-cell>
|
||||
<!-- <tn-list-cell :arrow="true" @click="tn('/pages/index/my_settings')">
|
||||
<view class="tn-flex tn-flex-center tn-flex-col-center">
|
||||
<image src="/static/ico11.png" style="width: 50rpx;height: 50rpx"></image>
|
||||
<view style="margin-left: 20rpx;">设置</view>
|
||||
</view>
|
||||
</tn-list-cell> -->
|
||||
<!-- <tn-list-cell :arrow="true" @click="tn('/pages/index/my_msg')">-->
|
||||
<!-- <view class="tn-flex tn-flex-center tn-flex-col-center">-->
|
||||
<!-- <image src="/static/ico9.png" style="width: 50rpx;height: 50rpx"></image>-->
|
||||
<!-- <view style="margin-left: 20rpx;">我的消息</view>-->
|
||||
<!-- </view>-->
|
||||
<!-- </tn-list-cell>-->
|
||||
<!-- <tn-list-cell :arrow="true" @click="tn('/pages/index/my_assist')">-->
|
||||
<!-- <view class="tn-flex tn-flex-center tn-flex-col-center">-->
|
||||
<!-- <image src="/static/ico10.png" style="width: 50rpx;height: 50rpx"></image>-->
|
||||
<!-- <view style="margin-left: 20rpx;">常见问题</view>-->
|
||||
<!-- </view>-->
|
||||
<!-- </tn-list-cell>-->
|
||||
|
||||
<tn-list-cell :arrow="true" @click="tn('/pages/index/my_idea')">
|
||||
<view class="tn-flex tn-flex-center tn-flex-col-center">
|
||||
<image src="/static/ico12.png" style="width: 50rpx;height: 50rpx"></image>
|
||||
<view style="margin-left: 20rpx;">意见反馈</view>
|
||||
</view>
|
||||
</tn-list-cell>
|
||||
<tn-list-cell :arrow="true" @click="loginAut">
|
||||
<view class="tn-flex tn-flex-center tn-flex-col-center">
|
||||
<image src="/static/ico11.png" style="width: 50rpx;height: 50rpx"></image>
|
||||
<view style="margin-left: 20rpx;">退出帐号</view>
|
||||
</view>
|
||||
</tn-list-cell>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<tn-modal v-model="loginMod" :custom="true">
|
||||
<view class="custom-modal-content">
|
||||
<view style="text-align: center;font-size: 34rpx;">会员登陆</view>
|
||||
<view class="text">
|
||||
<tn-form ref="form" :labelWidth="120">
|
||||
<tn-form-item label="手机号" prop="phone">
|
||||
<tn-input v-model="loginData.phone"/>
|
||||
</tn-form-item>
|
||||
<tn-form-item label="密码" prop="password">
|
||||
<tn-input v-model="loginData.password" type="password"/>
|
||||
</tn-form-item>
|
||||
</tn-form>
|
||||
<view style="text-align: center;margin-top: 30rpx;">
|
||||
<tn-button backgroundColor="#E6E6E6" fontColor="#ffffff" @click="loginMod = false">取消</tn-button>
|
||||
<tn-button backgroundColor="tn-bg-blue" fontColor="tn-color-white" style="margin-left: 30rpx" @click="submitLogin">确定</tn-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</tn-modal>
|
||||
<tn-modal v-model="loginMod" :custom="true">
|
||||
<view class="custom-modal-content">
|
||||
<view style="text-align: center;font-size: 34rpx;">会员登陆</view>
|
||||
<view class="text">
|
||||
<tn-form ref="form" :labelWidth="120">
|
||||
<tn-form-item label="手机号" prop="phone">
|
||||
<tn-input v-model="loginData.phone" />
|
||||
</tn-form-item>
|
||||
<tn-form-item label="密码" prop="password">
|
||||
<tn-input v-model="loginData.password" type="password" />
|
||||
</tn-form-item>
|
||||
</tn-form>
|
||||
<view style="text-align: center;margin-top: 30rpx;">
|
||||
<tn-button backgroundColor="#E6E6E6" fontColor="#ffffff"
|
||||
@click="loginMod = false">取消</tn-button>
|
||||
<tn-button backgroundColor="tn-bg-blue" fontColor="tn-color-white" style="margin-left: 30rpx"
|
||||
@click="submitLogin">确定
|
||||
</tn-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</tn-modal>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getUserIndex, loginDo} from "@/util/api";
|
||||
import store from "@/store";
|
||||
import {
|
||||
getUserIndex,
|
||||
loginDo
|
||||
} from "@/util/api";
|
||||
import store from "@/store";
|
||||
|
||||
export default {
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
topCurrent: 0,
|
||||
login:false,
|
||||
loginMod:false,
|
||||
userInfo:{},
|
||||
apiImgUrl:this.$store.state.imgUrl,
|
||||
loginData:{
|
||||
phone:'',
|
||||
password:'',
|
||||
association_id:store.state.Gid
|
||||
},
|
||||
login: false,
|
||||
loginMod: false,
|
||||
userInfo: {},
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
loginData: {
|
||||
openid: '',
|
||||
phone: '',
|
||||
password: '',
|
||||
association_id: store.state.Gid
|
||||
},
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
console.log(uid);
|
||||
if (uid) {
|
||||
this.getUserInfo(uid);
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
if(uid){
|
||||
this.getUserInfo(uid);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getUserInfo(uid){
|
||||
getUserIndex({member_id:uid})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if(res.code==1){
|
||||
this.userInfo = res.data;
|
||||
this.login=true;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
submitLogin(){
|
||||
loginDo(this.loginData)
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if(res.code==1){
|
||||
uni.showToast({
|
||||
title: '登陆成功!',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
uni.setStorageSync('uid', res.data.member_id);
|
||||
this.userInfo = res.data;
|
||||
this.login=true;
|
||||
this.loginMod=false;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
getUserInfo(uid) {
|
||||
getUserIndex({
|
||||
member_id: uid
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
this.userInfo = res.data;
|
||||
this.login = true;
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
submitLogin() {
|
||||
this.loginData.openid = uni.getStorageSync('openid');
|
||||
loginDo(this.loginData)
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
uni.showToast({
|
||||
title: '登陆成功!',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
uni.setStorageSync('uid', res.data.id);
|
||||
this.userInfo = res.data;
|
||||
this.login = true;
|
||||
this.loginMod = false;
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: '帐号或密码错误!',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
uni.showToast({
|
||||
title: error,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
})
|
||||
},
|
||||
loginAut() {
|
||||
var that = this;
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确定要退出吗?',
|
||||
success: function(res) {
|
||||
if (res.confirm) {
|
||||
uni.removeStorageSync('uid');
|
||||
that.login = false;
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
tn(e) {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
if(!uid){
|
||||
this.loginMod=true;
|
||||
return;
|
||||
}
|
||||
var uid = uni.getStorageSync('uid');
|
||||
if (!uid) {
|
||||
this.loginMod = true;
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: e
|
||||
})
|
||||
|
|
BIN
static/123.png
Before Width: | Height: | Size: 216 KiB |
BIN
static/c1.jpg
Before Width: | Height: | Size: 34 KiB |
BIN
static/h6.jpg
Before Width: | Height: | Size: 194 KiB |
BIN
static/h7.jpg
Before Width: | Height: | Size: 169 KiB |
BIN
static/h8.jpg
Before Width: | Height: | Size: 189 KiB |
BIN
static/hd1.jpg
Before Width: | Height: | Size: 64 KiB |
BIN
static/hd2.jpg
Before Width: | Height: | Size: 63 KiB |
BIN
static/hd3.jpg
Before Width: | Height: | Size: 84 KiB |
BIN
static/hd4.jpg
Before Width: | Height: | Size: 80 KiB |
BIN
static/hd5.jpg
Before Width: | Height: | Size: 98 KiB |
BIN
static/logo.png
Before Width: | Height: | Size: 316 KiB |
BIN
static/s1.jpg
Before Width: | Height: | Size: 139 KiB |
BIN
static/ser.png
Before Width: | Height: | Size: 12 KiB |
BIN
static/t7.jpg
Before Width: | Height: | Size: 142 KiB |
BIN
static/u1.jpg
Before Width: | Height: | Size: 11 KiB |
BIN
static/u2.jpg
Before Width: | Height: | Size: 145 KiB |
BIN
static/x1.jpg
Before Width: | Height: | Size: 2.8 KiB |
BIN
static/x2.png
Before Width: | Height: | Size: 114 KiB |
BIN
static/x3.png
Before Width: | Height: | Size: 298 KiB |
BIN
static/x4.png
Before Width: | Height: | Size: 108 KiB |
BIN
static/x5.png
Before Width: | Height: | Size: 133 KiB |
|
@ -47,8 +47,10 @@ const store = new Vuex.Store({
|
|||
// 自定义导航栏的高度
|
||||
vuex_custom_bar_height: 0,
|
||||
Gid: 1,
|
||||
imgUrl: "http://192.168.3.130",
|
||||
apiUrl: "http://192.168.3.130/api"
|
||||
// imgUrl: "http://192.168.3.130",
|
||||
// apiUrl: "http://192.168.3.130/api"
|
||||
imgUrl: "https://ysx.0rui.cn",
|
||||
apiUrl: "https://ysx.0rui.cn/api"
|
||||
},
|
||||
mutations: {
|
||||
$tStore(state, payload) {
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
{"version":3,"sources":["uni-app:///main.js"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,oBAAI,CAAC,C","file":"pages/index/events_info.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/index/events_info.vue'\ncreatePage(Page)"],"sourceRoot":""}
|