2021-01-10
![](https://img.haomeiwen.com/i1780372/1c83d1f31e605f10.png)
方案一:
<view @touchmove.stop.prevent="moveHandle"></view>
methods: {
moveHandle() {}
方案二:或者可以用我下面的思路:
如果要显示遮罩层,那么用css控制底部的不允许滚动。
![](https://img.haomeiwen.com/i1780372/6617a4fe99be7a86.png)
最底层的元素上控制
<view :class="mask ? 'tl-show': ''">
data() {
return {
mask: false,
}
}
// 如果要显示遮罩层,那么用css控制底部的不允许滚动。
.tl-show{
overflow: hidden;
position:fixed;
height: 100%;
width: 100%;
}
网友评论