【uni-app&小程序】makePhoneCall 拨打电话

uni-app

uni.makePhoneCall(OBJECT)

<view class="serve" @click="call()">联系客服</view>

微信小程序

wx.makePhoneCall(Object object) | 微信开放文档

<view class="serve" data-phone="15952011111" bindtap="call">联系客服</view>
call(e) {
  wx.makePhoneCall({
    phoneNumber: e.currentTarget.dataset.phone
  })
}

猜你喜欢

转载自blog.csdn.net/wuli_youhouli/article/details/127533104