|
|
@ -25,6 +25,7 @@ |
|
|
|
data() { |
|
|
|
return { |
|
|
|
show: false, |
|
|
|
phone:'', |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@ -59,7 +60,15 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.getCustomPhone() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getCustomPhone(){ |
|
|
|
this.$api('customUser', {}, res => { |
|
|
|
this.phone = res.result.phone |
|
|
|
}) |
|
|
|
}, |
|
|
|
open() { |
|
|
|
this.show = true |
|
|
|
}, |
|
|
@ -69,7 +78,7 @@ |
|
|
|
// 拨打电话 |
|
|
|
confirm() { |
|
|
|
this.show = false |
|
|
|
let phone = "13575038513"; // 需要拨打的电话号码 |
|
|
|
let phone = this.phone; // 需要拨打的电话号码 |
|
|
|
// console.log('拨打电话', phone) |
|
|
|
const res = uni.getSystemInfoSync(); |
|
|
|
// ios系统默认有个模态框 |
|
|
|