wx.getLocation在ios10.3.3这个版本上会直接进fail回调

发布于 6 年前作者 pshi13144 次浏览最后编辑 6 年前来自 ask
  • 当前 Bug 的表现(可附上截图)
  • 预期表现

进入成功回调

  • 复现路径

  • 提供一个最简复现 Demo

wx.getLocation({

type: ‘wgs84’,

success: function (res) {

that.setData({

latitude: res.latitude,

longitude: res.longitude

});

that.loadData();

},

fail: function (info) {

console.log(info);

}

})

0 回复
暂无回复