提交 9316ff83 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

fix:map示例 iOS端点击事件报错

# Conflicts:
#	pages/component/map/map.uvue
上级 4deb7047
...@@ -621,21 +621,21 @@ ...@@ -621,21 +621,21 @@
const maptap = (e : UniMapTapEvent) => { const maptap = (e : UniMapTapEvent) => {
// console.log('点击地图时触发',e) // console.log('点击地图时触发',e)
uni.showModal({ uni.showModal({
content: JSON.stringify(e) content: JSON.stringify(e.detail)
}); });
}; };
const onmarkertap = (e : UniMapMarkerTapEvent) => { const onmarkertap = (e : UniMapMarkerTapEvent) => {
// console.log('点击标记点时触发',e) // console.log('点击标记点时触发',e)
uni.showModal({ uni.showModal({
content: JSON.stringify(e) content: JSON.stringify(e.detail)
}); });
}; };
const oncontroltap = (e : UniMapControlTapEvent) => { const oncontroltap = (e : UniMapControlTapEvent) => {
// console.log('点击控件时触发',e) // console.log('点击控件时触发',e)
uni.showModal({ uni.showModal({
content: JSON.stringify(e) content: JSON.stringify(e.detail)
}); });
}; };
...@@ -651,13 +651,13 @@ ...@@ -651,13 +651,13 @@
}; };
const onregionchange = (e : UniMapRegionChangeEvent) => { const onregionchange = (e : UniMapRegionChangeEvent) => {
console.log('视野发生变化时触发', e) console.log('视野发生变化时触发', e.detail)
}; };
const onpoitap = (e : UniMapPoiTapEvent) => { const onpoitap = (e : UniMapPoiTapEvent) => {
// console.log('点击地图poi点时触发',e) // console.log('点击地图poi点时触发',e)
uni.showModal({ uni.showModal({
content: JSON.stringify(e) content: JSON.stringify(e.detail)
}); });
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册