diff --git a/components/uni-im-chat-input/uni-im-chat-input.vue b/components/uni-im-chat-input/uni-im-chat-input.vue
index 268d36b150ad34c82df12be7584becae176a87b4..cf7ca1d7fa1bd12a121d9123797f9bf8d495fd09 100644
--- a/components/uni-im-chat-input/uni-im-chat-input.vue
+++ b/components/uni-im-chat-input/uni-im-chat-input.vue
@@ -203,7 +203,7 @@
// console.log('focus');
this.$refs.editor.callRmd('$focus')
},
- async addCallUser({uid, nickname},needDeleteLeftART = true,DL=0) {
+ async addCallUser({user_id, nickname},needDeleteLeftART = true,DL=0) {
// 隐藏发送语音消息模式
this.soundIsShow = false;
@@ -222,7 +222,7 @@
await uniIm.utils.sleep(10)
// 提醒末尾的此空格在margin-right: -3px;内,用于解决办法浏览器非文本节点后的光标定位不正确的问题
- const html =`@${nickname} `
+ const html =`@${nickname} `
this.addHtmlToCursor(html)
// setTimeout(()=>this.$refs.editor.callRmd('$restoreCursor'),500)
},
diff --git a/components/uni-im-editor/uni-im-editor.vue b/components/uni-im-editor/uni-im-editor.vue
index 4c8c5a4fff008aa07319b803e270245866bcd4e9..77003b912ed0d4c485bb93e0e6f82329e50d1c72 100644
--- a/components/uni-im-editor/uni-im-editor.vue
+++ b/components/uni-im-editor/uni-im-editor.vue
@@ -360,7 +360,7 @@
// "rich-text": //uniIm.utils.parseHtml( 执行比较消耗内存,改为chat页面 confirm时执行,
"html": val,
"text": uniImEditor.innerText,
- "aboutUserIds": Array.from(uniImEditor.querySelectorAll('.nickname')).map(i=>i.getAttribute('uid'))
+ "aboutUserIds": Array.from(uniImEditor.querySelectorAll('.nickname')).map(i=>i.getAttribute('user_id'))
}
} else {
param = this.$inputText()
diff --git a/pages/chat/chat.vue b/pages/chat/chat.vue
index b1a359d4b7fe8b2cd48bea5c9befc9aa5a57f5b6..221d88b1239c3f269de7c05941bb7a8e39b4fb4d 100644
--- a/pages/chat/chat.vue
+++ b/pages/chat/chat.vue
@@ -943,10 +943,10 @@
msgListRef.showLast(duration)
}
},
- onLongpressMsgAvatar(uid){
+ onLongpressMsgAvatar(user_id){
// 当前输入框已经@了的用户id 要过滤掉
let callUidList = this.getCallUid()
- if(callUidList.includes(uid)){
+ if(callUidList.includes(user_id)){
console.log('此用户id已经@过');
uni.showToast({
title: '此用户已经@过',
@@ -955,15 +955,15 @@
}else{
this.$refs['chat-input'].raiseEditor = true
this.$nextTick(()=>{
- this.setCallAboutUid(uid,false)
+ this.setCallAboutUid(user_id,false)
})
}
},
- setCallAboutUid(uid,needDeleteLeftART = true) {
+ setCallAboutUid(user_id,needDeleteLeftART = true) {
this.aboutMenberIsShow = false
this.$refs['chat-input'].addCallUser({
- uid,
- nickname: this.group_member[uid].users.nickname
+ user_id,
+ nickname: this.group_member[user_id].users.nickname
},needDeleteLeftART,this.aboutUserKeyword.length)
},
linechange(e) {