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) + } + }) + }, }, }