diff --git a/src/project/fd/AppRedemptionPoints/AppRedemptionPoints.vue b/src/project/fd/AppRedemptionPoints/AppRedemptionPoints.vue index a89425d7..d0ad2e79 100644 --- a/src/project/fd/AppRedemptionPoints/AppRedemptionPoints.vue +++ b/src/project/fd/AppRedemptionPoints/AppRedemptionPoints.vue @@ -41,9 +41,14 @@ export default { computed: { ...mapState(['user']), }, + onLoad() { + this.getListInit() + }, onShow() { document.title = "积分代兑换" - this.getListInit() + uni.$on('updateGoodsList', () => { + this.getListInit() + }) }, methods: { diff --git a/src/project/fd/AppRedemptionPoints/myOrderList.vue b/src/project/fd/AppRedemptionPoints/myOrderList.vue index c623753d..561b1c12 100644 --- a/src/project/fd/AppRedemptionPoints/myOrderList.vue +++ b/src/project/fd/AppRedemptionPoints/myOrderList.vue @@ -123,6 +123,7 @@ export default { this.$http.post(`/app/appintegralsupermarketorder/cancelForXCX?id=${item.id}`).then(res => { if (res.code === 0) { this.getListInit() + uni.$emit('updateGoodsList') } }) }, diff --git a/src/project/fd/AppRedemptionPoints/placeOrder.vue b/src/project/fd/AppRedemptionPoints/placeOrder.vue index d2734be0..0e5e4641 100644 --- a/src/project/fd/AppRedemptionPoints/placeOrder.vue +++ b/src/project/fd/AppRedemptionPoints/placeOrder.vue @@ -105,6 +105,7 @@ export default { createUserId: this.userId }).then(res => { if (res.code === 0) { + uni.$emit('updateGoodsList') this.toSuccess() } }) diff --git a/src/project/pingchang/AppRedemptionPoints/goodsList.vue b/src/project/pingchang/AppRedemptionPoints/goodsList.vue index d0fc1616..52c03369 100644 --- a/src/project/pingchang/AppRedemptionPoints/goodsList.vue +++ b/src/project/pingchang/AppRedemptionPoints/goodsList.vue @@ -116,6 +116,9 @@ export default { this.$dict.load(['integralSGTypeText']).then(() => { this.getList() }) + uni.$on('updateGoodsList', () => { + this.getListInit() + }) }, onShow() { document.title = '积分代兑换' diff --git a/src/project/pingchang/AppRedemptionPoints/myOrderList.vue b/src/project/pingchang/AppRedemptionPoints/myOrderList.vue index c623753d..561b1c12 100644 --- a/src/project/pingchang/AppRedemptionPoints/myOrderList.vue +++ b/src/project/pingchang/AppRedemptionPoints/myOrderList.vue @@ -123,6 +123,7 @@ export default { this.$http.post(`/app/appintegralsupermarketorder/cancelForXCX?id=${item.id}`).then(res => { if (res.code === 0) { this.getListInit() + uni.$emit('updateGoodsList') } }) }, diff --git a/src/project/pingchang/AppRedemptionPoints/placeOrder.vue b/src/project/pingchang/AppRedemptionPoints/placeOrder.vue index d2734be0..0e5e4641 100644 --- a/src/project/pingchang/AppRedemptionPoints/placeOrder.vue +++ b/src/project/pingchang/AppRedemptionPoints/placeOrder.vue @@ -105,6 +105,7 @@ export default { createUserId: this.userId }).then(res => { if (res.code === 0) { + uni.$emit('updateGoodsList') this.toSuccess() } }) diff --git a/src/project/pingchang/AppSuperMarket/AppSuperMarket.vue b/src/project/pingchang/AppSuperMarket/AppSuperMarket.vue index 7410bb2a..86c3ef5e 100644 --- a/src/project/pingchang/AppSuperMarket/AppSuperMarket.vue +++ b/src/project/pingchang/AppSuperMarket/AppSuperMarket.vue @@ -110,16 +110,20 @@ export default { ...mapState(['user']), }, onLoad() { - this.$dict.load(['integralSGTypeText']) + this.$dict.load(['integralSGTypeText']).then(() => { + this.getListInit() + }) }, onShow() { document.title = '积分商城' this.$nextTick(() => { this.getAccount().then(() => { this.total = this.user.girdIntegral || 0 - this.getListInit() }) }) + uni.$on('updateGoodsList', () => { + this.getListInit() + }) }, methods: { ...mapActions(['getAccount']), diff --git a/src/project/pingchang/AppSuperMarket/myOrderList.vue b/src/project/pingchang/AppSuperMarket/myOrderList.vue index d1cf0e6f..5667a6e5 100644 --- a/src/project/pingchang/AppSuperMarket/myOrderList.vue +++ b/src/project/pingchang/AppSuperMarket/myOrderList.vue @@ -114,6 +114,7 @@ export default { this.$http.post(`/app/appintegralsupermarketorder/cancelForGird?id=${item.id}`).then(res => { if (res.code === 0) { this.getListInit() + uni.$emit('updateGoodsList') } }) }, diff --git a/src/project/pingchang/AppSuperMarket/placeOrder.vue b/src/project/pingchang/AppSuperMarket/placeOrder.vue index c54b9015..9eb45424 100644 --- a/src/project/pingchang/AppSuperMarket/placeOrder.vue +++ b/src/project/pingchang/AppSuperMarket/placeOrder.vue @@ -104,6 +104,7 @@ export default { quantity: this.goodsNum }).then(res => { if (res.code === 0) { + uni.$emit('updateGoodsList') this.toSuccess() } })