diff --git a/src/apps/AppCreditPoints/AppIntegralOrder.vue b/src/apps/AppCreditPoints/AppIntegralOrder.vue index 8d5dcc85..eafdaa98 100644 --- a/src/apps/AppCreditPoints/AppIntegralOrder.vue +++ b/src/apps/AppCreditPoints/AppIntegralOrder.vue @@ -31,9 +31,9 @@
兑换人:{{ row.createUserName }}
-
-
取消订单
-
确认兑换
+
+
取消订单
+
确认兑换
diff --git a/src/apps/AppCreditPoints/components/sysUserIntegral.vue b/src/apps/AppCreditPoints/components/sysUserIntegral.vue index 8a2a8eb7..7df2030c 100644 --- a/src/apps/AppCreditPoints/components/sysUserIntegral.vue +++ b/src/apps/AppCreditPoints/components/sysUserIntegral.vue @@ -53,6 +53,9 @@ export default { this.current++; this.getInfo() }) + uni.$on('updateIntegral', () => { + this.getInfo() + }) }, methods: { // 积分排行 diff --git a/src/apps/AppCreditPoints/giveIntegral.vue b/src/apps/AppCreditPoints/giveIntegral.vue index 7e27aef5..7d8ad1a5 100644 --- a/src/apps/AppCreditPoints/giveIntegral.vue +++ b/src/apps/AppCreditPoints/giveIntegral.vue @@ -64,8 +64,11 @@ export default { params: {...this.form} }).then(res => { if (res?.code == 0) { + uni.$emit("updateIntegral") this.$u.toast("提交成功!") uni.navigateBack({}) + }else { + this.$u.toast(res.msg) } }) },