Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
contraceptives_app
Project
Project
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
ynby
contraceptives_app
Commits
cd0d300e
Commit
cd0d300e
authored
Mar 14, 2023
by
gengchunlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信领取身份证最后一位有效性
parent
050921d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
manualDistribution.vue
src/views/manualDistribution/manualDistribution.vue
+2
-2
No files found.
src/views/manualDistribution/manualDistribution.vue
View file @
cd0d300e
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<
script
>
<
script
>
import
{
Toast
}
from
'mint-ui'
import
{
Toast
}
from
'mint-ui'
import
{
getQueryVariable
,
idCardV
}
from
"../../utils/common"
;
import
{
getQueryVariable
,
idCardV
,
validateIdCard
}
from
"../../utils/common"
;
import
{
getCheckShortMessage
,
getShortMessage
,
getUserInfoByIdCard
}
from
"../../utils/api"
;
import
{
getCheckShortMessage
,
getShortMessage
,
getUserInfoByIdCard
}
from
"../../utils/api"
;
import
NoData
from
"../component/noData"
;
import
NoData
from
"../component/noData"
;
export
default
{
export
default
{
...
@@ -168,7 +168,7 @@
...
@@ -168,7 +168,7 @@
});
});
}
}
if
(
this
.
formData
.
idCar
)
{
if
(
this
.
formData
.
idCar
)
{
let
result
=
/^
\d{6}(
18|19|20
)?\d{2}(
0
[
1-9
]
|1
[
012
])(
0
[
1-9
]
|
[
12
]\d
|3
[
01
])\d{3}(\d
|X
)
$/i
.
test
(
this
.
formData
.
idCar
)
let
result
=
validateIdCard
(
this
.
formData
.
idCar
)
if
(
!
result
)
{
if
(
!
result
)
{
return
Toast
({
return
Toast
({
message
:
'请输入正确的身份证号!'
,
message
:
'请输入正确的身份证号!'
,
...
...
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