Commit 1b1d4ea0 authored by Mac's avatar Mac

消息里面查看用户

parent f7a0590b
......@@ -208,7 +208,7 @@
},
goUserinfo(x){
uni.navigateTo({
url: '/pages/blindDate/persondetails?UserId='+ x.UserId
url: '/pages/blindDate/persondetails?UserId='+ x.CreateBy
});
},
//设置全部消息为已看
......
......@@ -194,7 +194,7 @@
<u-empty v-if="loading==true" text="网络出现故障" mode="wifi"></u-empty>
<view class="box" v-if="loading==false" @click="blurc">
<view class="ftBox" >
<view class="ftBox-left" @click="goUserinfo(detial)">
<view class="ftBox-left" @click="goUserinfo(detial,1)">
<u-avatar :src="detial.crearteEmPhoto" size='80' mode="square"></u-avatar>
</view>
<view class="ftBox-right">
......@@ -272,20 +272,20 @@
<view class="areagood" v-if=" detial.likeList.length>0" >
<u-icon name="like-o" :size="30" color="#737373"></u-icon>
<view class="areagood-r text">
<text v-for="(item, iq) in detial.likeList" :key="iq">{{item.empName}}{{detial.likeList.length!=iq+1?'、':''}}</text>
<text v-for="(item, iq) in detial.likeList" :key="iq" @click="goUserinfo(item,2)">{{item.empName}}{{detial.likeList.length!=iq+1?'、':''}}</text>
</view>
</view>
<view v-if="detial.likeList.length>0 && detial.commentList.length>0" style="width: 100%;height: 1px;background: rgb(226, 226, 226);"></view>
<view class="areagood" v-if=" detial.commentList.length>0">
<u-icon name="comment-o" :size="30" color="#737373" style='margin-top: 2px;'></u-icon>
<view class="areagood-r">
<view v-for="(item, iq) in detial.commentList" :key="iq" style="width: 100%;margin-bottom: 7px;" @click.stop="huifu(detial,item,iq)" @longpress='longpress(detial,item,iq)'>
<view class="text comment-list">
<view v-for="(item, iq) in detial.commentList" :key="iq" style="width: 100%;margin-bottom: 7px;" @longpress='longpress(detial,item,iq)'>
<view class="text comment-list" @click.stop="goUserinfo(item,2)">
{{item.empName}}
<text style="color: #333333;margin: 0 3px;" v-if="item.byReplayEmpId>0">回复</text>
{{item.byReplayEmpId>0?item.byReplayEmpName:''}}
</view>
<view class="text2">{{item.content}}</view>
<view class="text2" @click.stop="huifu(detial,item,iq)">{{item.content}}</view>
</view>
</view>
......@@ -356,6 +356,7 @@
index:0,//上个页面的索引
inputheight:0,//键盘的高度
is_bang:0,
IsOpenMiAi:0,//1开启 0 没开启
}
},
onLoad(options) {
......@@ -375,6 +376,7 @@
this.secondary = this.$uiConfig.secondary;
this.pricecolor = this.$uiConfig.pricecolor;
this.UserId = uni.getStorageSync("mall_UserInfo").UserId ? uni.getStorageSync("mall_UserInfo").UserId : 0;
this.IsOpenMiAi = uni.getStorageSync("basedata")?uni.getStorageSync("basedata").mall.setting.is_show_miai:0;//是否开启相亲模式
},
onUnload(){
......@@ -562,9 +564,16 @@
);
},
goUserinfo(x){
uni.navigateTo({
url: '/pages/blindDate/persondetails?UserId='+ x.createEmpId
});
let UserId = x.createEmpId
if(type==2){
UserId = x.empId
}
if(this.IsOpenMiAi == 1){
uni.navigateTo({
url: '/pages/blindDate/persondetails?UserId='+ UserId
});
}
},
paste(){//复制
uni.setClipboardData({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment