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

95 阅读1分钟

本文已参与「新人创作礼」活动,一起开启掘金创作之路。

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

@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(){
				
			},