From 662b5dfe1d7a845bb8b87dcba67b6e7e90f7c79c Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 12 Aug 2021 15:58:52 +0800
Subject: [PATCH] 视频7
---
pages/videoCall/videoCall.nvue | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/pages/videoCall/videoCall.nvue b/pages/videoCall/videoCall.nvue
index 321ee84..12108e6 100644
--- a/pages/videoCall/videoCall.nvue
+++ b/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,'成功关闭');
}
})
},
--
Gitblit v1.9.3