已上传日志..微信号 theartsd
看息屏了2分钟..中间的11:25分是没记录的..
wx.startLocationUpdateBackground({ //前后台调用
success: (res) => {
that.isShiShi = true;
console.log('获取后res:', res);
wx.onLocationChange(function(res) {
if (that.lastGpgx == '') {
that.lastGpgx = res.longitude;
that.lastGpgy = res.latitude;
}
let nowGpsItem = {
'time': that.$u.timeFormat(new Date().getTime(), 'hh:MM:ss'),
'gpsx': res.longitude,
'gpsy': res.latitude,
}
that.gpsList.push(nowGpsItem)
that.upGpsBack(res.longitude, res.latitude)
});
// that.timeGetGps();
},
请提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
安卓机器能给的权限都给了.省电,闲置.后台运行..都给微信权限了.还是不行..求解!