|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="order-page">
|
|
|
- <app-tabs :tabs="tabs" :isFixed="true" :currentTab="tabIndex" @change="change" itemWidth="20%"/>
|
|
|
+ <app-tabs :tabs="tabs" :isFixed="true" :currentTab="tabIndex" @change="change" itemWidth="25%"/>
|
|
|
|
|
|
<view style="margin-left:60upx;margin-top:110upx;padding-bottom:30upx;position: relative;">
|
|
|
<DateSelect @selectDateFn="selectDateFn" defaultShowName='时间' />
|
|
|
@@ -42,27 +42,22 @@ export default {
|
|
|
{
|
|
|
name: "全部",
|
|
|
value: 0,
|
|
|
- key: '0'
|
|
|
+ status: '-1'
|
|
|
},
|
|
|
{
|
|
|
name: "待付款",
|
|
|
value: 0,
|
|
|
- key: '1'
|
|
|
+ status: '0'
|
|
|
},
|
|
|
{
|
|
|
- name: "待发货",
|
|
|
+ name: "已充值",
|
|
|
value: 0,
|
|
|
- key: '2'
|
|
|
+ status: '1'
|
|
|
},
|
|
|
{
|
|
|
- name: "待收货",
|
|
|
+ name: "已取消",
|
|
|
value: 0,
|
|
|
- key: '3'
|
|
|
- },
|
|
|
- {
|
|
|
- name: "已完成",
|
|
|
- value: 0,
|
|
|
- key: '4'
|
|
|
+ status: '2'
|
|
|
}
|
|
|
],
|
|
|
list: {
|
|
|
@@ -70,7 +65,7 @@ export default {
|
|
|
},
|
|
|
supplierList: [],
|
|
|
tabIndex: 0,
|
|
|
- status: '0',
|
|
|
+ status: '-1',
|
|
|
refreshPage:0,
|
|
|
searchContent:'',
|
|
|
searchTime:'',
|
|
|
@@ -127,10 +122,10 @@ export default {
|
|
|
this.resetList();
|
|
|
this.list.finished = true;
|
|
|
this.tabIndex = e.index;
|
|
|
- this.status = e.item.key;
|
|
|
+ this.status = this.tabs[this.tabIndex].status,
|
|
|
this.getMyRecharge().then(() => {
|
|
|
this.list.finished = false;
|
|
|
- });
|
|
|
+ })
|
|
|
}
|
|
|
},
|
|
|
init() {
|