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) {