From 9fe81f2ea476736201f10c4f209fc612c6a81d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E7=90=AA?= Date: Thu, 28 Nov 2024 20:56:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(web):=20=E5=A2=9E=E5=8A=A0web=E7=AB=AFmap?= =?UTF-8?q?=20tap=E4=BA=8B=E4=BB=B6=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/map/map.uvue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pages/component/map/map.uvue b/pages/component/map/map.uvue index 0ff2de49..294b95f1 100644 --- a/pages/component/map/map.uvue +++ b/pages/component/map/map.uvue @@ -634,11 +634,18 @@ }) } - const maptap = (e : UniMapTapEvent) => { + const maptap = (e : UniMapTapEvent) => { + // #ifdef WEB + uni.showModal({ + content: 'web端map组件tap事件不支持返回经纬度' + }); + // #endif + // #ifndef WEB // console.log('点击地图时触发',e) uni.showModal({ content: JSON.stringify(e.detail) - }); + }); + // #endif }; const onmarkertap = (e : UniMapMarkerTapEvent) => { -- GitLab