fix: 修改身份证规则
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 116 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 134 KiB |
@@ -19,7 +19,6 @@ onLaunch((options) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
onPageNotFound(() => {
|
onPageNotFound(() => {
|
||||||
console.log(1)
|
|
||||||
uni.reLaunch({
|
uni.reLaunch({
|
||||||
url: '/',
|
url: '/',
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user