浏览代码

支付刷新问题修改

sunlupeng 1 年之前
父节点
当前提交
df6b09e818
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/views/HomeView/RedeemView.vue

+ 3 - 2
src/views/HomeView/RedeemView.vue

@@ -544,7 +544,7 @@ export default {
         total(val) {
             let surplusIntegral = this.$store.getters.userInfo.surplusIntegral;
             let money = (val - surplusIntegral) / 10;
-            if (money > 0) {
+            if (money >= 0) {
                 this.money = money
             }
             console.log(this.money);
@@ -588,6 +588,7 @@ export default {
                         type: 'success',
                         message: '支付成功!'
                     });
+                    this.money = 0;
                     this.recharge = false;
                     clearInterval(this.timer);    // 清除定时器;   
                     clearInterval(this.timerPayWxQRcode);
@@ -636,7 +637,7 @@ export default {
                 }
             } else {
                 if (this.money) {
-                    this.$confirm('积分不足,请充值!', {
+                    this.$confirm('积分不足,差额部分可用现金补齐,是否购买积分?', {
                         confirmButtonText: '确定',
                         cancelButtonText: '取消',
                         type: 'warning'