From 57c1e943c1e20c57ff69945216a133a5ec2127f7 Mon Sep 17 00:00:00 2001 From: WXL (wul) <wl_5969728@163.com> Date: 星期四, 11 九月 2025 11:51:04 +0800 Subject: [PATCH] 测试完成 --- src/components/CallButton/index.vue | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 deletions(-) diff --git a/src/components/CallButton/index.vue b/src/components/CallButton/index.vue index 4d055cd..a49edff 100644 --- a/src/components/CallButton/index.vue +++ b/src/components/CallButton/index.vue @@ -44,9 +44,9 @@ sipStatus: "鏈繛鎺�", sipStatusClass: "status-disconnected", sipConfig: { - wsUrl: "wss://192.168.10.124:7443", - sipUri: `${randomNum}` + "@192.168.10.124", - password: "Smartor@2023", + wsUrl: "wss://192.170.66.107:7443", + sipUri: `${randomNum}` + "@192.170.66.107", + password: "heskj@1234", displayName: "Web 灏忛緳", }, }; @@ -60,6 +60,15 @@ ended: "閫氳瘽缁撴潫", }; 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; -- Gitblit v1.9.3