feat(personal-info): 优化个人信息页面功能

- 添加修改手机号功能
- 实现头像上传和裁剪
- 优化用户信息编辑界面
- 增加表单验证和错误提示
- 实现验证码发送和倒计时功能
This commit is contained in:
2025-06-19 16:29:41 +08:00
parent cfefa7d562
commit fe132b480f
2 changed files with 252 additions and 14 deletions

View File

@ -50,7 +50,6 @@ export const fetchNewKeywordDetail = (params: any) => {
// 使用Http.get方法发送GET请求获取行业话题列表
return Http.get('/v1/industry-new-keywords/' + params, {});
};
fetchIndustryTopicDetail;
// 导出一个函数fetchUserPainPointsList用于获取用户痛点列表
export const fetchUserPainPointsList = (params: any) => {
@ -116,3 +115,28 @@ export const trialProduct = (id: number) => {
export const updateEnterpriseName = (data: any) => {
return Http.patch(`/v1/enterprises/name`, data, { headers: { 'enterprise-id': 1 } });
};
// 发送修改手机号验证码
export const sendUpdateMobileCaptcha = (data: any) => {
return Http.post(`/v1/sms/update-mobile-captcha`, data);
};
// 修改绑定的手机号
export const updateMobile = (data: any) => {
return Http.post(`/v1/me/mobile`, data);
};
// 修改我的信息
export const updateMyInfo = (data: any) => {
return Http.put(`/v1/me`, data);
};
// 获取企业账号分页
export const fetchSubAccountPage = (params: any) => {
return Http.get(`/v1/enterprises/users`, params, { headers: { 'enterprise-id': 1 } });
};
// 获取企业账号分页
export const fetchImageUploadFile = (params: any) => {
return Http.get(`/v1/oss/image-pre-signed-url`, params);
};