fangmingyue 2 years ago
parent
commit
f322b45839
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      src/pages/apply/verify/index.jsx

+ 3
- 4
src/pages/apply/verify/index.jsx View File

@@ -54,9 +54,9 @@ export default (props) => {
54 54
 
55 55
     setSubmitting(true);
56 56
     putTaIssueApply(data.applyId, data).then((res) => {
57
-
58
-      if (formData.verifyStatus == 'pass') {
59
-        if (applyInfo.applyType == '0201') {
57
+      setSubmitting(false);
58
+      if (formData.verifyStatus == APPLY_PASS) {
59
+        if (applyInfo.applyType == PROCESS_APPLY_REJECT) {
60 60
           // Dialog 有 bug,
61 61
           // 使用 setTimeout 延迟一会规避一下
62 62
           const t = setTimeout(() => {
@@ -76,7 +76,6 @@ export default (props) => {
76 76
         } else {
77 77
           Taro.navigateBack({ delta: 1 });
78 78
         }
79
-        setSubmitting(false);
80 79
       }
81 80
     }).catch(() => {
82 81
       setSubmitting(false);