Files
glt-taro/src/components/CouponCard.scss
赵忠林 87b83b4d2c style(components): 优惠券相关组件样式调整
- 调整了 CouponCard、CouponList 和 orderConfirm 组件中的字体大小、间距等样式
- 优化了标题、金额、条件等元素的视觉效果
- 统一了按钮和状态文本的样式
-调整了部分布局和对齐方式
2025-08-11 18:25:26 +08:00

197 lines
3.7 KiB
SCSS

.coupon-card {
position: relative;
display: flex;
width: 100%;
height: 100px;
margin-bottom: 12px;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
background: #fff;
&.disabled {
opacity: 0.6;
}
.coupon-left {
flex-shrink: 0;
width: 100px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #fff;
position: relative;
&.theme-red {
background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}
&.theme-orange {
background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}
&.theme-blue {
background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}
&.theme-purple {
background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}
&.theme-green {
background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}
.amount-wrapper {
display: flex;
align-items: baseline;
margin-bottom: 8px;
.currency {
font-size: 24px;
font-weight: 500;
margin-right: 2px;
}
.amount {
font-size: 30px;
font-weight: bold;
line-height: 1;
}
}
.condition {
font-size: 24px;
opacity: 0.9;
margin-top: 2px;
}
}
.coupon-divider {
flex-shrink: 0;
width: 2px;
position: relative;
background: #f5f5f5;
.divider-line {
width: 100%;
height: 100%;
background: repeating-linear-gradient(
to bottom,
transparent 0px,
transparent 4px,
#ddd 4px,
#ddd 8px
);
}
.divider-circle-top {
position: absolute;
width: 16px;
height: 16px;
background: #f5f5f5;
border-radius: 50%;
top: -8px;
left: -7px;
}
.divider-circle-bottom {
position: absolute;
width: 16px;
height: 16px;
background: #f5f5f5;
border-radius: 50%;
bottom: -8px;
left: -7px;
}
}
.coupon-right {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 12px;
.coupon-info {
flex: 1;
.coupon-title {
font-size: 28px;
font-weight: 600;
color: #1f2937;
margin-bottom: 4px;
}
.coupon-validity {
font-size: 24px;
color: #6b7280;
}
}
.coupon-actions {
display: flex;
justify-content: flex-end;
align-items: center;
.coupon-btn {
min-width: 48px;
height: 24px;
border-radius: 12px;
font-size: 24px;
border: none;
color: #fff;
&.theme-red {
background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
}
&.theme-orange {
background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
}
&.theme-blue {
background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}
&.theme-purple {
background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
}
&.theme-green {
background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}
}
.status-text {
font-size: 24px;
color: #6b7280;
padding: 4px 8px;
}
}
}
.status-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.1);
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
.status-badge {
background: rgba(0, 0, 0, 0.6);
color: #fff;
padding: 4px 12px;
border-radius: 12px;
font-size: 28px;
font-weight: 500;
}
}
}