瀏覽代碼

Merge branch 'v3.5' of http://git.ycjcjy.com/zhiyuxing/estateagents-admin-manager into v3.5

周立森 5 年之前
父節點
當前提交
f25c1cf8ca
共有 1 個檔案被更改,包括 5 行新增4 行删除
  1. 5
    4
      src/pages/activity/helpActivity/edithelpActivity.jsx

+ 5
- 4
src/pages/activity/helpActivity/edithelpActivity.jsx 查看文件

85
           message.error('助力邀请人数不能超过200')
85
           message.error('助力邀请人数不能超过200')
86
           return
86
           return
87
         }
87
         }
88
+          // 助力邀请人数>0
89
+        if (values.personNum <= 0) {
90
+          message.error('助力邀请人数大于0')
91
+          return
92
+        }
88
 
93
 
89
         // 判断助力人数必须大于0
94
         // 判断助力人数必须大于0
90
         if (values.isEnlist === 1) {
95
         if (values.isEnlist === 1) {
92
           message.error('限制助力次数必须大于0')
97
           message.error('限制助力次数必须大于0')
93
           return
98
           return
94
         }
99
         }
95
-        if (values.personNum <= 0) {
96
-          message.error('助力邀请人数大于0')
97
-          return
98
-        }
99
       }
100
       }
100
         const { activityTime, signupTime, ...submitValue } = values
101
         const { activityTime, signupTime, ...submitValue } = values
101
         const [startDate, endDate] = activityTime
102
         const [startDate, endDate] = activityTime