|
|
@@ -113,12 +113,12 @@ export default {
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
this.resetList();
|
|
|
- this._list()
|
|
|
+ this.getOrderList()
|
|
|
uni.stopPullDownRefresh()
|
|
|
},
|
|
|
onReachBottom() {
|
|
|
if (!this.list.finished) {
|
|
|
- this._list().then((res) => {
|
|
|
+ this.getOrderList().then((res) => {
|
|
|
uni.stopPullDownRefresh();
|
|
|
});
|
|
|
} else {
|
|
|
@@ -127,27 +127,24 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
},
|
|
|
- onLoad(option) {
|
|
|
+ onLoad() {
|
|
|
let tabIndex = uni.getStorageSync("switchTabQuery") || null;
|
|
|
if (tabIndex) {
|
|
|
uni.removeStorageSync("switchTabQuery");
|
|
|
this.tabIndex = parseInt(tabIndex.tabIndex);
|
|
|
}
|
|
|
- this._list();
|
|
|
-
|
|
|
// #ifdef APP-PLUS
|
|
|
if(this.$util.isScanEnv()){
|
|
|
this.isScanEnv = true
|
|
|
}
|
|
|
//#endif
|
|
|
-
|
|
|
},
|
|
|
onShow() {
|
|
|
-
|
|
|
+ this.init()
|
|
|
},
|
|
|
methods: {
|
|
|
init(){
|
|
|
-
|
|
|
+ this.getOrderList()
|
|
|
},
|
|
|
printOrder(item){
|
|
|
let that = this
|
|
|
@@ -185,14 +182,14 @@ export default {
|
|
|
this.startTime = val.startTime
|
|
|
this.endTime = val.endTime
|
|
|
this.resetList();
|
|
|
- this._list();
|
|
|
+ this.getOrderList();
|
|
|
},
|
|
|
searchFn(e) {
|
|
|
this.resetList();
|
|
|
this.seekVal = e;
|
|
|
- this._list()
|
|
|
+ this.getOrderList()
|
|
|
},
|
|
|
- _list() {
|
|
|
+ getOrderList() {
|
|
|
return getListB({
|
|
|
searchTime: this.searchTime,
|
|
|
startTime: this.startTime,
|
|
|
@@ -216,7 +213,7 @@ export default {
|
|
|
} else {
|
|
|
this.tabIndex = e.index;
|
|
|
this.resetList();
|
|
|
- this._list();
|
|
|
+ this.getOrderList();
|
|
|
}
|
|
|
},
|
|
|
// 关闭弹窗
|