这是代码片段 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 () { }
})
},
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。