| | |
| | | |
| | | that.isMain = true; |
| | | var call = false; |
| | | this.userName = that.$store.state.puserID + '-faqiren'; |
| | | this.userName = 'faqiren'; |
| | | this.init(); |
| | | // setTimeout(res => { |
| | | //发起请求 给后端双方姓名 |
| | |
| | | |
| | | // }, 5000) |
| | | } else if (option.state == "Receiver") { |
| | | that.userName = that.$store.state.puserID + '-jieshouren'; |
| | | that.userName = 'jieshouren'; |
| | | // that.formName = 'wo'; |
| | | that.channel = option.room; |
| | | that.faqiid = option.faqiid; |
| | |
| | | |
| | | console.log("拒绝进入视频"); |
| | | uni.navigateBack(); |
| | | var data = { |
| | | sentId: this.faqiid, |
| | | acceptId: this.jieshouid |
| | | } |
| | | // uni.navigateBack(); |
| | | uni.request({ |
| | | url: this.$store.state.api + '/pushMsg/closeVideoCall', |
| | | data: data, |
| | | success: (res) => { |
| | | // RtcModule.leaveChannel((res) => {}); |
| | | // this.closeAll(); |
| | | console.log(res, '成功关闭'); |
| | | } |
| | | }) |
| | | |
| | | // RtcModule.leaveChannel((res) => {}); |
| | | // this.closeAll(); |
| | |
| | | sentId:this.faqiid, |
| | | acceptId: this.jieshouid |
| | | } |
| | | // uni.navigateBack(); |
| | | uni.navigateBack(); |
| | | uni.request({ |
| | | url: this.$store.state.api + '/pushMsg/closeVideoCall', |
| | | data:data, |