feat(user): 补充个人信息页接入身份证已存在复用弹框与登录引导
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
9911dea32f
commit
90f84cc7df
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user