【uni-app&mini program】makePhoneCall makes a call

uni-app

uni.makePhoneCall(OBJECT)

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

WeChat applet

wx.makePhoneCall(Object object) | WeChat Open Documentation

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

Guess you like

Origin blog.csdn.net/wuli_youhouli/article/details/127533104
Recommended