From 9ec425b781d9cf1744fee56747c3c85a27ae59ab Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Tue, 26 Jul 2022 17:56:48 +0800 Subject: [PATCH] fix value card --- src/components/order_list/value_card/value_card.vue | 6 ++---- src/pages/order_list/order_list.vue | 5 +++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/components/order_list/value_card/value_card.vue b/src/components/order_list/value_card/value_card.vue index f5d281f..0ac05a9 100644 --- a/src/components/order_list/value_card/value_card.vue +++ b/src/components/order_list/value_card/value_card.vue @@ -39,10 +39,8 @@ export default { methods: { getStatus(status){ let _obj = { - 0: '待激活', - 1: '使用中', - 2: '已失效', - 3: '已退卡', + 1: '已付款', + 4: '已退卡', } return _obj[status] || '-' }, diff --git a/src/pages/order_list/order_list.vue b/src/pages/order_list/order_list.vue index 2e8a699..5305095 100644 --- a/src/pages/order_list/order_list.vue +++ b/src/pages/order_list/order_list.vue @@ -576,8 +576,9 @@ return [ {id: '', name: '全部'}, {id: 1, name: '已付款'}, {id: 2, name: '已完成'}, {id: 4, name: '已退款'}, ]; case 12: // 约玩tab 全部/计费中/已完成/已退款 [空字符/0/1/4] return [ {id: -1, name: '全部'}, {id: 0, name: '待付款'}, {id: 1, name: '进行中'}, {id: 2, name: '已结束'}, {id: 3, name: '已退款'}, ]; - case 18: // 储值卡 (0待激活1使用中2已失效3已退卡全部空字符) ---> 20220725 改为储值卡管理 - return [ {id: '', name: '全部'}, {id: 0, name: '待激活'}, {id: 1, name: '使用中'}, {id: 2, name: '已失效'}, {id: 3, name: '已退卡'},]; + case 18: // 储值卡 (0待激活1使用中2已失效3已退卡全部空字符) ---> 20220725 改为储值卡管理 状态 空全部1已付款4已退款 + // return [ {id: '', name: '全部'}, {id: 0, name: '待激活'}, {id: 1, name: '使用中'}, {id: 2, name: '已失效'}, {id: 3, name: '已退卡'},]; + return [ {id: '', name: '全部'}, {id: 1, name: '已付款'}, {id: 4, name: '已退款'},]; case 15: // 高光时刻订单 (全部 1,2,4 生效中 1 已失效3 已退款 4 对应返回的pay_status) return [ {id: '1,2,4', name: '全部'}, {id: 1, name: '生效中'}, {id: 3, name: '已失效'}, {id: 4, name: '已退款'}]; case 16: // 租球机订单 (status 全部 1,2,4 租用中 1 已完成 2 已退款 4)