gdpao2
This commit is contained in:
@@ -253,6 +253,7 @@
|
||||
fansList: [], // 关注的发现列表
|
||||
status: 'loadmore',
|
||||
status_1: 'loadmore',
|
||||
status_live: 'loadmore',
|
||||
iconType: 'circle',
|
||||
loadText: {
|
||||
loadmore: '轻轻上拉',
|
||||
@@ -325,18 +326,18 @@
|
||||
})
|
||||
this.$u.api.tabLiveList({page:this.live_page}).then((res) => {
|
||||
// uni.stopPullDownRefresh();
|
||||
this.status = "loading";
|
||||
this.status_live = "loading";
|
||||
console.log(res)
|
||||
if (res.errCode == 0) {
|
||||
uni.hideLoading();
|
||||
if (this.live_page == 1) {
|
||||
this.tabLiveLists = res.data.data;
|
||||
this.status = "loadmore";
|
||||
this.status_live = "loadmore";
|
||||
if (res.data.data.length < 4) {
|
||||
this.status = "nomore";
|
||||
this.status_live = "nomore";
|
||||
}
|
||||
} else if (res.data.data.length == 0 && this.live_page > 1) {
|
||||
this.status = "nomore";
|
||||
this.status_live = "nomore";
|
||||
} else {
|
||||
this.tabLiveLists = this.tabLiveLists.concat(res.data.data);
|
||||
console.log(this.tabLiveLists)
|
||||
@@ -346,7 +347,7 @@
|
||||
this.live_page++;
|
||||
}
|
||||
} else {
|
||||
this.status = "nomore"
|
||||
this.status_live = "nomore"
|
||||
}
|
||||
|
||||
})
|
||||
@@ -411,11 +412,6 @@
|
||||
},
|
||||
// 发现列表
|
||||
getArticlelist() {
|
||||
if (this.page > 1) {
|
||||
uni.showLoading({
|
||||
title: "loading..."
|
||||
})
|
||||
}
|
||||
this.$u.api.getArticlelist({
|
||||
page: this.page,
|
||||
is_video_img: 0, // 查询视频1 图文2 都查0
|
||||
|
||||
Reference in New Issue
Block a user