2374关注7400浏览
这是代码片段 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 () { }
})
},
-
至过去的我
2044人对此回答表示赞同
我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多> -
Jose
10人对此回答表示赞同
wechatide://minicode/RzYf0amA7C2Q华为麦芒5
展开106回复分享发布于 6年前评论(6)
收起评论
经测试的同学测试反馈,并无复现问题哦
oppengsetting华为手机貌似都有问题
微信小程序IOS没有
微信小程序IOS的有测试吗?
其他的有的可以
有测试其他的手机吗?是仅这台手机不行吗?