完善设置页面UI设计
This commit is contained in:
@@ -136,9 +136,12 @@ export function getOrderDisplayStatus(order: OrderStatusSource): string {
|
||||
if (displayState == 'pending_pay') {
|
||||
return 'pending'
|
||||
}
|
||||
if (displayState == 'cancelled' || displayState == 'expired') {
|
||||
if (displayState == 'cancelled') {
|
||||
return 'cancelled'
|
||||
}
|
||||
if (displayState == 'expired') {
|
||||
return 'expired'
|
||||
}
|
||||
if (displayState == 'processing') {
|
||||
return 'shipping'
|
||||
}
|
||||
@@ -169,4 +172,4 @@ export function formatCountdownHMS(seconds: number): string {
|
||||
const minutes = Math.floor((safeSeconds % 3600) / 60)
|
||||
const remainSeconds = safeSeconds % 60
|
||||
return pad2(hours) + ':' + pad2(minutes) + ':' + pad2(remainSeconds)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user