wx.getLocation 安卓定位精度低 IOS正常 解决进度
发布于 6 年前 作者 dshao 6073 次浏览 来自 官方Issues

最新基础还是没解决此问题,请问官方何时安排解决

这问题已经好多人反映而且时间也很久了,希望尽快解决,

小程序运营卡在这里,严重影响推广进程。

希望尽早列入解决的日程

https://developers.weixin.qq.com/community/develop/doc/0004a840c94aa06081b867ca851c00

var _this = this;

//设置计时器,不停获取位置信息以测速

gps: setInterval(function () {

wx.getLocation({

type: 'wgs84',

success(res) {

if (res.speed == -1) {

_this.setData({

accuracy: res.accuracy,

speed: 0

})

}

else {

_this.setData({

accuracy: res.accuracy,

speed: res.speed * 3.6

})

}

},

})

}, 1000//1秒刷新一次

1 回复

预计在8月会上

回到顶部