diff --git a/manifest.json b/manifest.json
index d5d3dd3..e438fcc 100644
--- a/manifest.json
+++ b/manifest.json
@@ -83,7 +83,11 @@
},
"h5" : {
"sdkConfigs" : {
- "maps" : {}
+ "maps" : {
+ "qqmap" : {
+ "key" : "TMWBZ-XA3CD-HA74Y-PNUS4-SAV6Q-X7FXH"
+ }
+ }
},
"devServer" : {
"https" : false,
diff --git a/pages.json b/pages.json
index 7e487e0..2f2910a 100644
--- a/pages.json
+++ b/pages.json
@@ -342,6 +342,15 @@
"enablePullDownRefresh": false
}
+ }
+ ,{
+ "path" : "map/map",
+ "style" :
+ {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
}
]
}
diff --git a/pagesB/map/map.vue b/pagesB/map/map.vue
new file mode 100644
index 0000000..bcb0393
--- /dev/null
+++ b/pagesB/map/map.vue
@@ -0,0 +1,21 @@
+
+
+
+
+
+
+
+
diff --git a/pagesB/service-range/service-range.vue b/pagesB/service-range/service-range.vue
index 8c8f241..7a17843 100644
--- a/pagesB/service-range/service-range.vue
+++ b/pagesB/service-range/service-range.vue
@@ -76,13 +76,22 @@
const latitude = res.latitude;
const longitude = res.longitude;
console.log(latitude,longitude,78);
- uni.openLocation({
- latitude: latitude,
- longitude: longitude,
- success: function () {
- console.log('success');
+ uni.chooseLocation({
+ success: function (res) {
+ console.log(res,81);
+ console.log('位置名称:' + res.name);
+ console.log('详细地址:' + res.address);
+ console.log('纬度:' + res.latitude);
+ console.log('经度:' + res.longitude);
}
});
+ // uni.openLocation({
+ // latitude: latitude,
+ // longitude: longitude,
+ // success: function () {
+ // console.log('success');
+ // }
+ // });
}
});
},