Merge pull request '直播聊天是状态' (#176) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/176
This commit is contained in:
luyuan 2020-08-13 16:06:31 +08:00
commit 2a79e45d77

View File

@ -454,6 +454,13 @@ export default {
}, },
methods:{ methods:{
sendMessage (messageType, content) {//发送消息 sendMessage (messageType, content) {//发送消息
if(!this.chatRoomService.status){
uni.showToast({
title: '连接聊天室中,请稍等',
duration: 2000
});
return
}
console.log(this.room,this.room.id,messageType, content) console.log(this.room,this.room.id,messageType, content)
if(content == "" && messageType == 0) return; if(content == "" && messageType == 0) return;
var message = { var message = {