From ffd407012d000d1a1b9d36c01646d2cdb22675b4 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期五, 11 十月 2024 15:12:21 +0800 Subject: [PATCH] 1.优惠券规则修改 2.已使用的优惠券样式修改 --- sub_pages/customer/coupon/coupon.scss | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 50 insertions(+), 8 deletions(-) diff --git a/sub_pages/customer/coupon/coupon.scss b/sub_pages/customer/coupon/coupon.scss index 09cf692..8752928 100644 --- a/sub_pages/customer/coupon/coupon.scss +++ b/sub_pages/customer/coupon/coupon.scss @@ -3,8 +3,11 @@ .coupont-item.expired { - filter: grayscale(100%); + filter: grayscale(95%); .img-has { + display: unset; + } + .img-out { display: unset; } } @@ -18,10 +21,32 @@ position: absolute; right: -20rpx; top: 20rpx; - background-image: url('../../../static/images/customer/coupon/coupon-has.png'); + background-image: url('@/static/images/customer/coupon/coupon-has.png'); background-size: 100% 100%; width: 264rpx; height: 264rpx; + } + .img-out { + display: none; + position: absolute; + right: 10rpx; + top: -20rpx; + background-image: url('@/static/images/customer/coupon/coupon-out.png'); + background-size: 100% 100%; + width: 196rpx; + height: 124rpx; + + } + + .img-used { + display: none; + position: absolute; + right: 10rpx; + top: -20rpx; + background-image: url('@/static/images/customer/coupon/coupon-used.png'); + background-size: 100% 100%; + width: 196rpx; + height: 124rpx; } .tip { @@ -40,12 +65,12 @@ .container { z-index: 2; - background-image: url('../../../static/images/customer/coupon/coupon-bg1.png'); + background-image: url('@/static/images/customer/coupon/coupon-bg1.png'); // width: 722rpx; padding: 16rpx 16rpx 16rpx 0rpx; height: 220rpx; position: relative; - + .info-price { width: 180rpx; padding-top: 40rpx; @@ -70,7 +95,7 @@ } .info { - padding-top: 40rpx; + padding-top: 30rpx; .title { font-weight: 600; @@ -78,7 +103,12 @@ color: #333333; line-height: 50rpx; text-align: left; - + position: relative; + .select-coupon{ + position: absolute; + right: 10rpx; + top: -6rpx; + } } .time { @@ -87,7 +117,7 @@ color: #666666; line-height: 40rpx; text-align: left; - margin-top: 40rpx; + margin-top: 20rpx; } } @@ -102,9 +132,18 @@ margin-top: 20rpx; .container { + .info { + + padding-top: 20rpx; + position: relative; + .title{ + + } .time { margin-top: 0rpx; + font-size:24rpx; + min-height: 44rpx; } .button { @@ -118,7 +157,10 @@ color: rgba(68, 119, 90, 1); line-height: 46rpx; text-align: center; - margin-top: 10rpx; + // margin-top: 10rpx; + position: absolute; + right: 10rpx; + bottom: 30rpx; } } } -- Gitblit v1.9.3