diff --git a/api/system/user.js b/api/system/user.js index 0e307ea..140560b 100644 --- a/api/system/user.js +++ b/api/system/user.js @@ -3,39 +3,39 @@ import request from '@/utils/request' // 用户密码重置 export function updateUserPwd(oldPassword, newPassword) { - const data = { - oldPassword, - newPassword - } - return request({ - url: '/system/user/profile/updatePwd', - method: 'put', - data: data - }) + const data = { + oldPassword, + newPassword + } + return request({ + url: '/system/user/profile/updatePwd', + method: 'put', + data: data + }) } // 查询用户个人信息 export function getUserProfile() { - return request({ - url: '/system/user/profile', - method: 'get' - }) + return request({ + url: '/system/user/profile', + method: 'get' + }) } // 修改用户个人信息 export function updateUserProfile(data) { - return request({ - url: '/system/user/profile', - method: 'put', - data: data - }) + return request({ + url: '/system/user/profile', + method: 'put', + data: data + }) } // 用户头像上传 export function uploadAvatar(data) { - return upload({ - url: '/system/user/profile/avatar', - name: data.name, - filePath: data.filePath - }) -} + return upload({ + url: '/system/user/profile/avatar', + name: data.name, + filePath: data.filePath + }) +} \ No newline at end of file diff --git a/pages.json b/pages.json index 7d7e4bb..e017063 100644 --- a/pages.json +++ b/pages.json @@ -1,110 +1,110 @@ { - "pages": [{ - "path": "pages/index", - "style": { - "navigationBarTitleText": "首页", - "navigationStyle": "custom" - } - }, { - "path": "pages/login", - "style": { - "navigationBarTitleText": "登录" - } - }, { - "path": "pages/register", - "style": { - "navigationBarTitleText": "注册" - } - }, { - "path": "pages/work/index", - "style": { - "navigationBarTitleText": "工作台" - } - }, { - "path": "pages/work/my-notice", - "style": { - "navigationBarTitleText": "我的通告" - } - }, { - "path": "pages/mine/index", - "style": { - "navigationBarTitleText": "我的" - } - }, { - "path": "pages/mine/avatar/index", - "style": { - "navigationBarTitleText": "修改头像" - } - }, { - "path": "pages/mine/info/index", - "style": { - "navigationBarTitleText": "个人信息" - } - }, { - "path": "pages/mine/info/edit", - "style": { - "navigationBarTitleText": "编辑资料" - } - }, { - "path": "pages/mine/pwd/index", - "style": { - "navigationBarTitleText": "修改密码" - } - }, { - "path": "pages/mine/setting/index", - "style": { - "navigationBarTitleText": "应用设置" - } - }, { - "path": "pages/mine/help/index", - "style": { - "navigationBarTitleText": "常见问题" - } - }, { - "path": "pages/mine/about/index", - "style": { - "navigationBarTitleText": "关于我们" - } - }, { - "path": "pages/common/webview/index", - "style": { - "navigationBarTitleText": "浏览网页" - } - }, { - "path": "pages/common/textview/index", - "style": { - "navigationBarTitleText": "浏览文本" - } - }, { - "path": "pages/common/richview/index", - "style": { - "navigationBarTitleText": "浏览富文本" - } - }, - { - "path" : "pages/components/index", - "style" : - { - "navigationBarTitleText" : "通告首页" - } - },{ - "path" : "pages/components/notice-item", - "style" : - { - "navigationBarTitleText" : "通告组件" - } - }], - // "subPackages": [ - // { - // "root": "pages/notice", - // "pages": [ - - // ] - // } - // ], - "globalStyle": { - "navigationBarTextStyle": "black", - "navigationBarTitleText": "多点通告", - "navigationBarBackgroundColor": "#FFFFFF" - } -} + "pages": [{ + "path": "pages/index", + "style": { + "navigationBarTitleText": "首页", + "navigationStyle": "custom" + } + }, { + "path": "pages/login", + "style": { + "navigationBarTitleText": "登录" + } + }, { + "path": "pages/register", + "style": { + "navigationBarTitleText": "注册" + } + }, { + "path": "pages/work/index", + "style": { + "navigationBarTitleText": "工作台" + } + }, { + "path": "pages/work/my-notice", + "style": { + "navigationBarTitleText": "我的通告" + } + }, { + "path": "pages/mine/index", + "style": { + "navigationBarTitleText": "我的" + } + }, { + "path": "pages/mine/avatar/index", + "style": { + "navigationBarTitleText": "修改头像" + } + }, { + "path": "pages/mine/info/index", + "style": { + "navigationBarTitleText": "个人信息" + } + }, { + "path": "pages/mine/info/edit", + "style": { + "navigationBarTitleText": "编辑资料" + } + }, { + "path": "pages/mine/pwd/index", + "style": { + "navigationBarTitleText": "修改密码" + } + }, { + "path": "pages/mine/setting/index", + "style": { + "navigationBarTitleText": "应用设置" + } + }, { + "path": "pages/mine/help/index", + "style": { + "navigationBarTitleText": "常见问题" + } + }, { + "path": "pages/mine/about/index", + "style": { + "navigationBarTitleText": "关于我们" + } + }, { + "path": "pages/common/webview/index", + "style": { + "navigationBarTitleText": "浏览网页" + } + }, { + "path": "pages/common/textview/index", + "style": { + "navigationBarTitleText": "浏览文本" + } + }, { + "path": "pages/common/richview/index", + "style": { + "navigationBarTitleText": "浏览富文本" + } + }, + { + "path": "pages/components/index", + "style": { + "navigationBarTitleText": "通告首页" + } + }, { + "path": "pages/components/notice-item", + "style": { + "navigationBarTitleText": "通告组件" + } + } + ], + "subPackages": [{ + "root": "pages/notice", + "pages": [{ + "path": "detail", + "style": { + "navigationBarTitleText": "通告详情" + } + }] + }], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "多点通告", + "navigationBarBackgroundColor": "#FFFFFF" + } +} \ No newline at end of file diff --git a/pages/components/notice-item.vue b/pages/components/notice-item.vue index 10ecdb3..0497fa5 100644 --- a/pages/components/notice-item.vue +++ b/pages/components/notice-item.vue @@ -1,6 +1,6 @@