vue 禁止遮罩层下的页面滑动

在遮罩层中,设置:

<view class="tuikuan-showModal" @touchmove.stop.prevent="moveHandle"></view>  //遮罩层

 在 methods 中,设置:

//遮罩层穿透,阻止底部滑动
moveHandle() { return; },

  

posted @ 2020-08-11 15:10  小蘑菇123  阅读(1045)  评论(0编辑  收藏  举报