|
@@ -11,11 +11,11 @@
|
|
|
data(){
|
|
|
return {
|
|
|
pages: [
|
|
|
- {isUpdate: true, title: "全部", index: 0, state: 0},
|
|
|
- {isUpdate: true, title: "待付款", index: 1, state: 10},
|
|
|
- {isUpdate: true, title: "待发货", index: 2, state: 20},
|
|
|
- {isUpdate: true, title: "待收货", index: 3, state: 30},
|
|
|
- {isUpdate: true, title: "已收货", index: 4, state: 40},
|
|
|
+ { title: "全部", index: 0, state: 0},
|
|
|
+ { title: "待付款", index: 1, state: 10},
|
|
|
+ { title: "待发货", index: 2, state: 20},
|
|
|
+ { title: "待收货", index: 3, state: 30},
|
|
|
+ { title: "已收货", index: 4, state: 40},
|
|
|
],
|
|
|
selected_page: -1
|
|
|
}
|
|
@@ -24,7 +24,6 @@
|
|
|
let _self = this;
|
|
|
let nativeClickHandler = (index = 0) => {
|
|
|
_self.selected_page = index;
|
|
|
- _self.pages[index].isUpdate = true;
|
|
|
};
|
|
|
//tab
|
|
|
const tabs = this.pages.map((item, index) => {
|
|
@@ -33,7 +32,6 @@
|
|
|
})
|
|
|
//pages
|
|
|
const lists = this.pages.map((item, index) => {
|
|
|
- item.isUpdate=index==this.current_index;
|
|
|
return <OrderList page={item} class={{order_hide: this.current_index !== index}}/>
|
|
|
})
|
|
|
|