Fix:4016 【商城小程序】用户修改昵称,评论列表和互动消息处@XXX(用户昵称),未同步变动
This commit is contained in:
@@ -142,7 +142,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="user-name v12-ml-3">
|
<view class="user-name v12-ml-3">
|
||||||
<view class="v12-font-28 v12-dark-text">
|
<view class="v12-font-28 v12-dark-text">
|
||||||
<text class="v12-dark1-text">{{ _comment.reply.split(' ')[0] }}</text>
|
<text class="v12-dark1-text">{{ "@" +_comment.at.atNickName }}</text>
|
||||||
{{ ' ' + _comment.reply.split(' ')[1] }}
|
{{ ' ' + _comment.reply.split(' ')[1] }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -241,8 +241,8 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
// 若删除@用户名,将@用户名整个删除
|
// 若删除@用户名,将@用户名整个删除
|
||||||
const usernameLength = `@${this.currentComment.userNickName}`.length
|
const usernameLength = `@${this.currentComment.userNickName} `.length
|
||||||
if(!e.includes(`@${this.currentComment.userNickName}`) && this.currentComment.userNickName) {
|
if(!e.includes(`@${this.currentComment.userNickName} `) && this.currentComment.userNickName) {
|
||||||
this.currentComment = {}
|
this.currentComment = {}
|
||||||
this.reply = e.slice(usernameLength - 1); // 去除@用户名
|
this.reply = e.slice(usernameLength - 1); // 去除@用户名
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,10 +29,13 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="user-name v12-ml-3" >
|
<view class="user-name v12-ml-3" >
|
||||||
<view class="v12-font-30 v12-font-bold v12-my-2 v12-dark-text" v-if="!comment.isRootReply" @click="toInfo(comment)">
|
<view class="v12-font-30 v12-font-bold v12-my-2 v12-dark-text" v-if="!comment.isRootReply" @click="toInfo(comment)">
|
||||||
|
<!-- {{ comment.parentReply }} -->
|
||||||
|
<!-- <text class="v12-dark1-text">{{ "@" + comment.senderUserNickname }}</text> -->
|
||||||
{{ comment.parentReply }}
|
{{ comment.parentReply }}
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-font-28 v12-dark2-text" @click="toInfo(comment)">
|
<view class="v12-font-28 v12-dark2-text" @click="toInfo(comment)">
|
||||||
{{ comment.reply }}
|
<text class="v12-dark1-text">{{ "@" +comment.senderUserNickname }}</text>
|
||||||
|
{{ ' ' + comment.reply.split(' ')[1] }}
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-mt-3">
|
<view class="v12-mt-3">
|
||||||
<u-button
|
<u-button
|
||||||
@@ -159,8 +162,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 若删除@用户名,将@用户名整个删除
|
// 若删除@用户名,将@用户名整个删除
|
||||||
const usernameLength = `@${this.currentComment.senderUserNickname}`.length
|
const usernameLength = `@${this.currentComment.senderUserNickname} `.length
|
||||||
if(!e.includes(`@${this.currentComment.senderUserNickname}`) && this.currentComment.senderUserNickname) {
|
if(!e.includes(`@${this.currentComment.senderUserNickname} `) && this.currentComment.senderUserNickname) {
|
||||||
this.currentComment = {}
|
this.currentComment = {}
|
||||||
this.content = e.slice(usernameLength - 1); // 去除@用户名
|
this.content = e.slice(usernameLength - 1); // 去除@用户名
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user