You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
huazhiyu/pages/MyCoupon/MyCoupon.scss

247 lines
4.5 KiB

1 year ago
.page {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: #ffffff;
}
/* 优惠券tab */
.coupon-tab {
position: fixed;
left: 0;
top: 0;
/* #ifdef H5 */
top: 88rpx;
/* #endif */
z-index: 10;
display: flex;
align-items: center;
width: 100%;
1 year ago
height: 80rpx;
background-color:rgb(35, 96, 48);
1 year ago
.tab {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 33%;
height: 100%;
1 year ago
1 year ago
text {
font-size: 26rpx;
1 year ago
color:#4D9A5E;
1 year ago
}
}
.action {
text {
1 year ago
color: #ffffff;
font-weight: bold;
1 year ago
}
.line {
position: absolute;
left: 50%;
1 year ago
bottom: 2rpx;
1 year ago
width: 30%;
height: 6rpx;
1 year ago
background: #ffffff;
1 year ago
transform: translate(-50%, 0);
}
}
}
/* 优惠券 */
.coupon-list {
padding: 20rpx 4%;
margin: 120rpx auto 0;
background-color: #ffffff;
.list {
position: relative;
width: 100%;
min-height: 200rpx;
box-shadow: 0 0 14rpx rgba(0, 0, 0, 0.1);
border-radius: 6rpx;
margin-bottom: 20rpx;
overflow: hidden;
1 year ago
background: url('../../static/image/coupon-bg.png');
background-size: cover;
1 year ago
.list-data {
display: flex;
align-items: center;
width: 100%;
height: 200rpx;
.coupon-price {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 30%;
height: 100%;
1 year ago
// background-color: $base;
1 year ago
.discounts {
display: flex;
justify-content: center;
1 year ago
align-items: center;
1 year ago
width: 100%;
.min {
1 year ago
color: #343734;
1 year ago
font-size: 32rpx;
font-weight: bold;
}
.max {
1 year ago
font-size: 56rpx;
color: #343734;
1 year ago
font-weight: bold;
}
}
.full-reduction {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 60rpx;
text {
1 year ago
font-size: 26rpx;
color: #343734;
1 year ago
}
}
1 year ago
// .jag {
// position: absolute;
// top: 0;
// left: -6rpx;
// width: 6px;
// height: 100%;
// background-size: 10px 6px;
// background-color: #fff;
// background-position: 100% 35%;
// background-image: linear-gradient(-45deg, $base 25%, transparent 25%, transparent), linear-gradient(-135deg, $base 25%, transparent 25%, transparent),
// linear-gradient(-45deg, transparent 75%, $base 75%), linear-gradient(-135deg, transparent 75%, $base 75%);
// }
1 year ago
}
.coupon-info {
width: 70%;
height: 90%;
padding: 0 4%;
1 year ago
display: flex;
flex-direction: column;
justify-content: space-around;
1 year ago
.info-title {
1 year ago
// display: flex;
1 year ago
width: 100%;
height: 60rpx;
.tag {
1 year ago
font-size: 34rpx;
color: #343734;
font-weight: 700;
margin-bottom: 16rpx;
1 year ago
}
1 year ago
1 year ago
}
.date-get {
1 year ago
1 year ago
width: 100%;
height: 80rpx;
1 year ago
.title {
1 year ago
text {
font-size: 24rpx;
1 year ago
color: #6e4936;
1 year ago
}
}
1 year ago
.date {
display: flex;
align-items: center;
1 year ago
text {
font-size: 24rpx;
1 year ago
color: #6e4936;
1 year ago
}
}
1 year ago
1 year ago
}
1 year ago
1 year ago
}
}
.coupon-lose{
.coupon-price{
background-color: #c0c0c0;
.jag {
position: absolute;
top: 0;
left: -6rpx;
width: 6px;
height: 100%;
background-size: 10px 6px;
background-color: #fff;
background-position: 100% 35%;
background-image: linear-gradient(-45deg, #c0c0c0 25%, transparent 25%, transparent), linear-gradient(-135deg, #c0c0c0 25%, transparent 25%, transparent),
linear-gradient(-45deg, transparent 75%, #c0c0c0 75%), linear-gradient(-135deg, transparent 75%, #c0c0c0 75%);
}
}
.coupon-info{
.info-title{
.tag{
text{
background-color: #c0c0c0;
}
}
.title{
text{
color: #c0c0c0;
}
}
}
.date-get{
.date{
text{
color: #c0c0c0;
}
}
}
}
}
.describe{
display: flex;
align-items: center;
padding: 0 4%;
height: 60rpx;
background-color: #FFFFFF;
box-shadow: 0 -10rpx 10rpx #F5F5F5;
text{
color: #CCCCCC;
font-size: 24rpx;
}
}
.use-status {
position: absolute;
right: -20rpx;
top: -25rpx;
z-index: 10;
width: 100rpx;
height: 100rpx;
border: 2rpx solid #c0c0c0;
border-radius: 100%;
text {
display: inline-block;
color: #c0c0c0;
font-size: 24rpx;
transform: rotate(45deg);
margin-top: 40rpx;
}
}
}
}
1 year ago
.empty{
text-align: center;
width:80%;
margin:0 auto;
image{
width:400rpx;
height:auto;
}
.emptyText{
text-align: center;
}
}