修正了人
This commit is contained in:
parent
65c1e2fd63
commit
3713cab533
@ -442,6 +442,7 @@ export default {
|
|||||||
//构造chatRoomService
|
//构造chatRoomService
|
||||||
that.chatRoomService.subscribeRoomMessage(room,currentUser)
|
that.chatRoomService.subscribeRoomMessage(room,currentUser)
|
||||||
that.chatRoomService.initialWhenNewMessage(that.whenNewMessage);
|
that.chatRoomService.initialWhenNewMessage(that.whenNewMessage);
|
||||||
|
taht.chatRoomService.initialWhenOnlineUserChange(that.newpeople)
|
||||||
//获取当前聊天室数据
|
//获取当前聊天室数据
|
||||||
that.room = that.chatRoomService.room;
|
that.room = that.chatRoomService.room;
|
||||||
console.log(that.room)
|
console.log(that.room)
|
||||||
@ -461,6 +462,9 @@ export default {
|
|||||||
this.chatRoomService.quitRoom();
|
this.chatRoomService.quitRoom();
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
newpeople(list){
|
||||||
|
this.room.onlineUsers = list
|
||||||
|
},
|
||||||
sendMessage (messageType, content) {//发送消息
|
sendMessage (messageType, content) {//发送消息
|
||||||
if(!this.chatRoomService.status){
|
if(!this.chatRoomService.status){
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
Loading…
Reference in New Issue
Block a user