wx.chooseContact({
success: function (res) {
that.setData({
'phone': res.phoneNumber,
'rNickName': res.displayName
});
},
fail: function (res) {
wx.showModal({
title: '提示',
content: res.errMsg || '',
mask: true,
showCancel: false
})
console.log(res);
},
complete: function (res) {
console.log(res);
}
});
这边试了没什么问题https://developers.weixin.qq.com/s/wgwxVbm17tBT
我这边真机调试始终走fail回调 华为nova 7 se 5g 型号cdy-an00 版本号鸿蒙 2.0.0.270
华为P40,微信版本8.0.25,真机调试始终走fail回调