智慧保安互联网APP
liuyg
2021-08-12 662b5dfe1d7a845bb8b87dcba67b6e7e90f7c79c
视频7
1 files modified
12 ■■■■ changed files
pages/videoCall/videoCall.nvue 12 ●●●● patch | view | raw | blame | history
pages/videoCall/videoCall.nvue
@@ -292,6 +292,7 @@
                    // }
                    if (data.type == 'close') {
                        console.log('对方已挂断');
                        RtcModule.leaveChannel((res) => {});
                        that.closeAll();
                    }
                });
@@ -459,11 +460,18 @@
                //离开频道
                // RtcModule.leaveChannel((res) => {});
                // this.closeAll();
                var data = {
                    sentId:this.faqiid,
                    acceptId: this.jieshouid
                }
                // uni.navigateBack();
                uni.request({
                    url: this.$store.state.api + 'pushMsg/closeVideoCall',
                    data:{
                    data:data,
                    success:(res)=> {
                        // RtcModule.leaveChannel((res) => {});
                        // this.closeAll();
                        console.log(res,'成功关闭');
                    }
                })
            },