From 197722adeb8091e85ea15eabf7f7b5992df85598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E5=BF=A0=E6=9E=97?= <170083662@qq.com> Date: Fri, 17 Jul 2026 04:01:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(orders):=20=E4=BF=AE=E5=A4=8D=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=E5=AE=8C=E6=88=90=E6=8C=89=E9=92=AE=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 调整确认完成按钮的注释缩进,提升代码可读性 - 保持确认完成按钮仅在已付款状态下显示 - 未改变按钮显示的实际逻辑行为 --- src/pages/store/orders/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/store/orders/index.tsx b/src/pages/store/orders/index.tsx index 9a54bae..8d5064d 100644 --- a/src/pages/store/orders/index.tsx +++ b/src/pages/store/orders/index.tsx @@ -135,14 +135,14 @@ function getOrderActions(order: ShopOrder): { label: string; type: OpType }[] { if (!order.payStatus && order.payType === 9 && order.orderStatus === 0) { actions.push({label: '确认收款', type: 'confirmPay'}) } - // 确认完成:仅在确认收款后显示(已付款才能确认完成) - if (order.payStatus) { - actions.push({label: '确认完成', type: 'complete'}) - } // 发货:确认收款后、且尚未发货(deliveryStatus<20)时显示 if (order.payStatus && (order.deliveryStatus == null || order.deliveryStatus < 20) && order.orderStatus !== 1) { actions.push({label: '发货', type: 'ship'}) } + // 确认完成:仅在确认收款后显示(已付款才能确认完成) + if (order.payStatus) { + actions.push({label: '确认完成', type: 'complete'}) + } return actions }