taiyang2014

弹框时出现灰色背景

    <view wx:if="{{isChose == 1}}" class="fullbg {{isfull ? 'fullopacity' : ''}}" bindtap="hidebg"></view>
.fullbg {
    position: fixed;
    z-index: 1;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgb(1, 1, 1);
    transition: all 2s;
    opacity: 0;
}
.fullopacity {
    opacity: .5;
}
    hidebg:function () {
        this.setData({
            isChose:'0',
            isfull:false,
            rightOpen:false
        })  
    } 

posted on 2017-08-22 10:01  taiyang2014  阅读(433)  评论(0编辑  收藏  举报

导航