使用uniapp配置的"permission" : {
“scope.userLocation” : {
“desc” : “商城定位”
}
},
但是进去设置里显示xxx未使用你的任何信息
需要用户授权的。
wx.getSetting({ success(res) { if (!res.authSetting['scope.userLocation']) { wx.authorize({ scope: 'scope.userLocation', success () { wx.getLocation() } }) } } })