getPhoneNumber拒绝授权返回错误信息不同
开发工具和ios是getPhoneNumber:fail user deny;安卓手机是getPhoneNumber:fail:user deny
getPhoneNumber: function(e){
if(e.detail.errMsg === 'getPhoneNumber:ok'){
//确认授权的代码
}else if(e.detail.errMsg === 'getPhoneNumber:fail user deny' ||
e.detail.errMsg === 'getPhoneNumber:fail:user deny'){
//取消授权的代码
}
}