优惠券加分页

This commit is contained in:
2020-08-19 17:55:58 +08:00
parent 1e94eb864f
commit 627cfc4aa0
3 changed files with 39 additions and 16 deletions

View File

@@ -293,8 +293,12 @@ export default {
this.loadStatu = "loading";
this.page++;
this.getOrderList({ load: 'loadmore' }).then(length => {
this.loadStatu = "nomore";
if(length == 0) this.page--;
if(length == 0) {
this.page--;
this.loadStatu = "nomore";
} else {
this.loadStatu = "loadmore";
}
}).catch(() => {
this.loadStatu = "nomore";
this.page--;