小程序拨打电话api报错makePhoneCall:fail cancel

wx.makePhoneCall({
   phoneNumber: app.globalData.phoneNumber,
 })

  

 

 

wx.makePhoneCall({
  phoneNumber:app.globalData.phoneNumber,
}).catch((e) => {
  // console.log(e)  //用catch(e)来捕获错误{makePhoneCall:fail cancel}
})

  

posted @ 2021-09-23 11:31  WrYcF  阅读(254)  评论(0编辑  收藏  举报
Live2D