问题描述
直接上代码
<button v-show="canUse" class="loginbtn" open-type="getPhoneNumber" @getPhoneNumber="getPhoneNumber"></button>
getPhoneNumber:function(e) {
console.log('111111111111')
this.canUse = false
console.log(e.detail.errMsg == 'getPhoneNumber:ok')
if(e.detail.errMsg == 'getPhoneNumber:ok') {
console.log('succes')
}
},
点击允许获取手机号后没有执行getPhoneNumber
怎么回事?
已经解决:https://ask.dcloud.net.cn/question/82706?notification_id-771760__rf-false__item_id-130514#!answer_130514