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>
|
52
App.vue
|
@ -2,7 +2,9 @@
|
|||
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');
|
||||
|
@ -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,
|
||||
|
|
|
@ -52,9 +52,9 @@
|
|||
"quickapp" : {},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin" : {
|
||||
"appid": "wxabc0f954cce7fe56",
|
||||
"appid" : "wx51c40ff1c6337652",
|
||||
"setting" : {
|
||||
"urlCheck": false,
|
||||
"urlCheck" : true,
|
||||
"minified" : true,
|
||||
"postcss" : true
|
||||
},
|
||||
|
|
|
@ -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,17 +62,17 @@
|
|||
<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 v-if="list.length==0" style="text-align: center;padding: 20rpx">
|
||||
暂无
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
|
@ -87,7 +89,9 @@
|
|||
|
||||
<script>
|
||||
import {
|
||||
addressList, associationIndex, newIndustryIndex
|
||||
addressList,
|
||||
associationIndex,
|
||||
newIndustryIndex
|
||||
} from '@/util/api.js';
|
||||
import store from "@/store";
|
||||
export default {
|
||||
|
@ -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
|
||||
|
|
|
@ -16,17 +16,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: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 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;">
|
||||
|
@ -67,7 +67,9 @@
|
|||
</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-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;">
|
||||
|
@ -85,17 +87,21 @@
|
|||
</template>
|
||||
</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="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>
|
||||
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,6 +109,7 @@ import {
|
|||
associationInfo, architectureList, getUserIndex,
|
||||
} from '@/util/api.js';
|
||||
import store from "@/store";
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
@ -222,4 +229,8 @@ import store from "@/store";
|
|||
|
||||
<style>
|
||||
|
||||
.tn-flex-row-around{
|
||||
position: relative;
|
||||
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view style="position: fixed;bottom: 30rpx;background-color: #ffffff;padding: 30rpx;width: 100%;">
|
||||
<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;">-->
|
||||
|
@ -52,11 +52,11 @@
|
|||
<!-- :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="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>
|
||||
|
@ -65,6 +65,7 @@
|
|||
<script>
|
||||
import {
|
||||
eventInfo,
|
||||
applicationAdd
|
||||
} from '@/util/api.js';
|
||||
import store from '@/store/index.js'
|
||||
export default {
|
||||
|
@ -99,6 +100,45 @@ import store from '@/store/index.js'
|
|||
this.getEventInfo();
|
||||
},
|
||||
methods: {
|
||||
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,
|
||||
|
|
|
@ -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,13 +44,16 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {UserApplication} from "@/util/api";
|
||||
import {
|
||||
UserApplication
|
||||
} from "@/util/api";
|
||||
import store from "@/store";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
topCurrent: 0,
|
||||
list:[]
|
||||
list: [],
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
|
@ -59,7 +63,9 @@ import store from "@/store";
|
|||
},
|
||||
methods: {
|
||||
getUserApplication() {
|
||||
UserApplication({member_id: 2})
|
||||
UserApplication({
|
||||
member_id: 2
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
|
|
|
@ -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: [],
|
||||
|
@ -190,6 +203,9 @@
|
|||
}
|
||||
},
|
||||
mounted() {
|
||||
getApp().getUserLogin((r) => {
|
||||
console.log('---Login---', r);
|
||||
})
|
||||
this.getNewsGoryList();
|
||||
this.getActivityList();
|
||||
this.getAssociationIndex();
|
||||
|
@ -227,7 +243,13 @@
|
|||
.Gid);
|
||||
this.HomeTitle = foundNumber.label;
|
||||
this.selectList = transformedSelectList;
|
||||
//#ifdef MP-WEIXIN
|
||||
this.$parent.childEvent(foundNumber);
|
||||
//#endif
|
||||
// #ifdef H5
|
||||
console.log('H5');
|
||||
this.$parent.$parent.$parent.$parent.childEvent(foundNumber);
|
||||
// #endif
|
||||
}
|
||||
})
|
||||
.catch(error => {
|
||||
|
@ -335,7 +357,13 @@
|
|||
uni.$emit('depId', {
|
||||
index: 1
|
||||
})
|
||||
}
|
||||
},
|
||||
videoErrorCallback: function(e) {
|
||||
uni.showModal({
|
||||
content: e.target.errMsg,
|
||||
showCancel: false
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
@ -118,6 +118,7 @@
|
|||
},
|
||||
methods: {
|
||||
childEvent(data) {
|
||||
console.log(123);
|
||||
console.log(data);
|
||||
this.tabbarList[2].activeIcon = this.apiImgUrl + data.icon;
|
||||
this.tabbarList[2].inactiveIcon = this.apiImgUrl + data.icon;
|
||||
|
@ -163,6 +164,11 @@
|
|||
this.tabberPageLoadFlag[index] = true
|
||||
}
|
||||
this.currentIndex = index
|
||||
if (index === 1) {
|
||||
setTimeout(() => {
|
||||
this.$refs.service.getNewInfo();
|
||||
}, 100)
|
||||
}
|
||||
if (index === 2) {
|
||||
setTimeout(() => {
|
||||
this.$refs.discovery.getNewInfo();
|
||||
|
|
|
@ -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>
|
||||
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
|
||||
|
|
|
@ -16,7 +16,8 @@
|
|||
<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>
|
||||
<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">
|
||||
|
@ -99,7 +100,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {getUserIndex} from "@/util/api";
|
||||
import {
|
||||
getUserIndex
|
||||
} from "@/util/api";
|
||||
import store from "@/store";
|
||||
|
||||
export default {
|
||||
|
@ -144,7 +147,9 @@ export default {
|
|||
});
|
||||
},
|
||||
getThisUserInfo() {
|
||||
getUserIndex({member_id: this.this_uid})
|
||||
getUserIndex({
|
||||
member_id: this.this_uid
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code == 1) {
|
||||
this.userThisInfo = res.data;
|
||||
|
@ -159,14 +164,17 @@ export default {
|
|||
})
|
||||
},
|
||||
getUserInfo() {
|
||||
getUserIndex({member_id: this.uid})
|
||||
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.userInfo = res.data;
|
||||
this.userThisInfo = res.data;
|
||||
}
|
||||
|
||||
|
@ -203,7 +211,7 @@ export default {
|
|||
<style lang="scss" scoped>
|
||||
.page-c {
|
||||
background-color: #EBF4F7;
|
||||
height: 100vh;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* 底部安全边距 start*/
|
||||
|
|
|
@ -14,26 +14,7 @@
|
|||
</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 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,17 +88,31 @@
|
|||
</template>
|
||||
</view>
|
||||
</view>
|
||||
<view style="position: fixed;bottom: 50rpx;width: 100%;">
|
||||
<!-- <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')"
|
||||
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 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="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')"
|
||||
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>
|
||||
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>
|
||||
|
||||
<script>
|
||||
|
|
|
@ -43,7 +43,8 @@
|
|||
<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>
|
||||
<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;">
|
||||
|
@ -114,7 +115,7 @@
|
|||
<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')"
|
||||
<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"
|
||||
|
@ -122,24 +123,29 @@
|
|||
</image>
|
||||
</view>
|
||||
<view style="padding:10rpx 20rpx;font-weight: 400;">
|
||||
<view class="tn-text-ellipsis">{{item.activity_name}}</view>
|
||||
<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>{{item.name}}</view>
|
||||
<view>
|
||||
<text class="tn-icon-eye"></text>
|
||||
<text style="margin-left: 5rpx;">{{item.eye}}</text>
|
||||
</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 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>
|
||||
|
@ -248,30 +254,36 @@ box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);margin-bottom: 20rpx;">
|
|||
|
||||
export default {
|
||||
data() {
|
||||
//1.线下活动2.调查问卷3.公益捐赠4.学习培训
|
||||
return {
|
||||
current: 0,
|
||||
load_status: 'loading ',
|
||||
tabList: [{
|
||||
name: '进行中',
|
||||
name: '全部',
|
||||
id: 0
|
||||
}, {
|
||||
name: '线下活动',
|
||||
id: 1
|
||||
}, {
|
||||
name: '未开始',
|
||||
name: '调查问卷',
|
||||
id: 2
|
||||
}, {
|
||||
name: '已结束',
|
||||
name: '公益捐赠',
|
||||
id: 3
|
||||
}, {
|
||||
name: '学习培训',
|
||||
id: 4
|
||||
}],
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
content: '',
|
||||
topCurrent: 0,
|
||||
actList: [],
|
||||
page: 1,
|
||||
tabType: 1,
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
||||
this.getActivityIndex();
|
||||
// this.getActivityIndex();
|
||||
},
|
||||
methods: {
|
||||
onsubmit() {
|
||||
|
@ -284,7 +296,6 @@ box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);margin-bottom: 20rpx;">
|
|||
this.current = d;
|
||||
this.page = 1;
|
||||
this.actList = [];
|
||||
this.tabType = this.tabList[d].id;
|
||||
this.getActivityIndex();
|
||||
},
|
||||
ReachBottom() {
|
||||
|
@ -293,13 +304,20 @@ box-shadow: 0rpx 0rpx 10rpx 0rpx rgba(12,0,5,0.1);margin-bottom: 20rpx;">
|
|||
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,
|
||||
type: this.tabType,
|
||||
page: this.page,
|
||||
size: 10,
|
||||
activity_name:this.content
|
||||
activity_name: this.content,
|
||||
activity_type:type
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
|
|
|
@ -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,14 +12,21 @@
|
|||
</view>
|
||||
</view>
|
||||
</tn-nav-bar>
|
||||
<view :style="{paddingTop: vuex_custom_bar_height+ 'px'}">
|
||||
<view style="padding: 30rpx;text-align: center;">
|
||||
<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="#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">
|
||||
<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 :src="apiImgUrl+v.photo_image"
|
||||
style="width: 100rpx;height: 100rpx;border-radius: 50%;">
|
||||
</image>
|
||||
<view>{{v.nikename}}</view>
|
||||
</view>
|
||||
|
@ -38,7 +45,9 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {architectureList} from "@/util/api";
|
||||
import {
|
||||
architectureList
|
||||
} from "@/util/api";
|
||||
import store from "@/store";
|
||||
|
||||
export default {
|
||||
|
@ -47,15 +56,28 @@
|
|||
topCurrent: 0,
|
||||
architecture: [],
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
current: 0,
|
||||
list: [{
|
||||
name: '理事会'
|
||||
}, {
|
||||
name: '监事会'
|
||||
}],
|
||||
type: 1
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
onLoad(d) {
|
||||
this.getArchitectureList();
|
||||
},
|
||||
methods: {
|
||||
openInfo(u) {
|
||||
uni.navigateTo({
|
||||
url: u
|
||||
})
|
||||
},
|
||||
getArchitectureList() {
|
||||
architectureList({
|
||||
association_id: store.state.Gid,
|
||||
type: this.type,
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
|
@ -80,6 +102,11 @@
|
|||
})
|
||||
|
||||
}
|
||||
},
|
||||
change(index) {
|
||||
this.current = index;
|
||||
this.type = index + 1;
|
||||
this.getArchitectureList();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,8 @@
|
|||
|
||||
<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>
|
||||
<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>
|
||||
|
@ -83,30 +84,31 @@
|
|||
<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>
|
||||
|
@ -123,8 +125,11 @@
|
|||
</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>
|
||||
<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>
|
||||
|
@ -133,7 +138,10 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import {getUserIndex, loginDo} from "@/util/api";
|
||||
import {
|
||||
getUserIndex,
|
||||
loginDo
|
||||
} from "@/util/api";
|
||||
import store from "@/store";
|
||||
|
||||
export default {
|
||||
|
@ -145,6 +153,7 @@ import {getUserIndex, loginDo} from "@/util/api";
|
|||
userInfo: {},
|
||||
apiImgUrl: this.$store.state.imgUrl,
|
||||
loginData: {
|
||||
openid: '',
|
||||
phone: '',
|
||||
password: '',
|
||||
association_id: store.state.Gid
|
||||
|
@ -153,13 +162,16 @@ import {getUserIndex, loginDo} from "@/util/api";
|
|||
},
|
||||
mounted() {
|
||||
var uid = uni.getStorageSync('uid');
|
||||
console.log(uid);
|
||||
if (uid) {
|
||||
this.getUserInfo(uid);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getUserInfo(uid) {
|
||||
getUserIndex({member_id:uid})
|
||||
getUserIndex({
|
||||
member_id: uid
|
||||
})
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
if (res.code == 1) {
|
||||
|
@ -176,6 +188,7 @@ import {getUserIndex, loginDo} from "@/util/api";
|
|||
})
|
||||
},
|
||||
submitLogin() {
|
||||
this.loginData.openid = uni.getStorageSync('openid');
|
||||
loginDo(this.loginData)
|
||||
.then(res => {
|
||||
console.log(res);
|
||||
|
@ -185,10 +198,16 @@ import {getUserIndex, loginDo} from "@/util/api";
|
|||
icon: 'none',
|
||||
duration: 2000
|
||||
});
|
||||
uni.setStorageSync('uid', res.data.member_id);
|
||||
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 => {
|
||||
|
@ -199,6 +218,19 @@ import {getUserIndex, loginDo} from "@/util/api";
|
|||
});
|
||||
})
|
||||
},
|
||||
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) {
|
||||
|
|
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":""}
|