- 打电话按钮绑定makePhoneCall方法
- 点击打电话按钮

- 发布:2025-04-07 14:19
- 更新:2025-04-09 15:53
- 阅读:1548
产品分类: uni小程序SDK
手机系统: iOS
手机系统版本号: iOS 18
手机厂商: 苹果
手机机型: iphone 14 pro max
页面类型: vue
SDK版本号: 3.98
操作步骤:
预期结果:
弹出拨号界面
弹出拨号界面
实际结果:
无反应
无反应
bug描述:
如题,在调用uni.makePhoneCall方法后没有反应。
js
makeCall() {
uni.makePhoneCall({
phoneNumber: '18313322323',
success: (res) => {
// console.log(res)
errorInfo = JSON.stringify(res)
},
fail: (err) => {
// console.log(err)
errorInfo = JSON.stringify(err)
}
})
},
html:
<view class="item" @click="makeCall">
<text>打电话</text>
<view class="right">
<view class="icon-arrow-right"></view>
</view>
</view>
<view>
<text>回调信息</text>
<text>{{ errorInfo }}</text>
</view>
1 个回复
yuewanxinghui
应用没有打电话权限,
https://ask.dcloud.net.cn/question/4035