|
|
@@ -31,7 +31,7 @@
|
|
|
<view>{{recommendCard.realName}}的微页</view>
|
|
|
<image src="/static/images/rico2.png" class="rico"></image>
|
|
|
</view>
|
|
|
- <view class="service-person-number">(工号:{{recommendCard.jobNumber}}) 欢迎您来到我的微页</view>
|
|
|
+ <view class="service-person-number">(工号:{{recommendCard.jobNumber}}) <text v-if="recommendCard&&userInfo.userType!=1">欢迎您来到我的微页</text></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view style="margin: 20rpx 30rpx 0;justify-content: space-between;" class="ddflex">
|
|
|
@@ -85,10 +85,10 @@
|
|
|
<view class="index-box-title">热门活动</view>
|
|
|
<view class="ddflex" style="margin-top: 20rpx;">
|
|
|
<view style="margin-right: 20rpx;">
|
|
|
- <image class="pic230" :src="hotActivityList[0].pic" @click="getUrl2(hotActivityList[0])"></image>
|
|
|
- <image class="pic230" style="margin-top: 20rpx;" :src="hotActivityList[1].pic" @click="getUrl2(hotActivityList[1])"></image>
|
|
|
+ <image class="pic230" :src="hotActivityList[0].pic" @click="getUrlHot(hotActivityList[0])"></image>
|
|
|
+ <image class="pic230" style="margin-top: 20rpx;" :src="hotActivityList[1].pic" @click="getUrlHot(hotActivityList[1])"></image>
|
|
|
</view>
|
|
|
- <image class="pic480" :src="hotActivityList[2].pic" @click="getUrl2(hotActivityList[2])"></image>
|
|
|
+ <image class="pic480" :src="hotActivityList[2].pic" @click="getUrlHot(hotActivityList[2])"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -122,24 +122,13 @@
|
|
|
<view class="tbal-nav-label" v-else-if="index==2">30-50岁</view>
|
|
|
<view class="tbal-nav-label" v-else-if="index==3">50-65岁</view>
|
|
|
</view>
|
|
|
- <!-- <view class="tbal-nav-item">
|
|
|
- <view>形成期</view>
|
|
|
- <view class="tbal-nav-label">20~30岁</view>
|
|
|
- </view>
|
|
|
- <view class="tbal-nav-item">
|
|
|
- <view>成长期</view>
|
|
|
- <view class="tbal-nav-label">20~30岁</view>
|
|
|
- </view>
|
|
|
- <view class="tbal-nav-item">
|
|
|
- <view>成熟期</view>
|
|
|
- <view class="tbal-nav-label">20~30岁</view>
|
|
|
- </view> -->
|
|
|
</view>
|
|
|
|
|
|
<block v-if="tbalList[tbalIndex].contentList&&tbalList[tbalIndex].contentList.length>0">
|
|
|
<view class="tbal-item ddflex" v-for="it in tbalList[tbalIndex].contentList"
|
|
|
- @click="jumpUrl('/topic/alContent/alContent?id='+it.id)">
|
|
|
- <image class="tbal-pic" :src="it.pic?it.pic:'/static/images/lj_img.png'"></image>
|
|
|
+ @click="jumpUrl('/topic/content/content?id='+it.id)">
|
|
|
+ <!-- @click="jumpUrl('/topic/alContent/alContent?id='+it.id)" -->
|
|
|
+ <image class="tbal-pic" :src="it.pic?it.pic:'/static/images/lj_img.png'" mode="aspectFill"></image>
|
|
|
<view class="flex">
|
|
|
<view class="tbal-title">{{it.title}}</view>
|
|
|
<view class="ddflex">
|
|
|
@@ -285,9 +274,9 @@
|
|
|
</view>
|
|
|
<!-- <footer-copyright v-if="logo"></footer-copyright> -->
|
|
|
<!-- <contact-button img-url="/static/pages/images/kfico1_1.png" class-name="contact_index" button-text="客服"></contact-button> -->
|
|
|
- <!-- <view class="guide" @tap="hideGuide" v-if="first">
|
|
|
+ <view class="guide" @tap="hideGuide" v-if="first">
|
|
|
<image src="/static/pages/images/guide.png" mode="widthFix"></image>
|
|
|
- </view> -->
|
|
|
+ </view>
|
|
|
<!-- <view class="placeholder-view" :style="'height:' + (bottomBlankHeight + 115) + 'rpx'"></view> -->
|
|
|
<foot channel="home" :isUpdate="isUpdate"></foot>
|
|
|
|
|
|
@@ -308,14 +297,14 @@
|
|
|
复制微信号
|
|
|
</view>
|
|
|
</view>
|
|
|
- <msgNumber :bottom="recommendCard?'350rpx':'230rpx'"></msgNumber>
|
|
|
+ <msgNumber :bottom="recommendCard&&userInfo.userType!=1?'350rpx':'230rpx'"></msgNumber>
|
|
|
<!-- <view class="chat-fixed" v-if="recommendCard">
|
|
|
<view class="chat-box ddflex" @click="jumpSingleChatRoom()">
|
|
|
<image :src="recommendCard.avatar?recommendCard.avatar:'../../static/pages/images/userimg.png'"></image>
|
|
|
<view class="chat-lyl">聊一聊</view>
|
|
|
</view>
|
|
|
</view> -->
|
|
|
- <view :class="'chat-fixed '+(chatShow?'chat-fixed-long':'')" v-if="recommendCard">
|
|
|
+ <view :class="'chat-fixed '+(chatShow?'chat-fixed-long':'')" v-if="recommendCard&&userInfo.userType!=1">
|
|
|
<view class="chat-box ddflex" @click="jumpSingleChatRoom()">
|
|
|
<image :src="recommendCard.avatar?recommendCard.avatar:'../../static/pages/images/userimg.png'"></image>
|
|
|
<view v-if="chatShowText" class="fflex tover"
|
|
|
@@ -362,7 +351,7 @@
|
|
|
couponList: {}, //优惠券,
|
|
|
isUpdate: false,
|
|
|
// 是否更新消息
|
|
|
- // first: true,
|
|
|
+ first: true,
|
|
|
//是否显示提示加入我的小程序
|
|
|
isLayerAd: true,
|
|
|
//广告
|
|
|
@@ -432,7 +421,9 @@
|
|
|
lpalCode: req.public.lpalCode,
|
|
|
|
|
|
chatShow: true,
|
|
|
- chatShowText: true
|
|
|
+ chatShowText: true,
|
|
|
+
|
|
|
+ userInfo:{}
|
|
|
};
|
|
|
},
|
|
|
|
|
|
@@ -488,6 +479,7 @@
|
|
|
|
|
|
async onShow() {
|
|
|
let _ts = this;
|
|
|
+ this.userInfo = req.getStorage('userInfo')
|
|
|
await this.getConfig().then(res => {});
|
|
|
await this.getHomeTemplateConfig();
|
|
|
uni.setNavigationBarColor({
|
|
|
@@ -513,15 +505,15 @@
|
|
|
this.getRecommendCard(to)
|
|
|
});
|
|
|
// console.log('this.freshen=='+this.freshen)
|
|
|
- // let first = req.getStorage('first');
|
|
|
- // if (first !== false)
|
|
|
- // _ts.setData({
|
|
|
- // first: true
|
|
|
- // });
|
|
|
- // else
|
|
|
- // _ts.setData({
|
|
|
- // first: false
|
|
|
- // });
|
|
|
+ let first = req.getStorage('first');
|
|
|
+ if (first !== false)
|
|
|
+ _ts.setData({
|
|
|
+ first: true
|
|
|
+ });
|
|
|
+ else
|
|
|
+ _ts.setData({
|
|
|
+ first: false
|
|
|
+ });
|
|
|
},
|
|
|
|
|
|
onUnload() {
|
|
|
@@ -661,6 +653,7 @@
|
|
|
this.tbalIndex = index
|
|
|
this.tbalList[this.tbalIndex].contentList = await this.getContentPageList(this.tbalList[this.tbalIndex]
|
|
|
.code)
|
|
|
+ this.$forceUpdate()
|
|
|
},
|
|
|
// 发现tab切换
|
|
|
changeFxTab(index) {
|
|
|
@@ -910,13 +903,13 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- // hideGuide() {
|
|
|
- // //关闭提示加入我的小程序
|
|
|
- // this.setData({
|
|
|
- // first: false
|
|
|
- // });
|
|
|
- // req.setStorage('first', false);
|
|
|
- // },
|
|
|
+ hideGuide() {
|
|
|
+ //关闭提示加入我的小程序
|
|
|
+ this.setData({
|
|
|
+ first: false
|
|
|
+ });
|
|
|
+ req.setStorage('first', false);
|
|
|
+ },
|
|
|
|
|
|
hideAd() {
|
|
|
//关闭广告
|
|
|
@@ -963,7 +956,7 @@
|
|
|
return utils.getAge(date)
|
|
|
},
|
|
|
// 热门活动
|
|
|
- getUrl2(item) {
|
|
|
+ getUrlHot(item) {
|
|
|
console.log(item)
|
|
|
var dt = item
|
|
|
var url = "";
|