beln
beln
  • 发布:2025-12-18 14:26
  • 更新:2025-12-18 15:47
  • 阅读:22

手持GPS终端:获取系统定位出错:get location fail

分类:uni-app

安卓os系统版本 android 7
uni.getLocation({
type: 'wgs84',
success: (res) => {
console.log('当前位置:', res);
uni.showModal({
title: '提示成功',
content: 纬度: ${res.latitude}, 经度: ${res.longitude}, 精度: ${res.accuracy}m,
showCancel: false
});
this.handleLocationChange(res)
},
fail: (err) => {
uni.showModal({
title: '提示失败',
content: 错误信息: ${err.errMsg || JSON.stringify(err)},
showCancel: false
});

          console.error('获取当前位置失败:', err);  
        }  
      });
0 关注 分享

要回复文章请先登录注册

beln

beln (作者)

回复 9***@qq.com :
我用的是安卓系统定位
2025-12-18 15:47
9***@qq.com

9***@qq.com

地图厂商怎么没配置啊
2025-12-18 14:36