From 79ddd02342d1fa894be76061db34f2cf2754ec64 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Fri, 14 Mar 2025 16:42:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=89=8B=E8=BD=A6=E4=BA=A4=E6=98=93?= =?UTF-8?q?=EF=BC=8C=E6=89=93=E7=94=B5=E8=AF=9D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/secondHandCar/forSale.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/secondHandCar/forSale.vue b/src/views/secondHandCar/forSale.vue index d14204e6..339ccdcd 100644 --- a/src/views/secondHandCar/forSale.vue +++ b/src/views/secondHandCar/forSale.vue @@ -168,10 +168,16 @@ export default { message:this.detailInfo.contactNumber , confirmButtonText:'拨打电话', showCancelButton:true, - }).then(() => { - this.recordType=2 + }).then(async() => { + try { + await this.getDuration(); // 等待网络请求完成 + window.location.href = `tel:${this.detailInfo.contactNumber}`; // 拨号 + } catch (error) { + console.error('网络请求失败', error); + } + /* this.recordType=2 this.getDuration() - window.location.href = `tel:${this.detailInfo.contactNumber}`; + window.location.href = `tel:${this.detailInfo.contactNumber}`;*/ }).catch(() => { // on cancel });