From 72ba4e4e721cb12dda4ee3b34cb4ad5c96a157b0 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 09 Feb 2026 10:22:06 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

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

diff --git a/uniapps/work-app/src/pages/voiceCall/index.vue b/uniapps/work-app/src/pages/voiceCall/index.vue
index 80a3506..0a6b987 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"  />
+            <image :src="contact.avatar || defaultAvatar" :class="{ 'avatar-disabled': contact.status === '0' }"  />
           </div>
 
           <!-- 联系人信息 -->
@@ -25,7 +25,7 @@
           </div>
 
           <!-- 电话按钮 -->
-          <div class="callButton" @click="makeCall(contact)">
+          <div class="callButton" :class="{ 'call-button-disabled': contact.status === '0' }" @click="makeCall(contact)">
             <image src="@/static/images/voiceVal/phoneVal.svg"  />
           </div>
         </div>
@@ -120,6 +120,9 @@
 }
 // 拨打电话方法
 const makeCall = (contact) => {
+  if (contact.status === '0') {
+    return
+  }
   console.log('拨打电话', contact)
   // 将contact对象转换为JSON字符串并URL编码
   const contactStr = encodeURIComponent(JSON.stringify(contact))
@@ -241,6 +244,21 @@
 
 }
 
+/* 禁用状态样式 */
+.avatar-disabled {
+  filter: grayscale(100%);
+  opacity: 0.6;
+}
+
+.call-button-disabled {
+  opacity: 0.6;
+  pointer-events: none;
+}
+
+.call-button-disabled image {
+  filter: grayscale(100%);
+}
+
 .loadingMore {
   display: flex;
   justify-content: center;

--
Gitblit v1.9.3