Merge pull request 'gdpaoup' (#216) from gyh into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/216
This commit was merged in pull request #216.
This commit is contained in:
gyh
2020-08-15 19:14:58 +08:00
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){
@@ -397,16 +397,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();