From a20be9f645f5403cd9976308d90db6991a95ad20 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 13 Aug 2021 09:46:27 +0800
Subject: [PATCH] Merge branch 'master' of http://s16s652780.51mypc.cn:49896/r/zhba_app

---
 store/mutations.js |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/store/mutations.js b/store/mutations.js
index 5ff3855..3f6911d 100644
--- a/store/mutations.js
+++ b/store/mutations.js
@@ -49,7 +49,8 @@
 		console.log('登入数据传输成功  开始进入连接')
 		
 		uni.connectSocket({
-			url: 'ws://http://223.82.109.183:2086/websocket'
+			url: 'ws://223.82.109.183:2086/websocket'
+			// url: 'ws://192.168.0.111:2086/websocket'
 		});
 		var socketOpen = false;
 		uni.onSocketOpen(function(res) {
@@ -91,6 +92,20 @@
 		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 = '过客 ';

--
Gitblit v1.9.3