二手车交易,打电话问题
This commit is contained in:
@ -168,10 +168,16 @@ export default {
|
|||||||
message:this.detailInfo.contactNumber ,
|
message:this.detailInfo.contactNumber ,
|
||||||
confirmButtonText:'拨打电话',
|
confirmButtonText:'拨打电话',
|
||||||
showCancelButton:true,
|
showCancelButton:true,
|
||||||
}).then(() => {
|
}).then(async() => {
|
||||||
this.recordType=2
|
try {
|
||||||
|
await this.getDuration(); // 等待网络请求完成
|
||||||
|
window.location.href = `tel:${this.detailInfo.contactNumber}`; // 拨号
|
||||||
|
} catch (error) {
|
||||||
|
console.error('网络请求失败', error);
|
||||||
|
}
|
||||||
|
/* this.recordType=2
|
||||||
this.getDuration()
|
this.getDuration()
|
||||||
window.location.href = `tel:${this.detailInfo.contactNumber}`;
|
window.location.href = `tel:${this.detailInfo.contactNumber}`;*/
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
// on cancel
|
// on cancel
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user