|
|
|
@ -63,17 +63,15 @@ Page({ |
|
|
|
if (this.data.tabIndex == Number(detail.index)) { |
|
|
|
return |
|
|
|
} |
|
|
|
this.setData({ tabIndex: detail.index}) |
|
|
|
this.setData({ tabIndex: detail.index, requesting: false }) |
|
|
|
this.data.form.status = this.data.tabList[detail.index].status |
|
|
|
this.onRefreshList() |
|
|
|
}, |
|
|
|
onRefreshList: function () { |
|
|
|
this.setData({ |
|
|
|
orderList: [], |
|
|
|
['form.pageNum']: 1, |
|
|
|
loading: true, |
|
|
|
finished: false |
|
|
|
}) |
|
|
|
if (this.data.requesting) { |
|
|
|
return |
|
|
|
} |
|
|
|
this.setData({ orderList: [], ['form.pageNum']: 1, loading: true, finished: false }) |
|
|
|
this.data.lastTime = null |
|
|
|
this.fetchOrderList() |
|
|
|
}, |
|
|
|
|