Sfoglia il codice sorgente

更新 获取位置信息type,开启高精度

wzh 4 anni fa
parent
commit
7c560e7f70
2 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 2 0
      miniprogram/pages/takePhoto/takePhoto.js
  2. 1 1
      project.config.json

+ 2 - 0
miniprogram/pages/takePhoto/takePhoto.js

@@ -41,6 +41,8 @@ Page({
   },
   takePhoto() {
     wx.getLocation({
+      type: 'gcj02',
+      isHighAccuracy: true,
       success: e => {
         let {
           latitude,

+ 1 - 1
project.config.json

@@ -41,7 +41,7 @@
   },
   "appid": "wxf22759845920b6f3",
   "projectname": "%E6%B1%9F%E8%BF%90%E9%9A%8F%E6%89%8B%E6%8B%8D2.0",
-  "libVersion": "2.14.1",
+  "libVersion": "2.19.6",
   "cloudfunctionTemplateRoot": "cloudfunctionTemplate",
   "condition": {
     "search": {