/* 遮罩层s */ .shade { position: fixed; width: 100vw; height: 100vh; top: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); z-index: 100; }
<view bindtap="shadeShowClick" class="shade" wx:if="{{shadeShow}}"> </view>
shadeShow:false,//是否显示 遮罩层
shadeShowClick(){ this.setData({ shadeShow: false }) wx.hideLoading(); },
wx.showLoading({ title: '加载中', mask:false }) this.setData({ shadeShow: true })
this.setData({ shadeShow: false })
站长微信:xiaomao0055
站长QQ:14496453