Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7968d17a
authored
2020-05-22 18:22:40 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复首页表单校验
1 parent
9c776bb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
src/pages/index/index.js
src/pages/index/index.js
View file @
7968d17
...
...
@@ -409,9 +409,17 @@ export default {
// }
let
errorTips
=
this
.
errorTips
;
if
(
!
(
errorTips
.
e1
&&
errorTips
.
e2
&&
errorTips
.
e3
&&
errorTips
.
e4
&&
errorTips
.
e5
))
{
if
(
errorTips
.
e1
||
errorTips
.
e2
||
errorTips
.
e3
||
errorTips
.
e4
||
errorTips
.
e5
)
{
}
else
{
resolve
();
}
// if (!(errorTips.e1 && errorTips.e2 && errorTips.e3 && errorTips.e4 && errorTips.e5)) {
// console.log("11111");
// // resolve();
// }else{
// console.log("2222");
// }
});
},
/**
...
...
@@ -423,9 +431,7 @@ export default {
}
// console.log("this.formData:", this.formData);
this
.
checkSubmit
().
then
((
result
)
=>
{
let
formData
=
this
.
formData
;
let
data
=
{
sex
:
formData
.
title
,
name
:
formData
.
name
,
...
...
@@ -496,7 +502,7 @@ export default {
// 读取缓存 其实也没啥用 图大的话还是慢
let
tempDataList
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"_pingan_index_datalist"
));
let
tempBannerList
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"_pingan_index_bannerlist"
));
if
(
tempDataList
)
{
this
.
dataList
=
tempDataList
;
}
...
...
Please
register
or
sign in
to post a comment