Fix:4016 【商城小程序】用户修改昵称,评论列表和互动消息处@XXX(用户昵称),未同步变动
This commit is contained in:
@@ -29,10 +29,13 @@
|
||||
</view>
|
||||
<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)">
|
||||
<!-- {{ comment.parentReply }} -->
|
||||
<!-- <text class="v12-dark1-text">{{ "@" + comment.senderUserNickname }}</text> -->
|
||||
{{ comment.parentReply }}
|
||||
</view>
|
||||
<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 class="v12-mt-3">
|
||||
<u-button
|
||||
@@ -159,8 +162,8 @@ export default {
|
||||
}
|
||||
|
||||
// 若删除@用户名,将@用户名整个删除
|
||||
const usernameLength = `@${this.currentComment.senderUserNickname}`.length
|
||||
if(!e.includes(`@${this.currentComment.senderUserNickname}`) && this.currentComment.senderUserNickname) {
|
||||
const usernameLength = `@${this.currentComment.senderUserNickname} `.length
|
||||
if(!e.includes(`@${this.currentComment.senderUserNickname} `) && this.currentComment.senderUserNickname) {
|
||||
this.currentComment = {}
|
||||
this.content = e.slice(usernameLength - 1); // 去除@用户名
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user