|
@@ -54,17 +54,17 @@
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<!-- 退款状态提示 -->
|
|
<!-- 退款状态提示 -->
|
|
|
- <view v-if="order.refundStatus === 'PENDING'" class="refund-status-notice pending">
|
|
|
|
|
- <text class="refund-notice-icon">⏳</text>
|
|
|
|
|
- <text class="refund-notice-text">退款申请已提交,正在审核中</text>
|
|
|
|
|
|
|
+ <view v-if="order.refundStatus === 'PENDING'" class="refund-notice pending">
|
|
|
|
|
+ <view class="notice-dot"></view>
|
|
|
|
|
+ <text class="notice-text">退款申请已提交,正在审核中</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-else-if="order.refundAmount > 0 && order.refundAmount < (order.paidAmount || order.totalAmount || 0)" class="refund-status-notice partial">
|
|
|
|
|
- <text class="refund-notice-icon">📋</text>
|
|
|
|
|
- <text class="refund-notice-text">已退款 ¥{{ order.refundAmount.toFixed(2) }},可继续申请退款</text>
|
|
|
|
|
|
|
+ <view v-else-if="order.refundAmount > 0 && order.refundAmount < (order.paidAmount || order.totalAmount || 0)" class="refund-notice partial">
|
|
|
|
|
+ <view class="notice-dot"></view>
|
|
|
|
|
+ <text class="notice-text">已退款 <text class="notice-amount">¥{{ order.refundAmount.toFixed(2) }}</text>,可继续申请退款</text>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-else-if="order.refundAmount > 0 && order.refundAmount >= (order.paidAmount || order.totalAmount || 0)" class="refund-status-notice full">
|
|
|
|
|
- <text class="refund-notice-icon">✅</text>
|
|
|
|
|
- <text class="refund-notice-text">已全额退款</text>
|
|
|
|
|
|
|
+ <view v-else-if="order.refundAmount > 0 && order.refundAmount >= (order.paidAmount || order.totalAmount || 0)" class="refund-notice full">
|
|
|
|
|
+ <view class="notice-dot"></view>
|
|
|
|
|
+ <text class="notice-text">已全额退款</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<view class="card-footer-actions">
|
|
<view class="card-footer-actions">
|
|
@@ -449,40 +449,59 @@ const viewVideo = (url: string) => {
|
|
|
font-weight: 700;
|
|
font-weight: 700;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.refund-status-notice {
|
|
|
|
|
|
|
+.refund-notice {
|
|
|
display: flex;
|
|
display: flex;
|
|
|
align-items: center;
|
|
align-items: center;
|
|
|
- gap: $spacing-sm;
|
|
|
|
|
|
|
+ gap: 12rpx;
|
|
|
margin: 0 $spacing-lg $spacing-xs;
|
|
margin: 0 $spacing-lg $spacing-xs;
|
|
|
padding: 20rpx $spacing-md;
|
|
padding: 20rpx $spacing-md;
|
|
|
border-radius: $radius-md;
|
|
border-radius: $radius-md;
|
|
|
font-size: 26rpx;
|
|
font-size: 26rpx;
|
|
|
|
|
+ line-height: 1.5;
|
|
|
|
|
+
|
|
|
|
|
+ .notice-dot {
|
|
|
|
|
+ width: 14rpx;
|
|
|
|
|
+ height: 14rpx;
|
|
|
|
|
+ border-radius: 50%;
|
|
|
|
|
+ flex-shrink: 0;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ .notice-amount {
|
|
|
|
|
+ font-weight: 700;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
&.pending {
|
|
&.pending {
|
|
|
- background-color: #fff7e6;
|
|
|
|
|
- border: 1rpx solid #ffd591;
|
|
|
|
|
- color: $color-warning;
|
|
|
|
|
|
|
+ background-color: $color-primary-bg;
|
|
|
|
|
+ color: $color-primary-dark;
|
|
|
|
|
+
|
|
|
|
|
+ .notice-dot {
|
|
|
|
|
+ background-color: $color-warning;
|
|
|
|
|
+ animation: notice-dot-pulse 1.5s ease-in-out infinite;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
&.partial {
|
|
&.partial {
|
|
|
- background-color: #e6f7ff;
|
|
|
|
|
- border: 1rpx solid #91d5ff;
|
|
|
|
|
- color: $color-info;
|
|
|
|
|
|
|
+ background-color: #E3F2FD;
|
|
|
|
|
+ color: #1565C0;
|
|
|
|
|
+
|
|
|
|
|
+ .notice-dot {
|
|
|
|
|
+ background-color: $color-info;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
&.full {
|
|
&.full {
|
|
|
- background-color: #f6ffed;
|
|
|
|
|
- border: 1rpx solid #b7eb8f;
|
|
|
|
|
- color: $color-success;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ background-color: #E8F5E9;
|
|
|
|
|
+ color: #2E7D32;
|
|
|
|
|
|
|
|
- .refund-notice-icon {
|
|
|
|
|
- font-size: 28rpx;
|
|
|
|
|
|
|
+ .notice-dot {
|
|
|
|
|
+ background-color: $color-success;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
- .refund-notice-text {
|
|
|
|
|
- flex: 1;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+@keyframes notice-dot-pulse {
|
|
|
|
|
+ 0%, 100% { opacity: 1; }
|
|
|
|
|
+ 50% { opacity: 0.4; }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.card-footer-actions {
|
|
.card-footer-actions {
|