| | |
| | | "pagePath": "pages/groupChat/groupChat", |
| | | "iconPath": "static/images/tabbar/demo.png", |
| | | "selectedIconPath": "static/images/tabbar/demo_selected.png", |
| | | "text": "好友" |
| | | "text": "聊天" |
| | | }, |
| | | { |
| | | "pagePath": "pages/manage/manage", |
| | |
| | | name: '群组' |
| | | }, |
| | | { |
| | | name: '通讯录' |
| | | name: '好友' |
| | | } |
| | | ], |
| | | swiperHeight: 0, |
| | |
| | | console.log('对方已挂断'); |
| | | // RtcModule.leaveChannel((res) => {}); |
| | | that.closeAll(); |
| | | uni.navigateBack(); |
| | | } |
| | | }); |
| | | |
| | |
| | | // 离开清空 |
| | | async closeAll() { |
| | | // 销毁实例 |
| | | uni.navigateBack(); |
| | | // uni.navigateBack(); |
| | | await RtcModule.leaveChannel((res) => { |
| | | // uni.navigateBack(); |
| | | }) |
| | |
| | | // this.closeAll(); |
| | | var that = this; |
| | | uni.hideLoading(); |
| | | // uni.onSocketMessage(function(res) { |
| | | // console.log(res.data); |
| | | // var data = JSON.parse(res.data) |
| | | // // if (call && ) { |
| | | |
| | | // // } |
| | | // if (data.type == 'close') { |
| | | |
| | | // console.log('对方已挂断'); |
| | | // // RtcModule.leaveChannel((res) => {}); |
| | | // that.closeAll(); |
| | | // } |
| | | // }); |
| | | uni.onSocketMessage(function(res) { |
| | | console.log(res.data); |
| | | var data = JSON.parse(res.data) |
| | | // if (call && ) { |
| | | |
| | | // } |
| | | if (data.type == 'close') { |
| | | |
| | | console.log('对方已挂断'); |
| | | // RtcModule.leaveChannel((res) => {}); |
| | | that.closeAll(); |
| | | if (data.type == 'video') { |
| | | // this.receiveVideo('Receiver', ); |
| | | console.log('进入接受 跳转', data.type) |
| | | uni.navigateTo({ |
| | | url: '../videoCall/videoCall?state=Receiver&type=' + data.type + '&room=' + data |
| | | .roomId + '&name=' + data.name + '&faqiid=' + data.faqiid |
| | | }); |
| | | } |
| | | // console.log('收到服务器内容:' + res.data); |
| | | }); |
| | | } |
| | | |
| | |
| | | // }, 2000) |
| | | |
| | | } |
| | | |
| | | } |
| | | |
| | | export default actions |
| | |
| | | WxStorage.set("accounts", data.accounts); |
| | | WxStorage.set("pass", data.pass); |
| | | }, |
| | | // useWebSocket(state){ |
| | | // uni.onSocketMessage(function(res) { |
| | | // console.log(res.data); |
| | | // var data = JSON.parse(res.data) |
| | | // if (data.type == 'video') { |
| | | // // this.receiveVideo('Receiver', ); |
| | | // console.log('进入接受 跳转',data.type) |
| | | // uni.navigateTo({ |
| | | // url: '../videoCall/videoCall?state=Receiver&type=' + data.type +'&room=' + data.roomId + '&name=' + data.name + '&faqiid=' + data.faqiid |
| | | // }); |
| | | // } |
| | | // // console.log('收到服务器内容:' + res.data); |
| | | // }); |
| | | // } |
| | | loginReset(state) { //重置 |
| | | state.loging = false; |
| | | state.message.useName = '过客 '; |