Files
template-10584/src/components/PaymentCountdown.scss
赵忠林 a15333da07 refactor(coupon): 重构优惠券页面布局和样式
-调整 CouponCard 和 CouponList 组件的样式,使其更加简洁和一致
- 优化页面布局,利用 flex 布局实现全屏布局
- 移除冗余代码和不必要的组件
- 调整空状态展示方式,增加查看我的优惠券按钮
2025-08-23 03:57:34 +08:00

161 lines
2.5 KiB
SCSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* 支付倒计时样式 */
/* 徽章模式样式 */
.payment-countdown-badge {
display: inline-block;
background: linear-gradient(135deg, #ff4757, #ff3838);
color: white;
padding: 4px 8px;
border-radius: 12px;
font-weight: 500;
box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
margin-left: 8px;
.countdown-text {
color: white;
font-weight: 500;
}
/* 紧急状态少于1小时 */
&.urgent {
background: linear-gradient(135deg, #ff6b6b, #ee5a52);
animation: pulse 2s infinite;
}
/* 非常紧急状态少于10分钟 */
&.critical {
background: linear-gradient(135deg, #ff4757, #c44569);
animation: flash 1s infinite;
}
/* 过期状态 */
&.expired {
background: linear-gradient(135deg, #95a5a6, #7f8c8d);
animation: none;
}
}
/* 纯文本模式样式 */
.payment-countdown-text {
color: #ff4757;
font-weight: 500;
/* 紧急状态 */
&.urgent {
color: #ff6b6b;
animation: textPulse 2s infinite;
}
/* 非常紧急状态 */
&.critical {
color: #ff4757;
animation: textFlash 1s infinite;
}
/* 过期状态 */
&.expired {
color: #95a5a6;
animation: none;
}
}
/* 动画效果 */
@keyframes pulse {
0% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.8;
transform: scale(1.02);
}
100% {
opacity: 1;
transform: scale(1);
}
}
@keyframes flash {
0% {
opacity: 1;
transform: scale(1);
}
25% {
opacity: 0.7;
transform: scale(1.05);
}
50% {
opacity: 1;
transform: scale(1);
}
75% {
opacity: 0.7;
transform: scale(1.05);
}
100% {
opacity: 1;
transform: scale(1);
}
}
@keyframes textPulse {
0% { opacity: 1; }
50% { opacity: 0.7; }
100% { opacity: 1; }
}
@keyframes textFlash {
0% { opacity: 1; }
25% { opacity: 0.5; }
50% { opacity: 1; }
75% { opacity: 0.5; }
100% { opacity: 1; }
}
/* 响应式调整 */
@media (max-width: 375px) {
.payment-countdown-badge {
padding: 3px 6px;
.countdown-text {
}
}
.payment-countdown-text {
}
}
/* 详情页专用样式 */
.order-detail-countdown {
.payment-countdown-badge {
padding: 6px 12px;
border-radius: 16px;
margin: 8px 0;
.countdown-text {
font-weight: 600;
}
}
.payment-countdown-text {
font-weight: 600;
}
}
/* 列表页专用样式 */
.order-list-countdown {
.payment-countdown-badge {
padding: 2px 6px;
border-radius: 10px;
margin-left: 6px;
.countdown-text {
}
}
.payment-countdown-text {
}
}