This commit is contained in:
Gdpao
2020-08-19 19:24:14 +08:00
parent 48f50dbc89
commit 69760e6377
15 changed files with 18 additions and 15 deletions

View File

@@ -39,7 +39,7 @@
</scroll-view>
</swiper-item>
<swiper-item>
<scroll-view style="width:100%;height:100%" scroll-y="true" @scrolltolower="swiperBottom">
<scroll-view style="width:100%;height:100%" scroll-y="true" @scrolltolower="swiperBottomLive(e)">
<view class="box">
<u-swiper mode="dot" :list="zhiboImageSwiper" name="adv_code" @click="clickSImage($event, 2)"></u-swiper>
<view class="list">
@@ -269,9 +269,6 @@
darenItem
},
onShow() {
this.page = 1;
if (this.page != 1) {
}
console.log(this.imService.status)
if(!this.imService.status && this.$store.state.hasLogin){
const user = uni.getStorageSync('user_info');
@@ -416,7 +413,7 @@
dianji(a) {
// console.log(a);
if (a.type == "change") {
this.num = a.detail.current
this.num = a.detail.current;
} else {
this.num = a;
}
@@ -426,16 +423,18 @@
if (this.num == 0) {
this.page = 1;
this.articleList = [];
this.status = "loadmore";
this.status = "nomore";
this.getArticlelist();
this.getSwiper();
} else if (this.num == 1) {
this.live_page = 1;
this.status_live = "nomore";
this.getZhiBoSwiper(); // 直播轮播
this.tabLiveList();
} else if (this.num == 2) {
this.follow_page = 0;
this.fansList = [];
this.status_1 = "nomore";
if (this.hasLogin) {
this.getFollowList(); // 关注列表
}
@@ -462,9 +461,9 @@
} else {
this.articleList = this.articleList.concat(res.data.list);
}
this.page++;
}
})
console.log(this.page);
},
// 屏蔽更新列表
updateList() {
@@ -475,12 +474,11 @@
},
// 发现下拉加载
swiperBottom(e) {
if(this.num == 0){
this.getArticlelist();
}else if(this.num == 1){
this.tabLiveList();
}
// console.log(e);
this.page++;
this.getArticlelist();
},
swiperBottomLive() {
this.tabLiveList();
},
swiperTop() {
// uni.startPullDownRefresh();