| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- export const navTabTypeList = [
- { name: '全部', value: 'all' },
- { name: '星闪豹', value: 'XSB' },
- { name: '充电', value: 'CD' },
- { name: '电影演出', value: 'DYY' },
- { name: '视频权益', value: 'VIDEO' },
- { name: '大牌点餐', value: 'SHOP' },
- ]
- export const orderStatusList = [
- { name: '全部', value: 'all' },
- { name: '待支付', value: 'paddingPay' },
- { name: '进行中', value: 'ing' },
- { name: '已完成', value: 'completed' },
- { name: '已取消', value: 'cancel' },
- ]
- /**
- * 统一待支付状态支付按钮逻辑处理
- * @param order
- */
- export function handleCommonOrderPay(order: any) {
- return order
- }
- /**
- * 统一取消订单逻辑处理
- * @param order
- */
- export function handleCommonCancelOrder(order: any) {
- return order
- }
- /**
- * 统一充电订单状态处理
- * @param order
- */
- export function chargeOrderStatus(status: any) {
- const statusObj = { icon: '', text: '', color: '' }
- switch (status) {
- case 0:
- statusObj.icon = 'charge-order-settlement'
- statusObj.text = '待充电'
- statusObj.color = '#FFA500'
- break
- case 1:
- statusObj.icon = 'charge-order-ing'
- statusObj.text = '充电中'
- statusObj.color = '#4EDC86'
- break
- case 2:
- statusObj.icon = 'charge-order-settlement'
- statusObj.text = '结算中'
- statusObj.color = '#3EB6F8'
- break
- case 3:
- statusObj.icon = 'charge-order-settled'
- statusObj.text = '已完成'
- statusObj.color = '#AAAAAA'
- break
- }
- return statusObj
- }
|