筛选蒙层

11 篇文章 0 订阅
<div class="listbox">
		<transition name="filter">
				<div class="filterbox" v-show="tkshow">
					<div class="content">
						<div class="title">
							币种
						</div>
						<div class="flexbox">
							<div>BTC</div>
							<div>ETH</div>
							<div>USDT</div>
							<div>YCW</div>
						</div>
					</div>
					<div class="btnbox flexbox">
						<div class="left btn">
							重置
						</div>
						<div class="right btn">
							确定
						</div>
					</div>
				</div>
			</transition>
			<transition name="fadet">
				<div style="" class="showad" v-show="tkshow"></div>
			</transition>
		</div>
.listbox {
			height: calc(100% - 2.56rem);
			box-sizing: border-box;
			position: relative;
			.filter-enter-active,.filter-leave-active {transition: .5s;}
			.filter-enter,.filter-leave-to {opacity: 0;transform: scale(.9);}
			.fadet-enter-active,.fadet-leave-active {transition: .2s;}
			.fadet-enter,.fadet-leave-to {opacity: 0;transform: scale(0.9);}
			//蒙层
			.showad {
				position: absolute;
				z-index: 1;
				top: 0;
				left: 0;
				width: 100%;
				height: calc(100vh);
				background: rgba(0, 0, 0, 1);
				opacity: 0.4;
			}
			.filterbox {
				position: absolute;
				width: 100%;
				background-color: #FFFFFF;
				z-index: 3;
				top: 0;
				box-sizing: border-box;
				.content {
					padding: 0rem 0.853333rem;
					.title {
						color: #333;
						font-size: 0.746666rem;
						padding: 0.4rem 0.853333rem 0.6rem;
					}
					.flexbox {
						justify-content: space-between;
						padding-bottom: 1rem;
						div {
							background: #F8F8F8;
							width: 4.213333rem;
							height: 1.6rem;
							line-height: 1.6rem;
							text-align: center;
							color: #333;
							font-size: 0.693333rem;
						}
					}
				}
				.btnbox {
					border-top: 1px solid #EBEBEB;
					.btn {
						text-align: center;
						height: 2.4rem;
						width: 50%;
						line-height: 2.4rem;
						font-size: 0.853333rem;
					}
					.left {
						color: #999;
						background: #F8F8F8;
					}
					.right {
						color: #fff;
						background: #01A5F0;
					}
				}
			}
	}
export default {
		data() {
			return {
				tkshow: true, //订单筛选
				currency: 0, //订单币种
			}
		},
		methods: {
			tklick() { 
				this.tkshow = !this.tkshow;
			},
		},
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值