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 @@ + + +