Commit 15eb7c28 by 李伟康

```

fix(HomeFrame): 修复活动弹窗状态获取和触发条件

- 修复 LeftSide 组件中 activityWindowPopStatus 计算属性,
  改为直接从 store state 获取值
- 更新 HomeFrame 中 activityWindowPopStatus 监听器的触发条件,
  添加 id 和 tabIndex 判断避免不必要的请求
- 调换 ActivityPopup 组件中活动描述文本的顺序,
  使类型 0 对应新活动消息,类型 1 对应获奖名单消息
```
1 parent b38a7c05
......@@ -49,8 +49,8 @@ export default {
},
description () {
return {
0: '获奖名单已出炉!快来看看是谁斩获大奖,围观本期“销售之星”。',
1: '新的销售竞赛活动已发布!请尽快查阅评选规则与奖励方案,力争上游!'
0: '新的销售竞赛活动已发布!请尽快查阅评选规则与奖励方案,力争上游!',
1: '获奖名单已出炉!快来看看是谁斩获大奖,围观本期“销售之星”。'
}[this.data.type]
},
},
......
......@@ -217,7 +217,7 @@ export default {
return tabs
},
activityWindowPopStatus () {
return this.$store.getters.activityWindowPopStatus
return this.$store.state.sys.activityWindowPopStatus
},
},
created () {
......
......@@ -374,7 +374,8 @@ export default {
watch: {
activityWindowPopStatus: {
handler (val) {
if (val == 2) this.getActivityMessage()
const { id , tabIndex } = this
if (val == 2 && !id && tabIndex == 0) this.getActivityMessage()
},
immediate: true,
deep: true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!