|
|
@@ -109,17 +109,17 @@ export default {
|
|
|
},
|
|
|
onPullDownRefresh () {
|
|
|
this.resetList();
|
|
|
- this._list().then(res => {
|
|
|
- uni.stopPullDownRefresh();
|
|
|
+ this.getOrderList().then(res => {
|
|
|
+ uni.stopPullDownRefresh()
|
|
|
});
|
|
|
},
|
|
|
onReachBottom () {
|
|
|
if (!this.list.finished) {
|
|
|
- this._list().then(res => {
|
|
|
- uni.stopPullDownRefresh();
|
|
|
+ this.getOrderList().then(res => {
|
|
|
+ uni.stopPullDownRefresh()
|
|
|
});
|
|
|
} else {
|
|
|
- uni.stopPullDownRefresh();
|
|
|
+ uni.stopPullDownRefresh()
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -140,20 +140,15 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
init () {
|
|
|
-
|
|
|
- this._list();
|
|
|
-
|
|
|
+ this.getOrderList();
|
|
|
},
|
|
|
- _list () {
|
|
|
+ getOrderList () {
|
|
|
let status = JSON.parse(JSON.stringify(this.tabIndex));
|
|
|
return getListB({
|
|
|
status: status,
|
|
|
search: "",
|
|
|
page: this.list.page
|
|
|
}).then(res => {
|
|
|
- console.log('1111')
|
|
|
- console.log(res)
|
|
|
- console.log('2222')
|
|
|
this.completes(res);
|
|
|
if (this.$util.isEmpty(res.data)){
|
|
|
return false
|
|
|
@@ -171,7 +166,7 @@ export default {
|
|
|
} else {
|
|
|
this.tabIndex = e.index;
|
|
|
this.resetList();
|
|
|
- this._list();
|
|
|
+ this.getOrderList();
|
|
|
}
|
|
|
},
|
|
|
// 免发货
|