From 6246019252f2b3d12570ec18facf6164c3ab8d50 Mon Sep 17 00:00:00 2001 From: tangchengming <445785772@qq.com> Date: Fri, 17 Jan 2025 15:55:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A1=88=E4=BB=B6=E5=91=BC?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/MediationRoom.vue | 35 ++++++++++++++----- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/src/pages/mediation-page/components/MediationRoom.vue b/src/pages/mediation-page/components/MediationRoom.vue index cd3750c..9cd5958 100644 --- a/src/pages/mediation-page/components/MediationRoom.vue +++ b/src/pages/mediation-page/components/MediationRoom.vue @@ -28,15 +28,26 @@ - + +
+ +
+
+
{{formattedTime || '00:00'}}
+
+
+
+
+
+
-
+
暂停拨打
开始拨打
{{formattedTime || '00:00'}}
-
+
@@ -535,15 +546,17 @@ export default { // 电话呼出 async startOutboundCall() { // this.phoneNumber = this.queue ? this.queueList[this.index].phone : this.baseInfo.phone - + this.phoneNumber = '13982024318' this.calling = true console.log('进入呼叫电话:', this.phoneNumber) try { - let data = await window.tccc.Call.startOutboundCall({phoneNumber: this.phoneNumber}) - this.sessionId = data.sessionId - console.log('呼叫成功', data) - this.callingSuccess() - this.startTimer() + let res = await window.tccc.Call.startOutboundCall({phoneNumber: this.phoneNumber}) + this.sessionId = res.data.sessionId + console.log('呼叫成功', res.data) + if (res.status === 'success') { + this.callingSuccess() + this.startTimer() + } } catch (err) { this.$message.error('呼叫失败' + err.message) console.log('呼叫失败',err.message) @@ -720,6 +733,10 @@ export default { border-radius: 20px; } + .wrap-btn-left-dial1 { + background-color: #F56C6C; + border-radius: 20px; + } } }