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