From 56f5e0175c7066a2a47ffafbf29b74d3dd70a82f Mon Sep 17 00:00:00 2001 From: liuye Date: Tue, 29 Nov 2022 10:16:52 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E5=85=91=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pidu/AppPointsChange/AppPointsChange.vue | 3 ++- src/project/pidu/AppPointsChange/order.vue | 17 ++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/project/pidu/AppPointsChange/AppPointsChange.vue b/src/project/pidu/AppPointsChange/AppPointsChange.vue index 42bbb1fb..0feb3033 100644 --- a/src/project/pidu/AppPointsChange/AppPointsChange.vue +++ b/src/project/pidu/AppPointsChange/AppPointsChange.vue @@ -63,8 +63,9 @@ export default { onLoad() { this.getList() this.getIntegral() - uni.$on('reloadIntegral', () => { + uni.$on('updateList', () => { this.getIntegral() + this.getListInit() }) }, onShow() { diff --git a/src/project/pidu/AppPointsChange/order.vue b/src/project/pidu/AppPointsChange/order.vue index 861a53a3..5c2e7e75 100644 --- a/src/project/pidu/AppPointsChange/order.vue +++ b/src/project/pidu/AppPointsChange/order.vue @@ -28,7 +28,7 @@
支付积分
-{{number*goodsInfo.merchandiseIntegral}}
- @@ -73,6 +73,21 @@ export default { } }) }, + submit() { + this.$http.post(`/app/appintegralmerchandiseorder/addOrUpdate`, { + merchandiseId: this.id, + merchandiseNumber: this.number, + remark: this.remark + }).then((res) => { + if (res.code == 0) { + this.$u.toast('提交成功') + uni.$emit('updateList') + setTimeout(() => { + uni.navigateBack({delta: 2}) + }, 600) + } + }) + }, }, }