@@ -164,7 +164,8 @@
return this.$store.state.vuex_storeAuthInfo || null
},
hasRedPacket(){
- return this.$store.state.vuex_rewardRule
+ const rule = this.$store.state.vuex_rewardRule
+ return rule&&rule.ruleStatus == 'release'
imgList(){
if(this.hasRedPacket){
@@ -116,7 +116,8 @@
return this.$store.state.vuex_storeAuthInfo
}
onShow() {
@@ -305,7 +305,8 @@
return this.userInfo.superAdmin == 1
onLoad(opts) {
@@ -119,6 +119,8 @@ const store = new Vuex.Store({
state.vuex_userInfo = null
state.vuex_userPhoto = null
state.vuex_permCodes = null
+ state.vuex_storeAuthInfo = null
+ state.vuex_rewardRule = null
openId(state,id) {
state.vuex_openid = id