小程序获取手机号返回undefined
<button open-type=“getPhoneNumber” hover-class=‘none’ bindtap=‘getPhoneNumber’>获取本机手机号</button>
getPhoneNumber: function (e) {
console.log(e)
console.log(e.detail.errMsg)
console.log(e.detail.iv)
console.log(e.detail.encryptedData)
}