Browse Source

fix: 邀请入群配置 - 付费情况

zhengxy 11 months ago
parent
commit
8fbdea1c2c
1 changed files with 11 additions and 1 deletions
  1. 11 1
      project/src/components/assembly/screen/pay.vue

+ 11 - 1
project/src/components/assembly/screen/pay.vue

@@ -93,12 +93,20 @@ export default {
93 93
   methods: {
94 94
     visibleHide () {
95 95
       if (this.radio == 1) {
96
-        if (this.valueObj.minValue == '' || this.valueObj.maxValue == '' || this.valueObj.maxValue < this.valueObj.minValue) {
96
+        if (this.valueObj.maxValue && this.valueObj.minValue && this.valueObj.maxValue < this.valueObj.minValue) {
97
+          this.$message({
98
+            message: '请正确填写自定义次数',
99
+            type: "warning"
100
+          })
101
+          this.valueObj.maxValue = ''
102
+          this.valueObj.minValue = ''
97 103
           return
98 104
         }
99 105
         this.valueObj.radio = 1;
100 106
         this.$emit('payChange', this.valueObj)
101 107
         this.visible = false
108
+      } else if (this.radio == 0) {
109
+        this.payChange(0)
102 110
       }
103 111
     },
104 112
     clear () {
@@ -130,6 +138,8 @@ export default {
130 138
           message: '请正确填写自定义次数',
131 139
           type: "warning"
132 140
         })
141
+        this.valueObj.maxValue = ''
142
+        this.valueObj.minValue = ''
133 143
         return
134 144
       }
135 145
       this.valueObj.radio = 1;