hookehuyr

fix(recall): 临时屏蔽身份证号验证以允许测试

由于当前测试需要,暂时移除身份证号格式验证,以便测试流程能顺利通过。添加了TODO注释以便后续恢复验证。
<!--
* @Date: 2025-12-23 13:44:58
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-21 13:42:54
* @LastEditTime: 2026-01-26 09:51:02
* @FilePath: /mlaj/src/views/recall/CompleteInfoPage.vue
* @Description: 完善信息页面
-->
......@@ -114,12 +114,13 @@ const handleConfirm = async () => {
return
}
// TODO: 临时屏蔽
// 身份证号正则校验 (15位或18位)
const idCardRegex = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
if (!idCardRegex.test(form.idCard)) {
showToast('请输入正确的身份证号')
return
}
// const idCardRegex = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/
// if (!idCardRegex.test(form.idCard)) {
// showToast('请输入正确的身份证号')
// return
// }
const res = await updateUserInfoAPI({
name: form.name,
......
<!--
* @Date: 2025-12-23 13:44:58
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-01-21 13:42:30
* @LastEditTime: 2026-01-26 09:51:12
* @FilePath: /mlaj/src/views/recall/IDQueryPage.vue
* @Description: 查询信息页面
-->
......@@ -151,10 +151,11 @@ const handleConfirm = async () => {
return
}
if (!validateIdCard(idCard.value)) {
showToast('请输入正确的身份证号')
return
}
// TODO: 临时屏蔽
// if (!validateIdCard(idCard.value)) {
// showToast('请输入正确的身份证号')
// return
// }
const res = await searchOldActivityAPI({
name: name.value,
......