码迷,mamicode.com
首页 > 其他好文 > 详细

mui上拉加载会影响页面中的某些点击事件

时间:2019-01-09 15:06:45      阅读:301      评论:0      收藏:0      [点我收藏+]

标签:mob   跳转   影响   解决办法   touch   stop   事件   star   应该   

项目是vue写的(移动端)
<div class="mui-scroll">
  <a :href="bannerinfo.activity_url" class="icon play">
    链接点击没反应(点元素的最左边才会跳转)
  </a>
  <a :href="‘tel:‘+item.ac_mobile">
    {{item.ac_mobile}}  电话号码点击没反应(点元素的最左边才会跳转)
  </a>
</div>
应该是mui禁止了一些事件的浏览器默认行为,解决办法:阻止touchStart事件冒泡,下面是vue的写法
<a :href="bannerinfo.activity_url" class="icon play" @touchStart.stop>
</a>

mui上拉加载会影响页面中的某些点击事件

标签:mob   跳转   影响   解决办法   touch   stop   事件   star   应该   

原文地址:https://www.cnblogs.com/sgqwjr/p/10244179.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!