diff --git a/src/pages/order/list.vue b/src/pages/order/list.vue index ba512e9..581cf48 100644 --- a/src/pages/order/list.vue +++ b/src/pages/order/list.vue @@ -14,10 +14,9 @@ const orderLs = ref([]); onLoad(() => { getOrderLs({}); }); + onReachBottom(()=>{ - getOrderLs({ - page: ++loadPage - }); + getOrderLs({ page: ++loadPage }); }) @@ -42,6 +41,20 @@ function getOrderLs({ }) } +// 订单状态 +function ZH_status(e){ + if(e?.pay_status === 3&&e?.is_active_release)return '已失效*'; + return e.pay_status_text ? e.pay_status_text : order_zh_status(e?.pay_status); +} + +// 预约,场次/场时订单状态 +function order_zh_status(status){ + if(status == undefined || status == '' || status == null)return '-' + if(status == -1)return '已失效'; + if(status == 8)return '使用中'; // 20210521 新增状态 + return ['未支付','待使用','已使用','已失效','已退款'][status] || ''; +} +