From 5d707cb33325b14a732b02bef753527f948654a4 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Wed, 9 Mar 2022 13:48:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E9=80=89=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AiTMap.vue | 4 +- src/manifest.json | 11 +- src/saas/AppCountryAlbum/ChooseAddess.vue | 169 +++++++++++++++++++--- vue.config.js | 6 +- 4 files changed, 168 insertions(+), 22 deletions(-) diff --git a/src/components/AiTMap.vue b/src/components/AiTMap.vue index 16441275..27605fbc 100644 --- a/src/components/AiTMap.vue +++ b/src/components/AiTMap.vue @@ -61,9 +61,9 @@ export default { center: new TMap.LatLng(latLng.lat, latLng.lng), ...this.ops }) - this.$emit('loaded') this.$emit('update:lib', TMap) this.$emit('update:map', this.tmap) + this.$emit('loaded') this.areaId && this.getMapArea() } else { //上架版 uni.getLocation({ @@ -80,9 +80,9 @@ export default { center: new TMap.LatLng(latLng.lat, latLng.lng), ...this.ops }) - this.$emit('loaded') this.$emit('update:lib', TMap) this.$emit('update:map', this.tmap) + this.$emit('loaded') this.areaId && this.getMapArea() } } diff --git a/src/manifest.json b/src/manifest.json index e90ba4f7..837207cd 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -41,6 +41,15 @@ "pathRewrite": { "^/online": "/" } + }, + "/tmap": { + "target": "https://apis.map.qq.com", + "changeOrigin": true, + "secure": false, + "ws": true, + "pathRewrite": { + "^/tmap": "" + } } } }, @@ -58,4 +67,4 @@ } } } -} +} \ No newline at end of file diff --git a/src/saas/AppCountryAlbum/ChooseAddess.vue b/src/saas/AppCountryAlbum/ChooseAddess.vue index 42e73980..42bb2ff0 100644 --- a/src/saas/AppCountryAlbum/ChooseAddess.vue +++ b/src/saas/AppCountryAlbum/ChooseAddess.vue @@ -1,6 +1,11 @@