更新大屏
This commit is contained in:
@ -37,17 +37,16 @@ export function resetForm(refName) {
|
||||
|
||||
//当type=1时获取出生日期,type=2时获取性别,type=3时获取年龄
|
||||
export function IdCard(IdCard, type) {
|
||||
if (type === 1) {
|
||||
//获取出生日期
|
||||
let birthday = IdCard.substring(6, 10) + "-" + IdCard.substring(10, 12) + "-" + IdCard.substring(12, 14)
|
||||
return birthday
|
||||
//获取出生日期
|
||||
if (type === 1) {
|
||||
return IdCard.substring(6, 10) + "-" + IdCard.substring(10, 12) + "-" + IdCard.substring(12, 14)
|
||||
}
|
||||
if (type === 2) {
|
||||
//获取性别
|
||||
if (parseInt(IdCard.substr(16, 1)) % 2 === 1) {
|
||||
return "男"
|
||||
return "男"
|
||||
} else {
|
||||
return "女"
|
||||
return "女"
|
||||
}
|
||||
}
|
||||
if (type === 3) {
|
||||
|
Reference in New Issue
Block a user