|
|
@@ -103,7 +103,7 @@ export default {
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
this.resetList();
|
|
|
- this._list()
|
|
|
+ this.getCustomList()
|
|
|
uni.stopPullDownRefresh()
|
|
|
},
|
|
|
onReachBottom() {
|
|
|
@@ -112,12 +112,12 @@ export default {
|
|
|
this.list.finished = true
|
|
|
return;
|
|
|
}
|
|
|
- this._list().then((res) => {
|
|
|
+ this.getCustomList().then((res) => {
|
|
|
uni.stopPullDownRefresh();
|
|
|
}).catch(err => {
|
|
|
this.$msg('网络异常,重新加载');
|
|
|
- this.resetList();
|
|
|
- this._list()
|
|
|
+ this.resetList()
|
|
|
+ this.getCustomList()
|
|
|
uni.stopPullDownRefresh()
|
|
|
})
|
|
|
} else {
|
|
|
@@ -125,10 +125,13 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onLoad(option) {
|
|
|
- this._list();
|
|
|
+ this.getCustomList()
|
|
|
},
|
|
|
onShow(){
|
|
|
- uni.removeStorageSync('newClient');
|
|
|
+ uni.removeStorageSync('newClient')
|
|
|
+
|
|
|
+ this.resetList()
|
|
|
+ this.getCustomList()
|
|
|
},
|
|
|
methods: {
|
|
|
init(){
|
|
|
@@ -147,9 +150,9 @@ export default {
|
|
|
searchFn(e) {
|
|
|
this.resetList();
|
|
|
this.seekVal = e;
|
|
|
- this._list();
|
|
|
+ this.getCustomList();
|
|
|
},
|
|
|
- _list() {
|
|
|
+ getCustomList() {
|
|
|
return getList({
|
|
|
search: "",
|
|
|
type:this.tabIndex,
|
|
|
@@ -164,7 +167,7 @@ export default {
|
|
|
}).catch(err => {
|
|
|
this.$msg('网络异常,重新加载');
|
|
|
this.resetList();
|
|
|
- this._list()
|
|
|
+ this.getCustomList()
|
|
|
uni.stopPullDownRefresh()
|
|
|
})
|
|
|
},
|
|
|
@@ -174,7 +177,7 @@ export default {
|
|
|
}
|
|
|
this.tabIndex = e.index;
|
|
|
this.resetList();
|
|
|
- this._list();
|
|
|
+ this.getCustomList();
|
|
|
},
|
|
|
},
|
|
|
};
|