From 98757fa99a0ded633583d5e33b5068365529f59b Mon Sep 17 00:00:00 2001
From: chen <2659004835@qq.com>
Date: Fri, 25 Mar 2022 17:40:15 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=8D=E5=8A=A1=E8=8C=83?=
=?UTF-8?q?=E5=9B=B4=E5=9C=B0=E5=9D=80=E9=80=89=E6=8B=A9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
manifest.json | 6 +++++-
pages.json | 9 +++++++++
pagesB/map/map.vue | 21 +++++++++++++++++++++
pagesB/service-range/service-range.vue | 19 ++++++++++++++-----
4 files changed, 49 insertions(+), 6 deletions(-)
create mode 100644 pagesB/map/map.vue
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');
+ // }
+ // });
}
});
},