地图定位授权拒绝后再次授权android机点击不了 opensetting
这是代码片段 wechatide://minicode/RzYf0amA7C2Q
小程序

chooseLocation: function (e) {
let that = this
wx.getLocation({
type: ‘gcj02’,
success: function (res) {
wx.chooseLocation({
success: function ($res) {
that.LBS($res, that)
}
})
},
fail: function () {
myDialog.showModal({
title: “提示”,
content: “您未授权,将无法操作后续的功能,点击确定获取授权”,
confirmOpenType: “openSetting”,
success: (e) => {
if (e.detail.authSetting[‘scope.userLocation’])
wx.chooseLocation({
success: function ($res) {
that.LBS($res, that)
}
})
else
wx.getLocation({
type: ‘gcj02’,
success: function (res) {
wx.chooseLocation({
success: function ($res) {
that.LBS($res, that)
}
})
}
})
}
})
},
complete: function () { }
})
},
