From 997f3cea1b5ce6191036c08302801df1affeee16 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 24 Feb 2026 09:44:01 +0800
Subject: [PATCH] feat:在线/离线

---
 uniapps/work-app/src/pages/voiceCall/index.vue |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/uniapps/work-app/src/pages/voiceCall/index.vue b/uniapps/work-app/src/pages/voiceCall/index.vue
index 96f466d..9df21c6 100644
--- a/uniapps/work-app/src/pages/voiceCall/index.vue
+++ b/uniapps/work-app/src/pages/voiceCall/index.vue
@@ -15,7 +15,7 @@
         <div class="itemBox">
           <!-- 头像 -->
           <div class="contactAvatar">
-            <image :src="contact.avatar || defaultAvatar" :class="{ 'avatar-disabled': contact.status === '0' }"  />
+            <image :src="contact.avatar || defaultAvatar" :class="{ 'avatar-disabled': contact.online === 0}"  />
           </div>
 
           <!-- 联系人信息 -->
@@ -25,7 +25,7 @@
           </div>
 
           <!-- 电话按钮 -->
-          <div class="callButton" :class="{ 'call-button-disabled': contact.status === '0' }" @click="makeCall(contact)">
+          <div class="callButton" :class="{ 'call-button-disabled': contact.online === 0 }" @click="makeCall(contact)">
             <image src="@/static/images/voiceVal/phoneVal.svg"  />
           </div>
         </div>
@@ -120,7 +120,7 @@
 }
 // 拨打电话方法
 const makeCall = (contact) => {
-  if (contact.status === '0') {
+  if (contact.online === 0) {
     return
   }
   console.log('拨打电话', contact)

--
Gitblit v1.9.3