From e93b692c9709afb2db6f34bd0391252290b18e12 Mon Sep 17 00:00:00 2001 From: shuiluo Date: Sat, 17 Jul 2021 20:26:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E8=B7=AF=E7=94=B1?= =?UTF-8?q?=E5=92=8C=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/upload/index.vue | 2 +- src/local/index.js | 2 + src/local/table.js | 4 ++ src/local/user.js | 21 +++++++++ .../header/LayoutTopHeaderAvatar.vue | 2 - .../header/LayoutTopHeaderNotice.vue | 32 +++++++++---- src/pages/frame/components/header/i18n.js | 20 -------- src/pages/user/components/ToDo.vue | 3 -- src/pages/user/components/info.vue | 20 ++++---- src/pages/user/components/message.vue | 47 +++++++++++-------- src/pages/user/components/page_todo.vue | 3 ++ src/pages/user/components/todo.vue | 3 -- src/pages/user/index.vue | 10 ++-- src/router/config.js | 2 +- 14 files changed, 100 insertions(+), 71 deletions(-) create mode 100644 src/local/user.js delete mode 100644 src/pages/frame/components/header/i18n.js delete mode 100644 src/pages/user/components/ToDo.vue create mode 100644 src/pages/user/components/page_todo.vue delete mode 100644 src/pages/user/components/todo.vue diff --git a/src/components/upload/index.vue b/src/components/upload/index.vue index 55368c4..2b9f805 100644 --- a/src/components/upload/index.vue +++ b/src/components/upload/index.vue @@ -1,7 +1,7 @@ diff --git a/src/local/index.js b/src/local/index.js index 5cd2aea..14d8a52 100644 --- a/src/local/index.js +++ b/src/local/index.js @@ -1,5 +1,6 @@ import selectLang from './select'; import TableLang from './table'; +import UserLang from './user'; const zh_CN = {}; const en_US = {}; @@ -14,5 +15,6 @@ function formatLang(langObject) { formatLang(selectLang); formatLang(TableLang); +formatLang(UserLang); export { en_US, zh_CN }; diff --git a/src/local/table.js b/src/local/table.js index ac6eb36..8b5e324 100644 --- a/src/local/table.js +++ b/src/local/table.js @@ -14,4 +14,8 @@ export default { 'table.pleaseSelect': ['请选择需要导出的数据', 'Please select the data to export'], 'table.taskDetail': ['任务明细', 'Task Detail'], 'table.taskProgress': ['任务进度', 'Task Progress'], + title: ['标题', 'Title'], + content: ['内容', 'Content'], + sender: ['发送者', 'Sender'], + recipient: ['接受者', 'Recipient'], }; diff --git a/src/local/user.js b/src/local/user.js new file mode 100644 index 0000000..5e57422 --- /dev/null +++ b/src/local/user.js @@ -0,0 +1,21 @@ +export default { + profile: ['个人中心', 'Profile'], + setting: ['个人设置', 'Setting'], + loginOut: ['退出登录', 'Login Out'], + tabNotice: ['通知', 'Notice'], + tabTodo: ['待办', 'Todo'], + 'user.modifyPassword': ['修改密码', 'ModifyPassword'], + 'user.account': ['用户账户', 'Account'], + 'user.name': ['姓名', 'Name'], + 'user.email': ['电子邮箱', 'Email'], + 'user.fixedPhone': ['固定电话', 'Fixed Telephone'], + 'user.mobilePhone': ['移动电话', 'Mobile Phone'], + 'user.updateInfo': ['更新信息', 'Update Info'], + 'user.avator': ['头像', 'Avator'], + 'user.upload': ['上传', 'Upload'], + 'table.createTime': ['创建时间', 'Create Time'], + 'table.hasRead': ['是否已读', 'hasRead'], + 'table.read': ['已读', 'Read'], + 'table.unread': ['未读', 'Unread'], + 'user.readTime': ['已读时间', 'Read Time'], +}; diff --git a/src/pages/frame/components/header/LayoutTopHeaderAvatar.vue b/src/pages/frame/components/header/LayoutTopHeaderAvatar.vue index ac2d690..a2c445a 100644 --- a/src/pages/frame/components/header/LayoutTopHeaderAvatar.vue +++ b/src/pages/frame/components/header/LayoutTopHeaderAvatar.vue @@ -20,12 +20,10 @@ \ No newline at end of file diff --git a/src/pages/user/components/page_todo.vue b/src/pages/user/components/page_todo.vue new file mode 100644 index 0000000..2f82f85 --- /dev/null +++ b/src/pages/user/components/page_todo.vue @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/src/pages/user/components/todo.vue b/src/pages/user/components/todo.vue deleted file mode 100644 index e29d93f..0000000 --- a/src/pages/user/components/todo.vue +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/src/pages/user/index.vue b/src/pages/user/index.vue index 89f7aa6..7397875 100644 --- a/src/pages/user/index.vue +++ b/src/pages/user/index.vue @@ -1,10 +1,10 @@