修复首页表单校验
Showing
1 changed file
with
9 additions
and
3 deletions
| ... | @@ -409,9 +409,17 @@ export default { | ... | @@ -409,9 +409,17 @@ export default { |
| 409 | // } | 409 | // } |
| 410 | 410 | ||
| 411 | let errorTips = this.errorTips; | 411 | let errorTips = this.errorTips; |
| 412 | if (!(errorTips.e1 && errorTips.e2 && errorTips.e3 && errorTips.e4 && errorTips.e5)) { | 412 | if (errorTips.e1 || errorTips.e2 || errorTips.e3 || errorTips.e4 || errorTips.e5) { |
| 413 | |||
| 414 | } else { | ||
| 413 | resolve(); | 415 | resolve(); |
| 414 | } | 416 | } |
| 417 | // if (!(errorTips.e1 && errorTips.e2 && errorTips.e3 && errorTips.e4 && errorTips.e5)) { | ||
| 418 | // console.log("11111"); | ||
| 419 | // // resolve(); | ||
| 420 | // }else{ | ||
| 421 | // console.log("2222"); | ||
| 422 | // } | ||
| 415 | }); | 423 | }); |
| 416 | }, | 424 | }, |
| 417 | /** | 425 | /** |
| ... | @@ -423,9 +431,7 @@ export default { | ... | @@ -423,9 +431,7 @@ export default { |
| 423 | } | 431 | } |
| 424 | // console.log("this.formData:", this.formData); | 432 | // console.log("this.formData:", this.formData); |
| 425 | this.checkSubmit().then((result) => { | 433 | this.checkSubmit().then((result) => { |
| 426 | |||
| 427 | let formData = this.formData; | 434 | let formData = this.formData; |
| 428 | |||
| 429 | let data = { | 435 | let data = { |
| 430 | sex: formData.title, | 436 | sex: formData.title, |
| 431 | name: formData.name, | 437 | name: formData.name, | ... | ... |
-
Please register or sign in to post a comment