From dbe5d09f24188b94792788bf1dfbf766acd137d9 Mon Sep 17 00:00:00 2001 From: yangfuda <945208611@qq.com> Date: Mon, 13 Feb 2023 14:22:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=93=B6=E5=86=9C-=E5=9F=BA=E7=A1=80=E8=B5=84?= =?UTF-8?q?=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/onlineHome/my.js | 15 ++++ src/router/index.js | 9 ++ src/views/yinnong/basicInformation.vue | 112 +++++++++++++++++++++++++ src/views/yinnong/my.vue | 10 +++ 4 files changed, 146 insertions(+) create mode 100644 src/views/yinnong/basicInformation.vue diff --git a/src/api/onlineHome/my.js b/src/api/onlineHome/my.js index b52a9021..440bd03f 100644 --- a/src/api/onlineHome/my.js +++ b/src/api/onlineHome/my.js @@ -28,3 +28,18 @@ export function uploadFileBase(data) { data: data }) } +// 修改用户个人信息 +export function updateUserProfile(data) { + return request({ + url: '/system/user/profile/edit', + method: 'post', + data: data + }) +} +// 查询用户个人信息 +export function getUserProfile() { + return request({ + url: '/system/user/profile/get', + method: 'get' + }) +} diff --git a/src/router/index.js b/src/router/index.js index 566db205..699b96a8 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1816,6 +1816,15 @@ export const constantRoutes = [ component: (resolve) => require(['@/views/yinnong/mailList'], resolve) } , + { + path: '/yinnong/basicInformation', + name: 'yinnongBasicInformation', + meta: { + title: '基本资料', + hidden: true, + }, + component: (resolve) => require(['@/views/yinnong/basicInformation'], resolve) + } , { path: '/yinnong/password', name: 'yinnongPassword', diff --git a/src/views/yinnong/basicInformation.vue b/src/views/yinnong/basicInformation.vue new file mode 100644 index 00000000..9ecaec29 --- /dev/null +++ b/src/views/yinnong/basicInformation.vue @@ -0,0 +1,112 @@ + + + + + diff --git a/src/views/yinnong/my.vue b/src/views/yinnong/my.vue index cc295aee..eef010df 100644 --- a/src/views/yinnong/my.vue +++ b/src/views/yinnong/my.vue @@ -80,6 +80,16 @@ + + +