Compare commits

..

1 Commits

Author SHA1 Message Date
gqt e78101f690 feat(orders): 前端支持部分退款状态展示(warning样式+订单tab) 2026-08-14 17:43:48 +08:00
2 changed files with 7 additions and 1 deletions
@@ -1,6 +1,6 @@
export const statusBadgeClass = (status) => {
if (['paid', 'booked', 'available', 'success', 'published'].includes(status)) return 'success'
if (['pending_pay', 'pending'].includes(status)) return 'warning'
if (['pending_pay', 'pending', 'part_refunded'].includes(status)) return 'warning'
if (['cancelled', 'closed', 'expired', 'refunded'].includes(status)) return 'danger'
return 'muted'
}
@@ -43,6 +43,7 @@ const statusOptions = [
{ label: '全部', value: '' },
{ label: '待支付', value: 'pending_pay' },
{ label: '已支付', value: 'paid' },
{ label: '部分退款', value: 'part_refunded' },
{ label: '已关闭', value: 'closed' },
{ label: '已退款', value: 'refunded' }
]
@@ -192,6 +193,11 @@ loadOrders(true)
color: $color-warning;
}
.status-tag.part_refunded {
background: $color-warning-light;
color: $color-warning;
}
.status-tag.closed {
background: $bg-color-hover;
color: $text-color-muted;