社保卡登录成功

This commit is contained in:
冯辉
2025-11-18 11:09:38 +08:00
parent 5c7bd3a6bc
commit 33474fae1b

View File

@@ -72,9 +72,9 @@ const handleIdCardLogin = async (idCard) => {
}) })
// 跳转到首页 // 跳转到首页
// uni.reLaunch({ uni.reLaunch({
// url: '/pages/index/index' url: '/pages/index/index'
// }) })
} else { } else {
uni.showToast({ uni.showToast({
title: '登录失败', title: '登录失败',
@@ -172,6 +172,7 @@ const processIdCardLogin = async (idCard) => {
// 验证身份证号码格式(简单验证) // 验证身份证号码格式(简单验证)
if (!decodedIdCard || decodedIdCard.length < 15) { if (!decodedIdCard || decodedIdCard.length < 15) {
throw new Error('身份证号码格式不正确') throw new Error('身份证号码格式不正确')
return;
} }
// 调用登录接口 // 调用登录接口