0
点赞
收藏
分享

微信扫一扫

JMeter初体验:从入门到入门的性能测试之旅

zhoulujun 2024-11-18 阅读 7

wx.makePhoneCall

属性类型默认值必填说明
phoneNumberstring需要拨打的电话号码
successfunction接口调用成功的回调函数
failfunction接口调用失败的回调函数
completefunction接口调用结束的回调函数(调用成功、失败都会执行)
<view class="f16 mt20 flex align_center" wx:if="{{item.telephone}}">
    联系电话:<text>{{item.telephone?item.telephone:''}}</text>
    <van-icon wx:if="{{item.telephone}}" data-item="{{item}}" bind:tap="callPhone" name="phone" color="#00d59e" style="margin-left:20rpx" size="25" />
</view>
 callPhone(event) { //拨打电话
var item = event.currentTarget.dataset.item;
wx.showModal({
title: '提示',
content: '是否拨打' + item.telephone,
success: (res) => {
if (res.confirm) {
wx.makePhoneCall({
phoneNumber: item.telephone,
})
}
}
})
},

 

举报

相关推荐

0 条评论