Commit 2b8a76c4 authored by Mac's avatar Mac

1

parent c3a32aba
......@@ -553,13 +553,12 @@
</view>
</view>
<view class="pl-content pl-left" @click="replyone(x,2)" @longpress='longpress(x,i,2)'>
<text v-if="x.ReplyUserName!=''">回复 <text :style="{color:mainColor}">{{x.ReplyUserName}}</text></text>
<text v-if="x.ReplyUserName!=''">{{x.ReplyUserName!=null?'回复':'评论了'}} <text :style="{color:mainColor}" v-if='x.ReplyUserName!=null'>{{x.ReplyUserName}}</text></text>
{{x.Content}}
</view>
</view>
</view>
</scroll-view>
</view>
<view class="comment" >
......@@ -706,7 +705,7 @@
this.getCount()//获取评论的总数量
}
let UserId = uni.getStorageSync('mall_UserInfo')?uni.getStorageSync('mall_UserInfo').UserId : 0;
this.sendMsg.ReplyUserId = UserId
// this.sendMsg.ReplyUserId = UserId
this.UserId = UserId
},
onShareTimeline() {
......@@ -979,13 +978,15 @@
this.oneheight = 0
},
replyone(x,type=1){
let UserId = uni.getStorageSync('mall_UserInfo')?uni.getStorageSync('mall_UserInfo').UserId : 0;
if(UserId != x.UserId){
if(type==1){
this.sendMsg.ParentId = x.Id;
}else{
this.sendMsg.ParentId = this.msg2.ParentId
}
// this.sendMsg.ReplyUserId = x.UserId;
this.sendMsg.ReplyUserId = x.UserId;
this.ParentName = x.UserName;
......@@ -993,8 +994,13 @@
this.showreply = true
}
if(type==2){
this.sendMsg.ReplyUserId = x.UserId;
this.showreply2 = true
}
}else{
this.showreply=true
}
},
lower2(){
if (this.msg2.pageIndex < this.page_count2) {
......
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