makePhoneCall
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
<span>李白</span>
|
<span>李白</span>
|
||||||
<span>待走访</span>
|
<span>待走访</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="phone">
|
<div class="phone" @click="callPhone">
|
||||||
<img src="./img/user.png" alt="">
|
<img src="./img/user.png" alt="">
|
||||||
<span>拨打电话</span>
|
<span>拨打电话</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -139,7 +139,10 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
toResult() {
|
toResult() {
|
||||||
uni.navigateTo({url: './result'})
|
uni.navigateTo({url: './result'})
|
||||||
}
|
},
|
||||||
|
callPhone(phone) {
|
||||||
|
uni.makePhoneCall({phoneNumber: phone})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = "风险预警"
|
document.title = "风险预警"
|
||||||
|
|||||||
Reference in New Issue
Block a user