diff --git a/src/views/secondHandCar/forSale.vue b/src/views/secondHandCar/forSale.vue index f825c25c..e0a696d8 100644 --- a/src/views/secondHandCar/forSale.vue +++ b/src/views/secondHandCar/forSale.vue @@ -193,7 +193,9 @@ export default { confirmButtonText:this.isWebFunc() ? '确定' : '拨打电话', showCancelButton:true, }).then(async() => { - window.location.href = `tel:${this.detailInfo.contactNumber}`; + if(!this.isWebFunc()){ + window.location.href = `tel:${this.detailInfo.contactNumber}`; + } }).catch(() => { // on cancel }); diff --git a/src/views/secondHandCar/wantBuySale.vue b/src/views/secondHandCar/wantBuySale.vue index 33a053ef..d2e99531 100644 --- a/src/views/secondHandCar/wantBuySale.vue +++ b/src/views/secondHandCar/wantBuySale.vue @@ -110,7 +110,9 @@ export default { confirmButtonText:this.isWebFunc() ? '确定' : '拨打电话', showCancelButton:true, }).then(() => { - window.location.href = `tel:${this.detailInfo.contactNumber}`; + if(!this.isWebFunc()){ + window.location.href = `tel:${this.detailInfo.contactNumber}`; + } }).catch(() => { // on cancel });