更新大屏

This commit is contained in:
2025-07-14 14:21:12 +08:00
parent 813e5a9c97
commit bfc6504e2d
8 changed files with 239 additions and 270 deletions

View File

@ -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) {