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(() => {
|
||||
console.log(1)
|
||||
uni.reLaunch({
|
||||
url: '/',
|
||||
})
|
||||
|
||||
@@ -79,7 +79,7 @@ const onSubmit = async () => {
|
||||
await showModal('请填写完整信息')
|
||||
return
|
||||
}
|
||||
if (!/^\d{17}[\d|x]$/.test(form.value.cardnum)) {
|
||||
if (!/^\d{17}[\d|x]$/i.test(form.value.cardnum)) {
|
||||
await showModal('身份证号格式错误')
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user