From 2e35adbac297fe9b6363f501c0506f53de58c71e Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Thu, 28 Jul 2022 17:57:54 +0800 Subject: [PATCH] =?UTF-8?q?feat(h5=20openLocation):=20=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E9=AB=98=E5=BE=B7=E5=9C=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system-routes/open-location/index.vue | 35 +++++++++++-------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/src/platforms/h5/components/system-routes/open-location/index.vue b/src/platforms/h5/components/system-routes/open-location/index.vue index c595186e1..139c5cca8 100644 --- a/src/platforms/h5/components/system-routes/open-location/index.vue +++ b/src/platforms/h5/components/system-routes/open-location/index.vue @@ -7,29 +7,29 @@ :markers="[marker, location]" @regionchange="onRegionChange" > -
-
{{ name }}
-
{{ address }}
-
- @@ -147,6 +147,11 @@ export default { }%2C${this.longitude}&from=${encodeURIComponent( '我的位置' )}&to=${encodeURIComponent(this.name || '目的地')}&ref=${mapInfo.key}` + } else if (mapInfo.type === MapType.AMAP) { + url = `https://m.amap.com/navi/?dest=${this.longitude},${this.latitude}&key=${mapInfo.key}` + if (this.name) { + url += `&destName=${this.name}` + } } window.open(url) } -- GitLab