| | |
| | | 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 = '过客 '; |