Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
d436f924
Commit
d436f924
authored
Jan 12, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
身份证号支持输入英文数字
parent
1612b8bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/pages/wo/writeInformation/index.vue
+2
-2
No files found.
src/pages/wo/writeInformation/index.vue
View file @
d436f924
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<div
class=
"text"
>
<div
class=
"text"
>
<input
<input
type=
"text"
type=
"text"
maxlength=
"
18
"
maxlength=
"
255
"
class=
"ipt"
class=
"ipt"
placeholder=
"请输入身份证号码"
placeholder=
"请输入身份证号码"
@
input=
"input_id_number"
@
input=
"input_id_number"
...
@@ -273,7 +273,7 @@ export default {
...
@@ -273,7 +273,7 @@ export default {
});
});
},
},
input_id_number
()
{
input_id_number
()
{
let
n
=
this
.
idNum
.
match
(
/
\d{0,17}(\d
|x
)
/i
);
let
n
=
this
.
idNum
.
match
(
/
[
0-9a-z
]{0,255}
/i
);
this
.
idNum
=
n
===
null
?
""
:
n
[
0
];
this
.
idNum
=
n
===
null
?
""
:
n
[
0
];
// if (this.idNum.length == 18) {
// if (this.idNum.length == 18) {
// this.check_id_number();
// this.check_id_number();
...
...
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