Commit 1b1d4ea0 authored by Mac's avatar Mac

消息里面查看用户

parent f7a0590b
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
}, },
goUserinfo(x){ goUserinfo(x){
uni.navigateTo({ uni.navigateTo({
url: '/pages/blindDate/persondetails?UserId='+ x.UserId url: '/pages/blindDate/persondetails?UserId='+ x.CreateBy
}); });
}, },
//设置全部消息为已看 //设置全部消息为已看
......
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
<u-empty v-if="loading==true" text="网络出现故障" mode="wifi"></u-empty> <u-empty v-if="loading==true" text="网络出现故障" mode="wifi"></u-empty>
<view class="box" v-if="loading==false" @click="blurc"> <view class="box" v-if="loading==false" @click="blurc">
<view class="ftBox" > <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> <u-avatar :src="detial.crearteEmPhoto" size='80' mode="square"></u-avatar>
</view> </view>
<view class="ftBox-right"> <view class="ftBox-right">
...@@ -272,20 +272,20 @@ ...@@ -272,20 +272,20 @@
<view class="areagood" v-if=" detial.likeList.length>0" > <view class="areagood" v-if=" detial.likeList.length>0" >
<u-icon name="like-o" :size="30" color="#737373"></u-icon> <u-icon name="like-o" :size="30" color="#737373"></u-icon>
<view class="areagood-r text"> <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> </view>
<view v-if="detial.likeList.length>0 && detial.commentList.length>0" style="width: 100%;height: 1px;background: rgb(226, 226, 226);"></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"> <view class="areagood" v-if=" detial.commentList.length>0">
<u-icon name="comment-o" :size="30" color="#737373" style='margin-top: 2px;'></u-icon> <u-icon name="comment-o" :size="30" color="#737373" style='margin-top: 2px;'></u-icon>
<view class="areagood-r"> <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 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"> <view class="text comment-list" @click.stop="goUserinfo(item,2)">
{{item.empName}} {{item.empName}}
<text style="color: #333333;margin: 0 3px;" v-if="item.byReplayEmpId>0">回复</text> <text style="color: #333333;margin: 0 3px;" v-if="item.byReplayEmpId>0">回复</text>
{{item.byReplayEmpId>0?item.byReplayEmpName:''}} {{item.byReplayEmpId>0?item.byReplayEmpName:''}}
</view> </view>
<view class="text2">{{item.content}}</view> <view class="text2" @click.stop="huifu(detial,item,iq)">{{item.content}}</view>
</view> </view>
</view> </view>
...@@ -356,6 +356,7 @@ ...@@ -356,6 +356,7 @@
index:0,//上个页面的索引 index:0,//上个页面的索引
inputheight:0,//键盘的高度 inputheight:0,//键盘的高度
is_bang:0, is_bang:0,
IsOpenMiAi:0,//1开启 0 没开启
} }
}, },
onLoad(options) { onLoad(options) {
...@@ -375,6 +376,7 @@ ...@@ -375,6 +376,7 @@
this.secondary = this.$uiConfig.secondary; this.secondary = this.$uiConfig.secondary;
this.pricecolor = this.$uiConfig.pricecolor; this.pricecolor = this.$uiConfig.pricecolor;
this.UserId = uni.getStorageSync("mall_UserInfo").UserId ? uni.getStorageSync("mall_UserInfo").UserId : 0; 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(){ onUnload(){
...@@ -562,9 +564,16 @@ ...@@ -562,9 +564,16 @@
); );
}, },
goUserinfo(x){ goUserinfo(x){
let UserId = x.createEmpId
if(type==2){
UserId = x.empId
}
if(this.IsOpenMiAi == 1){
uni.navigateTo({ uni.navigateTo({
url: '/pages/blindDate/persondetails?UserId='+ x.createEmpId url: '/pages/blindDate/persondetails?UserId='+ UserId
}); });
}
}, },
paste(){//复制 paste(){//复制
uni.setClipboardData({ 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