在index.js文件中,声明打电话的方法,直接调用微信小程序的api:
handleCall(){
wx.makePhoneCall({
phoneNumber: this.data.supplierHome.contactPhone,
success: (result) => {},
fail: () => { },
complete: () => { }
})
}
在index.js文件中,声明打电话的方法,直接调用微信小程序的api:
handleCall(){
wx.makePhoneCall({
phoneNumber: this.data.supplierHome.contactPhone,
success: (result) => {},
fail: () => { },
complete: () => { }
})
}