uniapp添加蒙版的时候怎么禁止页面滚动

废话不多说  上代码 在对应的蒙版添加一个方法 可以是空方法 

@touchmove.stop.prevent="moveHandle"
//html
<view class="screen"
			:style="{top : `${screenTop + CUSTOM_BAR_HEIGHT}px`,height : `${SCREEN_VIEW_HEIGHT - screenTop}px`}"
			v-show="screenVisable" @touchmove.stop.prevent="moveHandle">
			<view class="screen-content-main">
				
			</view>

		</view>



//js
moveHandle(){
				
			},

猜你喜欢

转载自blog.csdn.net/qq_37564189/article/details/118493159