fix: 修改身份证规则

This commit is contained in:
anonymous
2025-01-15 09:59:52 +08:00
parent d9e889c65c
commit 250a675cee
4 changed files with 1 additions and 2 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

-1
View File
@@ -19,7 +19,6 @@ onLaunch((options) => {
}) })
onPageNotFound(() => { onPageNotFound(() => {
console.log(1)
uni.reLaunch({ uni.reLaunch({
url: '/', url: '/',
}) })
+1 -1
View File
@@ -79,7 +79,7 @@ const onSubmit = async () => {
await showModal('请填写完整信息') await showModal('请填写完整信息')
return return
} }
if (!/^\d{17}[\d|x]$/.test(form.value.cardnum)) { if (!/^\d{17}[\d|x]$/i.test(form.value.cardnum)) {
await showModal('身份证号格式错误') await showModal('身份证号格式错误')
return return
} }