真机调试上wx.getLocation返回坐标0,0
- 当前 Bug 的表现(可附上截图) 真机调试上:定位到北大西洋 {"verticalAccuracy":0,"latitude":0,"errMsg":"getLocation:ok","accuracy":0,"horizontalAccuracy":0,"speed":0,"longitude":0} [图片] - 预期表现 应该是要返回当前坐标,结果返回0,0 - 复现路径 - 提供一个最简复现 Demo onShow: function(){ var that = this wx.getLocation({ type: 'gcj02', success: function (res) { var latitude = res.latitude; var longitude = res.longitude; console.log(JSON.stringify(res) ) that.setData({ latitude: latitude, longitude: longitude }) }, fail(res) { console.log('失败' + JSON.stringify(res)) } }) } [图片] [图片]