<button open-type="getAuthorize" @getAuthorize="onGetAuthorize" onError="onAuthError" scope='phoneNumber'>授权手机号</button>
onGetAuthorize(){
my.getPhoneNumber({
success: (res) => {
console.log(res)
var resData = JSON.parse(res.response);
console.log('res',resData)
},
fail: (res) => {
console.log(res);
console.log('getPhoneNumber_fail');
},
});
},
2 个回复
2***@qq.com
解决了吗?同求
2***@qq.com