From eaa83986e35d478bdfef55b49941fc6b4b86d95e Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 13 Aug 2021 09:46:23 +0800
Subject: [PATCH] 地图及部分配置修改
---
components/submit/submit.vue | 38 +++++++++++++++++++++++++++++++-------
1 files changed, 31 insertions(+), 7 deletions(-)
diff --git a/components/submit/submit.vue b/components/submit/submit.vue
index d2cd28e..0c2348f 100644
--- a/components/submit/submit.vue
+++ b/components/submit/submit.vue
@@ -259,6 +259,9 @@
//开始音频
openAudio(val) { //Mains
// console.log(this.names)
+ // var socketOpen = false;
+
+
uni.navigateTo({
url: '../videoCall/videoCall?state=' + val + '&type=audio'
});
@@ -271,17 +274,38 @@
},
//开始视频
openVideo(val) { //Mains
- uni.navigateTo({
- url: '../videoCall/videoCall?state=' + val + '&type=video' + '&myname=' + this.names[0] +
+ // uni.onSocketOpen(function(res) {
+ // // socketOpen = true;
+ // console.log('持续连接成功')
+ // sendSocketMessage();
+ // });
+
+ // function sendSocketMessage() {
+ // var data = {
+ // name: this.$store.state.puserName,
+ // id: this.names[1],
+ // // id: state.puserID,
+ // type: 'video'
+ // }
+ // // if (socketOpen) {
+ // uni.sendSocketMessage({
+ // data: JSON.stringify(data)
+ // });
+ // // }
+ // }
+ var url = '../videoCall/videoCall?state=' + val + '&type=video' + '&myname=' + this.names[0] +
'&toname=' + this.names[1]
+ console.log(url)
+ uni.navigateTo({
+ url: url
});
},
//接收视频
- receiveVideo(val, room) { //Receiver
- uni.navigateTo({
- url: '../videoCall/videoCall?state=' + val + '&type=video' + '&room=' + room
- });
- }
+ // receiveVideo(val, room) { //Receiver
+ // uni.navigateTo({
+ // url: '../videoCall/videoCall?state=' + val + '&type=video' + '&room=' + room
+ // });
+ // }
},
mounted() {
// uni.onSocketMessage(function(res) {
--
Gitblit v1.9.3