新人优惠券显示问题,使用优惠券价格问题

This commit is contained in:
2020-08-20 10:25:58 +08:00
parent c4821f888f
commit 51823edb12
6 changed files with 41 additions and 19 deletions

View File

@@ -301,17 +301,15 @@
// that.imService.connectIM()
// },2000)
// }
// if (this.hasLogin) {
// this.isNewmembervoucher();
// }
// 新人优惠券
if (this.$store.state.showCoupons) {
this.isNewmembervoucher();
}
},
async onLoad(){
this.articleList = [];
this.getArticlelist();
this.getSwiper();
this.isNewmembervoucher();
// 优惠券
// if(this.$store.state.hasLogin){
// const user = uni.getStorageSync('user_info');
@@ -553,6 +551,7 @@
},
// 是否显示新人优惠券
isNewmembervoucher() {
this.$store.commit('updateShowCoupons', false);
this.$u.api.isNewmembervoucher().then(res => {
if(res.errCode == 0) {
this.$u.route('/pageB/coupon/index');