dingyantao 7 months ago
parent
commit
6f9814ed95
2 changed files with 22 additions and 17 deletions
  1. 18
    14
      .hbuilderx/launch.json
  2. 4
    3
      pages/index/index.vue

+ 18
- 14
.hbuilderx/launch.json View File

@@ -1,16 +1,20 @@
1
-{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
2
-  // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
3
-    "version": "0.0",
4
-    "configurations": [{
5
-     	"default" : 
6
-     	{
7
-     		"launchtype" : "local"
8
-     	},
9
-     	"mp-weixin" : 
10
-     	{
11
-     		"launchtype" : "local"
12
-     	},
13
-     	"type" : "uniCloud"
14
-     }
1
+{
2
+    // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
3
+    // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
4
+    "version" : "0.0",
5
+    "configurations" : [
6
+        {
7
+            "default" : {
8
+                "launchtype" : "local"
9
+            },
10
+            "mp-weixin" : {
11
+                "launchtype" : "local"
12
+            },
13
+            "type" : "uniCloud"
14
+        },
15
+        {
16
+            "openVueDevtools" : true,
17
+            "type" : "uni-app:miniProgram"
18
+        }
15 19
     ]
16 20
 }

+ 4
- 3
pages/index/index.vue View File

@@ -132,8 +132,9 @@
132 132
             :scroll-y="true"
133 133
             :scroll-enabled="false"
134 134
             :scroll-into-view="scrollIntoViewId"
135
-            :style="{ maxHeight: heit }"
135
+            :style="{ height: heit }"
136 136
             class="dt_scroll-box"
137
+			lower-threshold='300'
137 138
             v-if="List && List.length"
138 139
             :scroll-with-animation="false"
139 140
             @scroll="handleScroll"
@@ -819,8 +820,8 @@ export default {
819 820
         });
820 821
       } else {
821 822
         let [err, info] = await uni.getLocation({
822
-          type: "gcj02",
823
-          // type:"wgs84"
823
+          // type: "gcj02",
824
+          type:"wgs84",
824 825
           isHighAccuracy: true,
825 826
         });
826 827
         if (err == null) {

Loading…
Cancel
Save