Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
voucher-h5
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘琦
voucher-h5
Commits
7ff20618
Commit
7ff20618
authored
Aug 31, 2020
by
何为
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改张家港签约女性身份证校验逻辑
parent
85f75818
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
7 deletions
+24
-7
index.vue
src/views/signing/index.vue
+24
-7
No files found.
src/views/signing/index.vue
View file @
7ff20618
...
...
@@ -41,7 +41,7 @@
<div
class=
"td label"
>
身份证号
</div>
<div
class=
"td text-right"
>
<input
type=
"text"
class=
"form-control"
placeholder=
"请输入有效的女性身份证号"
@
blur=
"BaseValidateIdCard"
v-model=
"BaseForm.idCard"
:disabled=
"signStatus=='update'"
/>
<span
v-show=
"!BaseValidate.idCardState"
class=
"small-hint"
>
请输入有效的女性身份证号
</span>
<span
v-show=
"!BaseValidate.idCardState"
class=
"small-hint"
>
{{
error
.
idCard
}}
</span>
</div>
</div>
<div
class=
"tr"
>
...
...
@@ -109,12 +109,12 @@
<span
v-if=
"!BaseValidate.streetState"
class=
"small-hint"
>
请输入详细地址
</span>
</div>
</div>
<div
class=
"tr"
>
<
!--
<
div
class=
"tr"
>
<div
class=
"td label"
>
备注
</div>
<div
class=
"td text-right"
>
<textarea
v-model=
"BaseForm.note"
class=
"form-control"
rows=
"3"
:disabled=
"signStatus=='update'"
placeholder=
"备注非必填..."
style=
"border: 1px solid #9aa0a4;"
></textarea>
</div>
</div>
</div>
-->
</div>
</div>
<!--
<div
class=
"form"
>
...
...
@@ -694,7 +694,10 @@ export default {
{
name
:
'机构机构机构机构机构机构2'
,
value
:
'2'
},
{
name
:
'机构机构机构机构机构机构3'
,
value
:
'3'
}
]
}]
}],
error
:
{
idCard
:
""
}
}
},
created
()
{
...
...
@@ -948,7 +951,7 @@ export default {
this
.
BaseValidatePhone
()
this
.
BaseValidateAddress
()
this
.
BaseValidateStreet
()
this
.
BaseValidateOrg
()
//
this.BaseValidateOrg()
if
(
this
.
pageType
===
0
)
{
this
.
BaseValidateChooseImg
()
}
...
...
@@ -965,19 +968,33 @@ export default {
this
.
saveSignInfoToCookie
()
// 储存用户签约录入信息
},
BaseValidateIdCard
()
{
// 身份证验证
if
(
cardid
(
this
.
BaseForm
.
idCard
)[
0
])
{
// 身份证验证
if
(
!
cardid
(
this
.
BaseForm
.
idCard
)[
0
])
{
this
.
error
.
idCard
=
cardid
(
this
.
BaseForm
.
idCard
)[
1
]
this
.
BaseValidate
.
idCardState
=
false
let
errorMsg
=
{}
errorMsg
.
error
=
"不通过"
errorMsg
.
errorText
=
this
.
error
.
idCard
return
errorMsg
}
else
{
if
(
getSexByIdCard
(
this
.
BaseForm
.
idCard
)
===
'2'
)
{
console
.
log
(
getSexByIdCard
(
this
.
BaseForm
.
idCard
))
if
(
getSexByIdCard
(
this
.
BaseForm
.
idCard
)
===
"2"
)
{
this
.
BaseValidate
.
idCardState
=
true
}
else
{
this
.
BaseValidate
.
idCardState
=
false
this
.
error
.
idCard
=
"请输入有效的女性身份证号"
let
errorMsg
=
{}
errorMsg
.
error
=
"不通过"
errorMsg
.
errorText
=
"请输入有效的女性身份证号"
return
errorMsg
}
this
.
error
.
idCard
=
""
}
if
(
this
.
pageType
===
0
)
{
this
.
BaseFormIntoTab1
()
}
this
.
saveSignInfoToCookie
()
// 储存用户签约录入信息
// return true
},
// BaseValidateIdCardKid () { // 子女身份证验证
// if (cardid(this.userData.idCardKid)[0]) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment