解决微信小程序遮罩层底部页面滚动
一、wxml文件添加catchtouchmove=“move”。
<view class="" class="zzc" hidden="{{zzc}}" catchtouchmove="move">
<view class="absolute " style="bottom: 10vh;left: 0;right: 0;">
<view class="dpcc relative">
<image src="../../static/yyga.png" mode="widthFix" style="width: 80%;margin: 0 auto;"></image>
<view class="absolute" style="bottom: 150rpx;width: 50%;margin: 0 auto; text-align: center;line-height: 1.5;font-size: 30rpx;color: #333;">很抱歉,本活动仅业主可参加</view>
<view bindtap="gbzzc" class="absolute" style="bottom: 0;left: 0;right: 0;width: 50%;margin: 0 auto;height: 70rpx;"></view>
</view>
</view>
</view>
二、js添加 move:function(){},。
move:function(){},
写完之后即可解决,微信开发者工具可能会不生效,但是预览生效