1.如果彈出層沒有滾動事件,就直接在蒙板上加catchtouchmove="move" move:function(){};
2.如果彈出層有滾動事件,那麼在彈出層出現的時候給底部的containerView加上一個樣式。
<view class="{{showSearchView?'tripList_root':''}}">
.tripList_root{
top:0px;
left: 0px;
width: 100%;
height: 100%;
overflow: hidden;
position: fixed;
z-index: 0;
}
showSearchView就是控制是否出現遮罩層的那一個布爾變量