微信小程序拨号功能,调起手机拨号!
发布于 3 年前 作者 klai 2758 次浏览 来自 分享

微信官方文档·:https://developers.weixin.qq.com/miniprogram/dev/api/device/phone/wx.makePhoneCall.html

方法也很简单,直接调用wx.makePhoneCall({}),如下图,phoneNumber就是电话号码,触发call方法后,会直接跳转到拨号页面,如下图:

call() { // 打电话
    let phone = "13123123123" // 仅为示例,并非真实的电话号码
	wx.makePhoneCall({
	  phoneNumber: phone  
	})
}



2 回复

社区大佬真多 我算是学到了

受教👍👍

回到顶部