From a6fadbdb2ffbe54f064527fe2e8ebbf0a24b69fd Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Sun, 18 May 2025 16:43:15 +0800 Subject: [PATCH] =?UTF-8?q?feat(api):=20=E6=B7=BB=E5=8A=A0=E6=95=99?= =?UTF-8?q?=E5=B8=88/=E9=94=80=E5=94=AE=E7=AB=AF=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=B9=B6=E4=BC=98=E5=8C=96=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 apiRoute.js 中添加 editPersonnelInfo 方法,用于获取教师/销售端详情 - 修改 info.vue 页面,使用 editPersonnelInfo接口获取用户信息 -优化个人信息展示,包括头像、性别、部门等字段 -修复头像上传逻辑,使用正确的 API 路径 -优化表单提交逻辑,使用 editPersonnelInfo 接口更新用户信息 --- api/apiRoute.js | 7 ++++ pages/market/my/info.vue | 63 +++++++++++++++++------------------ pages/student/login/login.vue | 1 + 3 files changed, 39 insertions(+), 32 deletions(-) diff --git a/api/apiRoute.js b/api/apiRoute.js index 497e388..03e095f 100644 --- a/api/apiRoute.js +++ b/api/apiRoute.js @@ -31,6 +31,13 @@ export default { return res; }) }, + //教师/销售端详情 + editPersonnelInfo(data = {}) { + let url = '/personnel/edit' + return http.post(url, data).then(res => { + return res; + }) + }, diff --git a/pages/market/my/info.vue b/pages/market/my/info.vue index 442951b..71b27de 100644 --- a/pages/market/my/info.vue +++ b/pages/market/my/info.vue @@ -8,7 +8,7 @@ 修改头像 @@ -39,7 +39,7 @@ 部门 - + @@ -59,7 +59,7 @@ 性别 * - +