Browse Source

js定位开启高精度定位

peiguo 4 năm trước cách đây
mục cha
commit
360b495f3c
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      whepi-ui/templates/home/getLocation.js

+ 1 - 0
whepi-ui/templates/home/getLocation.js

@@ -13,6 +13,7 @@ function getLocation() {
   //return;
   wx.getLocation({
     type: 'wgs84',
+    isHighAccuracy: true,
     success: function (res) {
       // alert(JSON.stringify(res));