feat(orders): 前端支持部分退款状态展示(warning样式+订单tab)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user