这是代码片段 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 () { }

})

},


展开全部
收起
1回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
  • Jose

    10人对此回答表示赞同

    wechatide://minicode/RzYf0amA7C2Q华为麦芒5

    展开
    10
    6回复
    发布于 6年前

    评论(6)

    收起评论

    • wtfjunglebell 2019-03-03 16:43

      经测试的同学测试反馈,并无复现问题哦

      回复
    • Mika 2019-03-05 10:28

      oppengsetting华为手机貌似都有问题

      回复
    • 梁碧芝 2019-03-07 15:03

      微信小程序IOS没有

      回复
    • 吴痕 2019-03-09 19:14

      微信小程序IOS的有测试吗?

      回复
    • 三磷酸腺苷 2019-03-11 17:52

      其他的有的可以

      回复
    • Wyatt 2019-03-13 19:40

      有测试其他的手机吗?是仅这台手机不行吗?

      回复
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部