diff --git a/fund-mobile/src/api/index.ts b/fund-mobile/src/api/index.ts
index 8e591bf..a8fc613 100644
--- a/fund-mobile/src/api/index.ts
+++ b/fund-mobile/src/api/index.ts
@@ -14,6 +14,10 @@ export function logout() {
return request.post('/auth/logout')
}
+export function updatePassword(data: { oldPassword: string; newPassword: string; confirmPassword: string }) {
+ return request.put('/sys/profile/password', data)
+}
+
// ===================== 项目管理 =====================
export function getProjectList(params?: { pageNum: number; pageSize: number; keyword?: string }) {
diff --git a/fund-mobile/src/router/index.ts b/fund-mobile/src/router/index.ts
index fa72a96..722d987 100644
--- a/fund-mobile/src/router/index.ts
+++ b/fund-mobile/src/router/index.ts
@@ -82,6 +82,12 @@ const router = createRouter({
component: () => import('@/views/my/Index.vue'),
meta: { title: '我的', requiresAuth: true }
},
+ {
+ path: '/my/change-password',
+ name: 'ChangePassword',
+ component: () => import('@/views/my/ChangePassword.vue'),
+ meta: { title: '修改密码', requiresAuth: true }
+ },
// 登录
{
path: '/login',
diff --git a/fund-mobile/src/views/my/ChangePassword.vue b/fund-mobile/src/views/my/ChangePassword.vue
new file mode 100644
index 0000000..1a522c6
--- /dev/null
+++ b/fund-mobile/src/views/my/ChangePassword.vue
@@ -0,0 +1,145 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 密码修改成功后需要重新登录
+
+
+
+
+ 确认修改
+
+
+
+
+
+
+
+
+
diff --git a/fund-mobile/src/views/my/Index.vue b/fund-mobile/src/views/my/Index.vue
index 0d2691f..8aab5a9 100644
--- a/fund-mobile/src/views/my/Index.vue
+++ b/fund-mobile/src/views/my/Index.vue
@@ -55,7 +55,7 @@ const userInfo = ref({
})
const handleChangePassword = () => {
- showToast('功能开发中')
+ router.push('/my/change-password')
}
const handleAbout = () => {