From 79e83f741703e58471f438044349ddc81502df9f Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Tue, 27 May 2025 17:22:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(my=5Fattendance):=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E5=AE=9A=E4=BD=8D=E5=8A=9F=E8=83=BD=E4=BD=BF=E7=94=A8=E8=85=BE?= =?UTF-8?q?=E8=AE=AF=E5=9D=90=E6=A0=87=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将定位类型从 'wgs84' 改为 'gcj02',以适配腾讯地图坐标系 - 添加 isHighAccuracy 参数,开启高精度定位功能 --- pages/common/my_attendance.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/common/my_attendance.vue b/pages/common/my_attendance.vue index ec01753..eb23fd0 100644 --- a/pages/common/my_attendance.vue +++ b/pages/common/my_attendance.vue @@ -643,7 +643,8 @@ export default { getlocation() { uni.getLocation({ - type: 'wgs84', + type: 'gcj02',//腾讯坐标系 + isHighAccuracy: true,//开启高精度定位 success: (res) => { console.log('当前位置的经度:' + res.longitude); console.log('当前位置的纬度:' + res.latitude);