This commit is contained in:
Gdpao
2020-08-15 19:14:12 +08:00
parent 55742478b2
commit c2346375c8
8 changed files with 285 additions and 277 deletions

View File

@@ -265,14 +265,14 @@
onShow() {
this.page = 1;
if (this.page != 1) {
this.articleList = [];
}
this.getArticlelist();
// if (this.hasLogin) {
// this.isNewmembervoucher();
// }
},
onLoad(){
this.articleList = [];
this.getArticlelist();
this.getSwiper();
// 优惠券
if(this.$store.state.hasLogin){
@@ -389,16 +389,18 @@
}
}
},
// 发现
// 发现
getArticlelist() {
uni.showLoading({
title: "loading..."
})
if (this.page > 1) {
uni.showLoading({
title: "loading..."
})
}
this.$u.api.getArticlelist({
page: this.page,
is_video_img: 0, // 查询视频1 图文2 都查0
}).then(res => {
// uni.stopPullDownRefresh();
uni.stopPullDownRefresh();
this.status = "loading";
if (res.errCode == 0) {
uni.hideLoading();