From 00a157e7b59d38843bfadac435ce1cff7bcd1c30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Tue, 14 Apr 2026 11:39:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A2=E5=8D=95=E7=B1=BB=E5=9E=8B=E9=87=87?= =?UTF-8?q?=E7=94=A8int=E7=B1=BB=E5=9E=8B=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subpackages/mine/order-detail/order-detail.js | 11 ++++++----- subpackages/mine/order/order.js | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/subpackages/mine/order-detail/order-detail.js b/subpackages/mine/order-detail/order-detail.js index 34f51d0..2b90468 100644 --- a/subpackages/mine/order-detail/order-detail.js +++ b/subpackages/mine/order-detail/order-detail.js @@ -2,11 +2,12 @@ const auth = require('../../../utils/auth'); const { formatTime } = require('../../../utils/format'); const STATUS_MAP = { - Pending: { text: '待支付', key: 'pending' }, - Paid: { text: '交易成功', key: 'success' }, - Cancelled: { text: '已取消', key: 'cancelled' }, - Refunded: { text: '已退款', key: 'refunded' }, - Refunding: { text: '退款中', key: 'pending' } + 0: { text: '待支付', key: 'pending' }, + 1: { text: '已支付', key: 'success' }, + 2: { text: '已取消', key: 'cancelled' }, + 3: { text: '已退款', key: 'refunded' }, + 4: { text: '已发货', key: 'success' }, + 5: { text: '已完成', key: 'success' } }; const PAYMENT_METHOD_MAP = { diff --git a/subpackages/mine/order/order.js b/subpackages/mine/order/order.js index 930c84c..a682e07 100644 --- a/subpackages/mine/order/order.js +++ b/subpackages/mine/order/order.js @@ -5,11 +5,12 @@ const PAGE_SIZE = 10; // orderStatus 枚举 → 显示文案 & 样式 key const STATUS_MAP = { - Pending: { text: '待支付', key: 'pending' }, - Paid: { text: '交易成功', key: 'success' }, - Cancelled: { text: '已取消', key: 'cancelled' }, - Refunded: { text: '已退款', key: 'refunded' }, - Refunding: { text: '退款中', key: 'pending' } + 0: { text: '待支付', key: 'pending' }, + 1: { text: '已支付', key: 'success' }, + 2: { text: '已取消', key: 'cancelled' }, + 3: { text: '已退款', key: 'refunded' }, + 4: { text: '已发货', key: 'success' }, + 5: { text: '已完成', key: 'success' } }; function formatOrder(item) {