247 lines
3.9 KiB
Plaintext
247 lines
3.9 KiB
Plaintext
.publicHeader {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 9;
|
|
width: 100%;
|
|
height: 90px;
|
|
display: flex;
|
|
line-height: 44px;
|
|
background: #fff;
|
|
text-align: center;
|
|
}
|
|
|
|
.publicHeader-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
position: absolute;
|
|
left: 20rpx;
|
|
z-index: 9;
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.publicHeader-title {
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 优惠券 */
|
|
.couponTab {
|
|
display: flex;
|
|
background: #fff;
|
|
position: fixed;
|
|
width: 100%;
|
|
left: 0;
|
|
height: 100rpx;
|
|
top: 90px;
|
|
z-index: 99;
|
|
}
|
|
|
|
.couponTab-label {
|
|
flex: 3;
|
|
text-align: center;
|
|
position: relative;
|
|
padding: 10rpx 0 0;
|
|
font-size: 26rpx;
|
|
}
|
|
|
|
.couponTab-label::after {
|
|
position: absolute;
|
|
content: '';
|
|
left: calc(50% - 20rpx);
|
|
bottom: 0;
|
|
width: 40rpx;
|
|
background: transparent;
|
|
height: 6rpx;
|
|
border-radius: 30%;
|
|
}
|
|
|
|
.couponTab-label.active {
|
|
color: #f57e32
|
|
}
|
|
|
|
.couponTab-label.active::after {
|
|
background: #f57e32
|
|
}
|
|
|
|
.couponTab-label view {
|
|
font-size: 24rpx;
|
|
margin-top: 6rpx;
|
|
}
|
|
|
|
|
|
/* 列表 */
|
|
.coupon {
|
|
margin-top: 170px;
|
|
}
|
|
|
|
.couponCont {
|
|
margin: 0 20rpx 20rpx;
|
|
width: calc(100% - 40rpx);
|
|
border-radius: 10rpx;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.couponList {
|
|
background: #fff;
|
|
width: 100%;
|
|
height: 160rpx;
|
|
position: relative;
|
|
}
|
|
|
|
.couponList-left {
|
|
position: relative;
|
|
left: 0;
|
|
top: 0;
|
|
width: 160rpx;
|
|
height: 160rpx;
|
|
}
|
|
|
|
.couponList-img {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 1;
|
|
}
|
|
|
|
.couponList-icon {
|
|
position: absolute;
|
|
left: calc(50% - 56rpx);
|
|
top: calc(50% - 50rpx);
|
|
z-index: 2;
|
|
width: 100rpx;
|
|
height: 100rpx;
|
|
background: #fff;
|
|
border-radius: 50%;
|
|
padding: 20rpx;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.couponList-icon image {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.couponList-center {
|
|
position: absolute;
|
|
left: 180rpx;
|
|
top: 35rpx;
|
|
width: calc(100% - 330rpx);
|
|
}
|
|
|
|
.couponList-center.active {
|
|
top: 15rpx;
|
|
}
|
|
|
|
.couponList-title {
|
|
margin-bottom: 10rpx;
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.couponList-time,
|
|
.couponList-used {
|
|
font-size: 24rpx;
|
|
color: grey;
|
|
}
|
|
|
|
.couponList-used {
|
|
margin-top: 14rpx;
|
|
color: grey;
|
|
}
|
|
|
|
.couponList-right {
|
|
background: #ee8e44;
|
|
color: #fff;
|
|
border-radius: 30rpx;
|
|
width: 110rpx;
|
|
text-align: center;
|
|
height: 50rpx;
|
|
line-height: 50rpx;
|
|
position: absolute;
|
|
right: 20rpx;
|
|
top: 55rpx;
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
.couponList-right.active {
|
|
background: #dddddd;
|
|
}
|
|
|
|
.couponMore {
|
|
font-size: 28rpx;
|
|
color: #686868;
|
|
position: relative;
|
|
height: 120rpx;
|
|
}
|
|
|
|
.couponMore::after,
|
|
.couponMore::before {
|
|
position: absolute;
|
|
content: '';
|
|
height: 20rpx;
|
|
border-radius: 10rpx;
|
|
background: #fff;
|
|
box-shadow: 0 0 20rpx rgba(0, 0, 0, .1);
|
|
z-index: 1;
|
|
height: 30rpx;
|
|
}
|
|
|
|
.couponMore::after {
|
|
width: calc(100% - 40rpx);
|
|
top: 70rpx;
|
|
left: 20rpx;
|
|
}
|
|
|
|
.couponMore::before {
|
|
width: calc(100% - 80rpx);
|
|
top: 90rpx;
|
|
left: 40rpx;
|
|
}
|
|
|
|
.couponMore-text {
|
|
display: flex;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
z-index: 99;
|
|
height: 80rpx;
|
|
border-radius: 0 0 10rpx 10rpx;
|
|
line-height: 80rpx;
|
|
padding: 0 30rpx;
|
|
box-sizing: border-box;
|
|
background: #fff;
|
|
box-shadow: 0 0 10rpx rgba(0, 0, 0, .1);
|
|
}
|
|
|
|
.couponMore-title {
|
|
flex: 1;
|
|
}
|
|
|
|
.couponMore-arrow {
|
|
width: 28rpx;
|
|
height: 28rpx;
|
|
margin-top: 26rpx;
|
|
}
|
|
|
|
.couponCont.active .couponList-img,
|
|
.couponCont.active .couponList-icon {
|
|
-webkit-filter: grayscale(100%);
|
|
-moz-filter: grayscale(100%);
|
|
-ms-filter: grayscale(100%);
|
|
-o-filter: grayscale(100%);
|
|
filter: grayscale(100%);
|
|
filter: gray;
|
|
}
|
|
|
|
.coupoTips {
|
|
position: absolute;
|
|
top: 22rpx;
|
|
right: 20rpx;
|
|
z-index: 99;
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
} |