项目需要,一个页面2个布局,一个需要可以滚动,一个不需要滚动。
在不需要滚动的view里面添加一个全局蒙版,如下设置即可
1 <view style="position: fixed ;top:0;left:0;width: 100%;height: 100%;overflow: hidden;" @touchmove.stop.prevent="moveHandle" catchtouchmove="true"></view> 2 3 moveHandle(){}