diff --git a/pages/index/index.vue b/pages/index/index.vue index 1f7e47e..308c4e7 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -39,9 +39,9 @@ - + - + { // uni.stopPullDownRefresh(); this.status = "loading"; @@ -311,18 +314,20 @@ if (this.page == 1) { this.tabLiveLists = res.data.data; this.status = "loadmore"; - } else if (res.data.length == 0 && this.page > 1) { + } else if (res.data.data.length == 0 && this.page > 1) { this.status = "nomore"; } else { - this.tabLiveLists = this.tabLiveLists.push(...res.data.data); + this.tabLiveLists = this.tabLiveLists.concat(res.data.data); + console.log(this.tabLiveLists) } - if (res.data.length == 0 && this.page > 1) { + if (res.data.data.length == 0 && this.page > 1) { } else { this.page++; } } else { this.status = "nomore" - } + } + }) }, // 轮播图 @@ -425,6 +430,7 @@ this.getArticlelist(); }else if(this.num == 1){ + console.log(123) this.tabLiveList() } // console.log(e);