From 1658ae4302ca926a9764dfd6234575c285744903 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 24 Feb 2026 14:47:23 +0800
Subject: [PATCH] feat:去掉心跳

---
 applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue b/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue
index 3933d78..3cddfa1 100644
--- a/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue
+++ b/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue
@@ -146,13 +146,13 @@
 
 // 心跳
 let pingTimer = null
-function startPing() {
-	stopPing()
-	// 每 25 秒发一次 ping(你后端有 PING/PONG)
-	pingTimer = setInterval(() => {
-		if (connected.value) send('ping', 'system', null)
-	}, 25000)
-}
+// function startPing() {
+// 	stopPing()
+// 	// 每 25 秒发一次 ping(你后端有 PING/PONG)
+// 	pingTimer = setInterval(() => {
+// 		if (connected.value) send('ping', 'system', null)
+// 	}, 25000)
+// }
 
 function stopPing() {
 	if (pingTimer) clearInterval(pingTimer)
@@ -411,7 +411,7 @@
 	ws.onopen = () => {
 		connected.value = true
 		log('WS 已连接 userId=', uid.value)
-		startPing()
+		// startPing()
 	}
 
 	ws.onclose = () => {
@@ -605,8 +605,6 @@
 			if (contact.userId) {
 				peerUid.value = contact.userId
 				contactName.value = contact.nickName || '未知联系人'
-				// log('🔗 从contact参数获取peerUid:', peerUid.value)
-				// log('👤 联系人名称:', contactName.value)
 			}
 		} catch (e) {
 			log('❌ 解析contact参数失败:', String(e))
@@ -670,7 +668,7 @@
 	gap: 20px;
 	max-width: 600px;
 	margin: 0 auto;
-	height: 100vh;
+	height: 100%;
 	justify-content: center;
 	align-items: center;
 }
@@ -872,6 +870,7 @@
 
 /* 头像样式 */
 .contactAvatar {
+    margin-top: 150px;
 	width: 180px;
 	height: 180px;
 	display: flex;

--
Gitblit v1.9.3