WXML:
<view class="mask" catchtouchmove="preventTouchMove" hidden="{{hid_mengceng}}"></view>
WXSS:
.mask {
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
background: #000;
z-index: 9;
opacity: 0.7;
}
JS:
/**阻止页面滚动。模拟器中页面仍然可以滚动,真机上不能滚动。*/
preventTouchMove: function (e) {
},