From 3713cab533eb33b21ec883217d9ef5cceaafcb7c Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Fri, 14 Aug 2020 11:07:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E4=BA=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/zhibo/index.nvue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/zhibo/index.nvue b/pages/zhibo/index.nvue index 9976dc2..95e6a89 100644 --- a/pages/zhibo/index.nvue +++ b/pages/zhibo/index.nvue @@ -442,6 +442,7 @@ export default { //构造chatRoomService that.chatRoomService.subscribeRoomMessage(room,currentUser) that.chatRoomService.initialWhenNewMessage(that.whenNewMessage); + taht.chatRoomService.initialWhenOnlineUserChange(that.newpeople) //获取当前聊天室数据 that.room = that.chatRoomService.room; console.log(that.room) @@ -461,6 +462,9 @@ export default { this.chatRoomService.quitRoom(); }, methods:{ + newpeople(list){ + this.room.onlineUsers = list + }, sendMessage (messageType, content) {//发送消息 if(!this.chatRoomService.status){ uni.showToast({