diff --git a/pages/component/map/map.uvue b/pages/component/map/map.uvue index 9e0c8f727084d21dbc0e5fb54b9b578d15b178fa..ec6d95eeea31c09be934c2172d4581fda6645210 100644 --- a/pages/component/map/map.uvue +++ b/pages/component/map/map.uvue @@ -621,21 +621,21 @@ const maptap = (e : UniMapTapEvent) => { // console.log('点击地图时触发',e) uni.showModal({ - content: JSON.stringify(e) + content: JSON.stringify(e.detail) }); }; const onmarkertap = (e : UniMapMarkerTapEvent) => { // console.log('点击标记点时触发',e) uni.showModal({ - content: JSON.stringify(e) + content: JSON.stringify(e.detail) }); }; const oncontroltap = (e : UniMapControlTapEvent) => { // console.log('点击控件时触发',e) uni.showModal({ - content: JSON.stringify(e) + content: JSON.stringify(e.detail) }); }; @@ -651,13 +651,13 @@ }; const onregionchange = (e : UniMapRegionChangeEvent) => { - console.log('视野发生变化时触发', e) + console.log('视野发生变化时触发', e.detail) }; const onpoitap = (e : UniMapPoiTapEvent) => { // console.log('点击地图poi点时触发',e) uni.showModal({ - content: JSON.stringify(e) + content: JSON.stringify(e.detail) }); };