From 8a14aa01f801389f125885b4eb2c5a8ffd7da85d Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期四, 11 九月 2025 12:07:27 +0800
Subject: [PATCH] 测试完成

---
 src/components/CallButton/index.vue |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/components/CallButton/index.vue b/src/components/CallButton/index.vue
index c9adf5c..b52d1f9 100644
--- a/src/components/CallButton/index.vue
+++ b/src/components/CallButton/index.vue
@@ -61,6 +61,15 @@
       };
       return statusMap[this.callStatus];
     },
+    countdownText() {
+      if (this.sipStatus !== "宸叉敞鍐�") return "";
+
+      const { canCall, reason } = sipService.canMakeCall();
+      if (!canCall && reason.includes("绛夊緟")) {
+        return reason;
+      }
+      return "";
+    },
     callStatusClass() {
       return `status-${this.callStatus}`;
     },
@@ -94,6 +103,12 @@
       }
 
       try {
+        // 鍏堟鏌ユ槸鍚﹀彲浠ュ懠鍙�
+        const { canCall, reason } = sipService.canMakeCall();
+        if (!canCall) {
+          this.$message.warning(reason);
+          return;
+        }
         this.callStatus = "calling";
         this.isCalling = true;
          console.log('寮�濮嬪懠鍙細',sipService);

--
Gitblit v1.9.3