获取手机号getPhoneNumber,返回的code为空?
wxml:
<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
js:
getPhoneNumber (e) {
console.log(e)
console.log(e.detail.code)
},
//打印
wxml:
<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"></button>
js:
getPhoneNumber (e) {
console.log(e)
console.log(e.detail.code)
},
//打印