From f1a25179a48adcb734c42dd0da98464642085f21 Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 23 May 2023 09:16:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8=E7=9B=91?= =?UTF-8?q?=E5=90=AC=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/fengdu/AppRedemptionPoints/AppRedemptionPoints.vue | 3 +++ src/project/fengdu/AppRedemptionPoints/myOrderList.vue | 1 + src/project/fengdu/AppRedemptionPoints/placeOrder.vue | 1 + src/project/szpc/AppRedemptionPoints/AppRedemptionPoints.vue | 3 +++ src/project/szpc/AppRedemptionPoints/myOrderList.vue | 1 + src/project/szpc/AppRedemptionPoints/placeOrder.vue | 1 + 6 files changed, 10 insertions(+) diff --git a/src/project/fengdu/AppRedemptionPoints/AppRedemptionPoints.vue b/src/project/fengdu/AppRedemptionPoints/AppRedemptionPoints.vue index 23b6189..5dbee6d 100644 --- a/src/project/fengdu/AppRedemptionPoints/AppRedemptionPoints.vue +++ b/src/project/fengdu/AppRedemptionPoints/AppRedemptionPoints.vue @@ -111,6 +111,9 @@ export default { this.$dict.load(['integralSGTypeText']).then(() => { this.getList() }) + uni.$on('updateGoodsList', () => { + this.getListInit() + }) }, onShow() { this.getTotal() diff --git a/src/project/fengdu/AppRedemptionPoints/myOrderList.vue b/src/project/fengdu/AppRedemptionPoints/myOrderList.vue index 6ae5de7..472f2e9 100644 --- a/src/project/fengdu/AppRedemptionPoints/myOrderList.vue +++ b/src/project/fengdu/AppRedemptionPoints/myOrderList.vue @@ -121,6 +121,7 @@ export default { this.$instance.post(`/app/appintegralsupermarketorder/cancelForXCX?id=${item.id}`).then(res => { if (res.code === 0) { this.getListInit() + uni.$emit('updateGoodsList') } }) }, diff --git a/src/project/fengdu/AppRedemptionPoints/placeOrder.vue b/src/project/fengdu/AppRedemptionPoints/placeOrder.vue index 1bc120d..3d3e56a 100644 --- a/src/project/fengdu/AppRedemptionPoints/placeOrder.vue +++ b/src/project/fengdu/AppRedemptionPoints/placeOrder.vue @@ -99,6 +99,7 @@ export default { quantity: this.goodsNum }).then(res => { if (res.code === 0) { + uni.$emit('updateGoodsList') this.toSuccess() } }) diff --git a/src/project/szpc/AppRedemptionPoints/AppRedemptionPoints.vue b/src/project/szpc/AppRedemptionPoints/AppRedemptionPoints.vue index 23b6189..5dbee6d 100644 --- a/src/project/szpc/AppRedemptionPoints/AppRedemptionPoints.vue +++ b/src/project/szpc/AppRedemptionPoints/AppRedemptionPoints.vue @@ -111,6 +111,9 @@ export default { this.$dict.load(['integralSGTypeText']).then(() => { this.getList() }) + uni.$on('updateGoodsList', () => { + this.getListInit() + }) }, onShow() { this.getTotal() diff --git a/src/project/szpc/AppRedemptionPoints/myOrderList.vue b/src/project/szpc/AppRedemptionPoints/myOrderList.vue index 6ae5de7..472f2e9 100644 --- a/src/project/szpc/AppRedemptionPoints/myOrderList.vue +++ b/src/project/szpc/AppRedemptionPoints/myOrderList.vue @@ -121,6 +121,7 @@ export default { this.$instance.post(`/app/appintegralsupermarketorder/cancelForXCX?id=${item.id}`).then(res => { if (res.code === 0) { this.getListInit() + uni.$emit('updateGoodsList') } }) }, diff --git a/src/project/szpc/AppRedemptionPoints/placeOrder.vue b/src/project/szpc/AppRedemptionPoints/placeOrder.vue index 1bc120d..3d3e56a 100644 --- a/src/project/szpc/AppRedemptionPoints/placeOrder.vue +++ b/src/project/szpc/AppRedemptionPoints/placeOrder.vue @@ -99,6 +99,7 @@ export default { quantity: this.goodsNum }).then(res => { if (res.code === 0) { + uni.$emit('updateGoodsList') this.toSuccess() } })