From 8a5578304190147379d7caba16a991dfc0ac3153 Mon Sep 17 00:00:00 2001 From: zouyanyan <254651820@qq.com> Date: Tue, 26 May 2026 16:09:03 +0800 Subject: [PATCH] upbug0526 --- pages/chat/groupchat.vue | 6 +++--- pages/message/group.vue | 2 +- pages/product/cdetail.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/chat/groupchat.vue b/pages/chat/groupchat.vue index 0a50a7d..53aeb45 100644 --- a/pages/chat/groupchat.vue +++ b/pages/chat/groupchat.vue @@ -754,7 +754,7 @@ name: this.info.chatName, userid: this.userid, friendId: this.info.friendId, // 客服userid - teacherId: this.info.teacherId, // 教练userid + teacherId: this.info.teacherId? this.info.teacherId:this.info.instructor, // 教练userid fromuser: this.info.friendId, img: this.info.chatAvatar, atUserIds: data.atUserIds, @@ -891,7 +891,7 @@ name: this.info.chatName, userid: this.userid, friendId: this.info.friendId, // 客服userid - teacherId: this.info.teacherId, // 教练userid + teacherId: this.info.teacherId? this.info.teacherId:this.info.instructor, // 教练userid fromuser: this.unshiftmsg[this.unshiftmsg.length-1].touser, img: this.unshiftmsg[this.unshiftmsg.length-1].headimg, sort:"groupchat" @@ -1251,7 +1251,7 @@ name: this.info.chatName, userid: this.userid, friendId: this.info.friendId, // 客服userid - teacherId: this.info.teacherId, // 教练userid + teacherId: this.info.teacherId?this.info.teacherId:this.info.instructor, // 教练userid fromuser: this.info.friendId, img: this.info.chatAvatar, sort:"groupchat", diff --git a/pages/message/group.vue b/pages/message/group.vue index d1f915f..cdb5141 100644 --- a/pages/message/group.vue +++ b/pages/message/group.vue @@ -408,7 +408,7 @@ chatAvatar: chat.img, chatTime: chat.datetime, friendId: chat.fromuser, - teacherId: chat.teacherId, + teacherId: chat.instructor?chat.instructor:chat.teacherId, minId: chat.minId, sort:"groupchat", // privatechat 私聊 groupchat 群聊 from:"message", // yh 用户咨询进入聊天框,message 从消息进入聊天框 diff --git a/pages/product/cdetail.vue b/pages/product/cdetail.vue index 0fba6b2..60ec3d5 100644 --- a/pages/product/cdetail.vue +++ b/pages/product/cdetail.vue @@ -735,8 +735,8 @@ chatAvatar: data.headImage?data.headImage:'/static/image/kfr.png', chatTime: timestamp, userid: data.ownerId, - friendId: this.product.customerService, // 客服userid - teacherId: this.product.instructor, // 教练userid + friendId: data.customerService, // 客服userid + teacherId: data.instructor?data.instructor:this.product.instructor, // 教练userid chat.instructor?chat.instructor:chat.teacherId minId: "", // 已读消息的最大id sort:"groupchat", // privatechat 私聊 groupchat 群聊 from:"yh", // yh 用户咨询进入聊天框,message 从消息进入聊天框