订单类型采用int类型匹配
This commit is contained in:
parent
c3ec9298f7
commit
00a157e7b5
@ -2,11 +2,12 @@ const auth = require('../../../utils/auth');
|
|||||||
const { formatTime } = require('../../../utils/format');
|
const { formatTime } = require('../../../utils/format');
|
||||||
|
|
||||||
const STATUS_MAP = {
|
const STATUS_MAP = {
|
||||||
Pending: { text: '待支付', key: 'pending' },
|
0: { text: '待支付', key: 'pending' },
|
||||||
Paid: { text: '交易成功', key: 'success' },
|
1: { text: '已支付', key: 'success' },
|
||||||
Cancelled: { text: '已取消', key: 'cancelled' },
|
2: { text: '已取消', key: 'cancelled' },
|
||||||
Refunded: { text: '已退款', key: 'refunded' },
|
3: { text: '已退款', key: 'refunded' },
|
||||||
Refunding: { text: '退款中', key: 'pending' }
|
4: { text: '已发货', key: 'success' },
|
||||||
|
5: { text: '已完成', key: 'success' }
|
||||||
};
|
};
|
||||||
|
|
||||||
const PAYMENT_METHOD_MAP = {
|
const PAYMENT_METHOD_MAP = {
|
||||||
|
|||||||
@ -5,11 +5,12 @@ const PAGE_SIZE = 10;
|
|||||||
|
|
||||||
// orderStatus 枚举 → 显示文案 & 样式 key
|
// orderStatus 枚举 → 显示文案 & 样式 key
|
||||||
const STATUS_MAP = {
|
const STATUS_MAP = {
|
||||||
Pending: { text: '待支付', key: 'pending' },
|
0: { text: '待支付', key: 'pending' },
|
||||||
Paid: { text: '交易成功', key: 'success' },
|
1: { text: '已支付', key: 'success' },
|
||||||
Cancelled: { text: '已取消', key: 'cancelled' },
|
2: { text: '已取消', key: 'cancelled' },
|
||||||
Refunded: { text: '已退款', key: 'refunded' },
|
3: { text: '已退款', key: 'refunded' },
|
||||||
Refunding: { text: '退款中', key: 'pending' }
|
4: { text: '已发货', key: 'success' },
|
||||||
|
5: { text: '已完成', key: 'success' }
|
||||||
};
|
};
|
||||||
|
|
||||||
function formatOrder(item) {
|
function formatOrder(item) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user