sunlupeng 1 год назад
Родитель
Сommit
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'