uni-app 内部提供了一个makePhoneCall函数。
效果图:
<template>
<view @click = "phone">15054054533</view>
</template>
<script>
export default {
data() {
return {
}
},
onLoad() {
},
methods: {
phone() {
uni.makePhoneCall({
phoneNumber: '150-5405-4533'
})
}
}
}
</script>
<style>
</style>