feat(user): 补充个人信息页接入身份证已存在复用弹框与登录引导

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
17792275749
2026-08-24 11:54:33 +08:00
co-authored by Claude Sonnet 4.6
parent 9911dea32f
commit 90f84cc7df
13 changed files with 353 additions and 72 deletions
+4 -3
View File
@@ -30,6 +30,7 @@ export interface UserInfo {
relationType: string | null
sex_dictText: string
connectDeviceInfo: string
flag?: number | null
}
export interface LoginResult {
@@ -43,8 +44,8 @@ export const checkOpenIdLogin = (code: string) =>
/** 根据身份证号查询用户信息 */
export const getUserInfoByIdCard = (params: { sn?: string; idCard: string; realname: string }) =>
get<UserInfo | null>('weighingScale/v3/getUserInfoByIdcard', params, { loading: false })
get<UserInfo | null>('weighingScale/v6/getUserInfoByIdcard', params, { loading: true, loadingTitle: '正在查询用户信息' })
/** 更新用户信息 */
/** 更新当前登录微信用户信息 */
export const updateUser = (data: Record<string, any>) =>
put<UserInfo>('weighingScale/v3/update/user', data)
put<UserInfo>('weighingScale/v6/update/user', data)