This website works better with JavaScript.
Home
Explore
Help
Register
Sign In
hly
/
universal-wechat-uniapp-241007
generated from
hly/uniapp-shop-templates
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
fix: 将地图点击事件从map元素移至父容器
点击事件处理从map元素移动到父view容器,以避免事件冲突并统一交互行为
master
前端-胡立永
2 days ago
parent
65125a6465
commit
4e8ec0a951
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
components/base/mapCard.vue
+ 2
- 2
components/base/mapCard.vue
View File
@ -1,5 +1,5 @@
<
template
>
<
view
class
=
"map-card"
>
<
view
class
=
"map-card"
@click
="onMapTap"
>
<!--
地图区域
--
>
<
view
class
=
"map-container"
>
<
map
@ -13,8 +13,8 @@
:
enable
-
overlooking
=
"false"
:
enable
-
traffic
=
"false"
class
=
"map"
@
tap
=
"onMapTap"
>
<
/
map
>
<!--
@
tap
.
stop
=
"onMapTap"
--
>
<
/
view
>
<!--
地址信息区域
--
>
Write
Preview
Loading…
Cancel
Save