优惠券弹窗不关闭

This commit is contained in:
cmxdd 2020-08-11 10:45:10 +08:00
parent def8f0cf1b
commit 282502a8d6

View File

@ -286,6 +286,7 @@
}, },
showCoupon: false, showCoupon: false,
newMemberCoupon: {}, newMemberCoupon: {},
exchangestate:false
} }
}, },
components: { components: {
@ -295,6 +296,10 @@
darenItem darenItem
}, },
onShow() { onShow() {
// ,
if(this.exchangestate==true){
this.isNewmembervoucher()
}
this.articleList = []; this.articleList = [];
this.page = 0; this.page = 0;
this.getArticlelist(); this.getArticlelist();
@ -302,7 +307,7 @@
}, },
onLoad(){ onLoad(){
if(this.$store.state.hasLogin){ if(this.$store.state.hasLogin){
this.isNewmembervoucher(); this.exchangestate = true
const user = uni.getStorageSync('user_info'); const user = uni.getStorageSync('user_info');
console.log(user) console.log(user)
this.imService.login(user.member.member_id,user.member.member_nickname,user.member.member_avatar) this.imService.login(user.member.member_id,user.member.member_nickname,user.member.member_avatar)