Commit 2b8a76c4 authored by Mac's avatar Mac

1

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