diff --git a/ebike-user/pages/map/map-location.vue b/ebike-user/pages/map/map-location.vue
index bbec8c1..6f44226 100644
--- a/ebike-user/pages/map/map-location.vue
+++ b/ebike-user/pages/map/map-location.vue
@@ -1,102 +1,102 @@
-
+
\ No newline at end of file
+.divBtn {
+ position: absolute;
+ z-index: 100;
+ top: 50%;
+ left: 10px;
+ background-color: white;
+ border-radius: 5px;
+ width: 40px;
+ text-align: center;
+ font-size: 12px;
+ padding: 10px 5px;
+ border: 1px solid #80808061;
+}
+
diff --git a/ebike-user/pages/user/scan/applysite.vue b/ebike-user/pages/user/scan/applysite.vue
index bcbb5f5..b86fd0f 100644
--- a/ebike-user/pages/user/scan/applysite.vue
+++ b/ebike-user/pages/user/scan/applysite.vue
@@ -1,194 +1,195 @@
-
-
-
申请位置
-
-
-
-
原因
-
-
-
-
- 提交
-
-
+
+
+ 申请位置
+
+
+
+ 原因
+
+
+
+ 提交
+
\ No newline at end of file
+.divBtn {
+ background-color: #61d145;
+ color: white;
+ line-height: 40px;
+ text-align: center;
+ border-radius: 5px;
+ margin-top: 40px;
+ width: calc(100vw - 30rpx);
+}
+
diff --git a/ebike-user/utils/usermap.js b/ebike-user/utils/usermap.js
index fabc154..1711f4a 100644
--- a/ebike-user/utils/usermap.js
+++ b/ebike-user/utils/usermap.js
@@ -39,19 +39,48 @@ export function getLoalcation(success, fail) {
}
//逆解析地址
-export function reverseGeocoder(qqmapsdk, longitude, latitude, success, fail) {
- qqmapsdk.reverseGeocoder({
- location: {
- latitude: latitude,
- longitude: longitude
+export function reverseGeocoder(mapsdk, longitude, latitude, success, fail) {
+ mapsdk.getRegeo({
+ location: `${longitude},${latitude}`,
+ success: function (res) {
+ const {
+ name,
+ regeocodeData
+ } = res[0];
+ const {
+ addressComponent: {
+ adcode,
+ province,
+ city,
+ district
+ },
+ formatted_address
+ } = regeocodeData
+ if (success) success({
+ name,
+ formatted_address,
+ adcode,
+ province,
+ city,
+ district
+ });
},
- success: (res) => {
- if (success) success(res.result);
- },
- fail: (res) => {
- if (fail) success(fail);
+ fail: function (info) {
+ if (fail) fail(res);
}
})
+ // qqmapsdk.reverseGeocoder({
+ // location: {
+ // latitude: latitude,
+ // longitude: longitude
+ // },
+ // success: (res) => {
+ // if (success) success(res.result);
+ // },
+ // fail: (res) => {
+ // if (fail) success(fail);
+ // }
+ // })
}
//添加点