修复首页表单校验
Showing
1 changed file
with
10 additions
and
4 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, |
... | @@ -496,7 +502,7 @@ export default { | ... | @@ -496,7 +502,7 @@ export default { |
496 | // 读取缓存 其实也没啥用 图大的话还是慢 | 502 | // 读取缓存 其实也没啥用 图大的话还是慢 |
497 | let tempDataList = JSON.parse(sessionStorage.getItem("_pingan_index_datalist")); | 503 | let tempDataList = JSON.parse(sessionStorage.getItem("_pingan_index_datalist")); |
498 | let tempBannerList = JSON.parse(sessionStorage.getItem("_pingan_index_bannerlist")); | 504 | let tempBannerList = JSON.parse(sessionStorage.getItem("_pingan_index_bannerlist")); |
499 | 505 | ||
500 | if (tempDataList) { | 506 | if (tempDataList) { |
501 | this.dataList = tempDataList; | 507 | this.dataList = tempDataList; |
502 | } | 508 | } | ... | ... |
-
Please register or sign in to post a comment