gdpaon
This commit is contained in:
@@ -328,7 +328,7 @@
|
||||
if (this.live_page == 1) {
|
||||
this.tabLiveLists = res.data.data;
|
||||
this.status = "loadmore";
|
||||
if (res.data.data.length < 6) {
|
||||
if (res.data.data.length < 4) {
|
||||
this.status = "nomore";
|
||||
}
|
||||
} else if (res.data.data.length == 0 && this.live_page > 1) {
|
||||
@@ -419,26 +419,17 @@
|
||||
uni.stopPullDownRefresh();
|
||||
this.status = "loading";
|
||||
if (res.errCode == 0) {
|
||||
uni.hideLoading();
|
||||
console.log(this.page,res.data.list.length);
|
||||
if (this.page == 1) {
|
||||
this.articleList = res.data.list;
|
||||
this.status = "loadmore";
|
||||
if (res.data.list.length < 4) {
|
||||
this.articleList = res.data.list;
|
||||
if (!res.data.length) {
|
||||
this.status = "nomore";
|
||||
}
|
||||
} else if (res.data.length == 0 && this.page > 1) {
|
||||
} else if (res.data.length == 0) {
|
||||
this.status = "nomore";
|
||||
} else {
|
||||
this.articleList = this.articleList.concat(res.data.list);
|
||||
}
|
||||
if (res.data.length == 0 && this.page > 1) {
|
||||
console.log(111);
|
||||
} else {
|
||||
this.page++;
|
||||
}
|
||||
} else {
|
||||
this.status = "nomore"
|
||||
this.page++;
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user