Commit dc065061 by 李嘉林

身份证校验

parent d436f924
...@@ -273,7 +273,7 @@ export default { ...@@ -273,7 +273,7 @@ export default {
}); });
}, },
input_id_number() { input_id_number() {
let n = this.idNum.match(/[0-9a-z]{0,255}/i); let n = this.idNum.match(/[0-9a-zA-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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment