diff --git a/src/project/fd/AppRedemptionPoints/AppRedemptionPoints.vue b/src/project/fd/AppRedemptionPoints/AppRedemptionPoints.vue index d0ad2e79..abd7f00a 100644 --- a/src/project/fd/AppRedemptionPoints/AppRedemptionPoints.vue +++ b/src/project/fd/AppRedemptionPoints/AppRedemptionPoints.vue @@ -43,13 +43,13 @@ export default { }, onLoad() { this.getListInit() - }, - onShow() { - document.title = "积分代兑换" uni.$on('updateGoodsList', () => { this.getListInit() }) }, + onShow() { + document.title = "积分代兑换" + }, methods: { getListInit() { diff --git a/src/project/pingchang/AppSuperMarket/AppSuperMarket.vue b/src/project/pingchang/AppSuperMarket/AppSuperMarket.vue index 86c3ef5e..49de5be4 100644 --- a/src/project/pingchang/AppSuperMarket/AppSuperMarket.vue +++ b/src/project/pingchang/AppSuperMarket/AppSuperMarket.vue @@ -110,9 +110,14 @@ export default { ...mapState(['user']), }, onLoad() { + console.log(123) this.$dict.load(['integralSGTypeText']).then(() => { this.getListInit() }) + uni.$on('updateGoodsList', () => { + console.log(456) + this.getListInit() + }) }, onShow() { document.title = '积分商城' @@ -121,9 +126,7 @@ export default { this.total = this.user.girdIntegral || 0 }) }) - uni.$on('updateGoodsList', () => { - this.getListInit() - }) + }, methods: { ...mapActions(['getAccount']),