https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.chooseLocation.html,
wx.chooseLocation 小程序这两天开始不好用了,不能弹出选择位置,需要设置什么吗
wx.chooseLocation({
success: function(res){
that.longitude = res.longitude;
that.latitude = res.latitude;
that.model.latlng = that.longitude + "," + that.latitude;
if (res.address == "" || res.address == null) {
// console.log('334')
that.model.address == "";
} else {
that.model.address = res.address + '(' + res.name + ')';
}
},
fail: function(res) {
_this.$u.toast(res);
console.log('refails===', res)
},
complete: function(res) {
console.log('reschoosecomplete====', res)
}
});
"permission" : {
"scope.userLocation" : {
"desc" : "你的位置信息将用于小程序定位"
}
},
"requiredPrivateInfos" : [ "getLocation", "chooseLocation" ]
控制台输出什么报错
隐私协议加没有