feat: 查看物流展示

This commit is contained in:
2026-08-06 15:39:41 +08:00
parent 497babbc3d
commit b8bcd46f1d
5 changed files with 124 additions and 8 deletions
+7 -1
View File
@@ -103,7 +103,7 @@ export function formatOrderColor(order) {
if (order.status === 0) {
return 'info-color';
}
if (order.status === 10 || order.status === 20 || (order.status === 30 && !order.commentStatus)) {
if (order.status === 10 || order.status === 15 || order.status === 20 || (order.status === 30 && !order.commentStatus)) {
return 'warning-color';
}
if (order.status === 30 && order.commentStatus) {
@@ -125,6 +125,9 @@ export function formatOrderStatus(order) {
if (order.status == 10) {
return '待发货';
}
if (order.status == 15) {
return '部分发货';
}
if (order.status == 20) {
return '待收货';
}
@@ -162,6 +165,9 @@ export function formatOrderStatusDescription(order) {
if (order.status === 10) {
return '商家未发货,请耐心等待';
}
if (order.status === 15) {
return '商家部分发货,剩余商品请耐心等待';
}
if (order.status === 20) {
return '商家已发货,请耐心等待';
}