diff --git a/components/login.vue b/components/account/login.vue similarity index 51% rename from components/login.vue rename to components/account/login.vue index dcf3cab..59fe5a7 100644 --- a/components/login.vue +++ b/components/account/login.vue @@ -1,13 +1,13 @@ diff --git a/components/account/register.vue b/components/account/register.vue new file mode 100644 index 0000000..2e7dd49 --- /dev/null +++ b/components/account/register.vue @@ -0,0 +1,35 @@ + + + diff --git a/components/center/collect.vue b/components/center/collect.vue new file mode 100644 index 0000000..604df33 --- /dev/null +++ b/components/center/collect.vue @@ -0,0 +1,9 @@ + + + diff --git a/components/center/myupload.vue b/components/center/myupload.vue new file mode 100644 index 0000000..ec4954f --- /dev/null +++ b/components/center/myupload.vue @@ -0,0 +1,9 @@ + + + diff --git a/components/center/security.vue b/components/center/security.vue new file mode 100644 index 0000000..90168b0 --- /dev/null +++ b/components/center/security.vue @@ -0,0 +1,9 @@ + + + diff --git a/components/lang.vue b/components/lang.vue new file mode 100644 index 0000000..1f5ad4e --- /dev/null +++ b/components/lang.vue @@ -0,0 +1,45 @@ + + + + diff --git a/components/register.vue b/components/register.vue deleted file mode 100644 index b935d8d..0000000 --- a/components/register.vue +++ /dev/null @@ -1,35 +0,0 @@ - - - diff --git a/layouts/error.vue b/layouts/error.vue index 21994e5..5b4ee1e 100644 --- a/layouts/error.vue +++ b/layouts/error.vue @@ -1,8 +1,8 @@ diff --git a/layouts/mainmenu.vue b/layouts/mainmenu.vue index 0c6bc7a..0bb455b 100644 --- a/layouts/mainmenu.vue +++ b/layouts/mainmenu.vue @@ -1,68 +1,58 @@ - diff --git a/nuxt.config.js b/nuxt.config.js index 76571f7..ace9380 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -37,7 +37,7 @@ export default { ** Plugins to load before mounting the App ** https://nuxtjs.org/guide/plugins */ - plugins: ['@/plugins/element-ui'], + plugins: ['@/plugins/element-ui','@/plugins/vue-cookies','@/plugins/global'], /* ** Auto import components ** See https://nuxtjs.org/api/configuration-components @@ -96,7 +96,57 @@ export default { }, zhCN: '简体中文', en: '英文', - user: '帐号' + user: '帐号', + upload:{ + form:{ + type:'论文类型', + input_type:'请输入{type}', + author:'论文作者', + input_author:'请输入{author}', + profession:'学科专业', + input_profession:'请输入{profession}', + school:'学校', + input_school:'请输入{school}', + year:'学位年度', + input_year:'请输入{year}', + summary:'摘要', + input_summary:'请输入{summary}', + tag:'论文标签', + content:'论文', + upload:'点击上传', + upload_tip:'只能上传txt', + remove:'确定移除{file}' + } + }, + account:{ + login:'登录', + register:'注册', + form:{ + user:'帐号', + input_user:'请输入{user}', + password:'密码', + input_password:'请输入{password}', + confirmPwd:'确认密码', + input_confirmPwd:'请确认{confirmPwd}', + valid_account:'帐号密码正确' + } + }, + logout:'注销登录', + error_404:'页面不存在', + error_500:'发生严重异常,请联系管理员', + unknown_error:'未知错误', + center:{ + collect:{ + name:'我的收藏' + }, + myupload:{ + name:'我的上传' + }, + security:{ + name:'帐号安全' + } + }, + submit:'提交' }, en: { app_name:'cloudnote', @@ -109,7 +159,37 @@ export default { }, zhCN: 'Simplified Chinese', en: 'english', - user: '帐号' + user: '帐号', + upload:{ + form:{ + type:'论文类型', + input_type:'请输入{type}', + author:'论文作者', + input_author:'请输入{author}', + profession:'学科专业', + input_profession:'请输入{profession}', + school:'学校', + input_school:'请输入{school}', + year:'学位年度', + input_year:'请输入{year}', + summary:'摘要', + input_summary:'请输入{summary}', + tag:'论文标签', + content:'论文' + } + }, + account:{ + login:'登录', + register:'注册', + form:{ + user:'帐号', + input_user:'请输入{user}', + password:'密码', + input_password:'请输入{password}', + confirmPwd:'确认密码', + input_confirmPwd:'请确认{confirmPwd}' + } + } } } } diff --git a/package.json b/package.json index d88398c..4b91616 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "@nuxtjs/pwa": "^3.0.0-beta.20", "element-ui": "^2.13.2", "nuxt": "^2.13.0", - "nuxt-i18n": "^6.13.1" + "nuxt-i18n": "^6.13.1", + "vue-cookies": "^1.7.2" }, "devDependencies": { "@nuxt/typescript-build": "^1.0.3", diff --git a/pages/account/index.vue b/pages/account/index.vue index 8d20ab2..acca9da 100644 --- a/pages/account/index.vue +++ b/pages/account/index.vue @@ -1,38 +1,54 @@ -