|
|
@ -47,7 +47,7 @@ |
|
|
|
<view |
|
|
|
v-for="e in classifyArr" |
|
|
|
:key="e.id" |
|
|
|
:class="['ot-item',e.id === curTabID?'active':'']" |
|
|
|
:class="['ot-item',e.id.toString() === curTabID.toString()?'active':'']" |
|
|
|
@click="tabChange(e.id)" |
|
|
|
>{{e.name}}</view> |
|
|
|
</view> |
|
|
@ -91,22 +91,22 @@ |
|
|
|
import { API } from '../../js/api'; |
|
|
|
import { mapState } from 'vuex'; |
|
|
|
const resClassify = [ // 预约tab |
|
|
|
{id:'',name:'全部'}, |
|
|
|
{id:1,name:'待使用'}, |
|
|
|
{id:2,name:'已使用'}, |
|
|
|
{id:3,name:'已失效'}, |
|
|
|
{id:4,name:'已退款'}, |
|
|
|
{id:'', name:'全部'}, |
|
|
|
{id:1, name:'待使用'}, |
|
|
|
{id:2, name:'已使用'}, |
|
|
|
{id:3, name:'已失效'}, |
|
|
|
{id:4, name:'已退款'}, |
|
|
|
]; |
|
|
|
const memClassify = [ // 会员tab |
|
|
|
{id:'',name:'全部'}, |
|
|
|
{id:1,name:'使用中'}, |
|
|
|
{id:0,name:'已失效'}, |
|
|
|
{id:'', name:'全部'}, |
|
|
|
{id:1, name:'使用中'}, |
|
|
|
{id:0, name:'已失效'}, |
|
|
|
] |
|
|
|
const intClassify = [ // 积分tab |
|
|
|
{id:'',name:'全部'}, |
|
|
|
{id:1,name:'待发货'}, |
|
|
|
{id:2,name:'已发货'}, |
|
|
|
{id:3,name:'已完成'}, |
|
|
|
{id:'', name:'全部'}, |
|
|
|
{id:1, name:'待发货'}, |
|
|
|
{id:2, name:'已发货'}, |
|
|
|
{id:3, name:'已完成'}, |
|
|
|
] |
|
|
|
export default { |
|
|
|
components: { |
|
|
@ -167,7 +167,7 @@ |
|
|
|
// 订单状态 |
|
|
|
// 预约 - 1 已支付待使用 / 2 已使用 / 3 已失效 / 4 已退款 |
|
|
|
// 会员 - 1 '使用中' / 0 '无效' |
|
|
|
// 积分 - 1已付款 / 2 已发货 / 3 已完成 / 4 取消兑换 |
|
|
|
// 积分 - 1已付款 / 2 已发货 / 3 已完成 / 4 取消兑换 |
|
|
|
status: curTabID, |
|
|
|
stadium_id: _curSelectedStore.id || '', |
|
|
|
page: ++page, |
|
|
@ -234,6 +234,7 @@ |
|
|
|
this.curTabID = ID; |
|
|
|
this.hideClassify(); |
|
|
|
this.$nextTick(this.refreshList); |
|
|
|
|
|
|
|
},300,300), |
|
|
|
storeChange(e){ |
|
|
|
let { value } = e.detail; |
|
|
|