From 3f86d41c612a29a963f2c4b0d97a01a460b7f3b2 Mon Sep 17 00:00:00 2001 From: wang_fan_w <2547096351@qq.com> Date: Sun, 16 Jun 2024 22:57:26 +0800 Subject: [PATCH 1/5] =?UTF-8?q?feat:=20=E7=94=A8=E6=88=B7=E4=B8=AD?= =?UTF-8?q?=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lang/modules/enUS.ts | 3 ++ src/lang/modules/zhCN.ts | 3 ++ src/router/route.ts | 48 +++++++++++++++++++ src/style/card-animation.scss | 2 + src/style/media/layout.scss | 1 + src/views/about-project/about-project.vue | 2 +- .../internationalization.vue | 2 +- .../second-menu/second-menu-1.vue | 2 +- .../third-menu/third-menu-1.vue | 2 +- .../third-menu/third-menu-2.vue | 2 +- .../third-menu/third-menu-3.vue | 2 +- .../third-menu/third-menu-4.vue | 2 +- .../third-menu/third-menu-5.vue | 2 +- .../third-menu/third-menu-6.vue | 2 +- .../third-menu/third-menu-7.vue | 2 +- .../third-menu/third-menu-8.vue | 2 +- .../third-menu/third-menu-9.vue | 2 +- .../user-settings/user-settings.vue | 7 +++ .../personal-center/userinfo/userinfo.vue | 7 +++ 19 files changed, 83 insertions(+), 12 deletions(-) create mode 100644 src/views/personal-center/user-settings/user-settings.vue create mode 100644 src/views/personal-center/userinfo/userinfo.vue diff --git a/src/lang/modules/enUS.ts b/src/lang/modules/enUS.ts index bd40c6e..ce6278b 100644 --- a/src/lang/modules/enUS.ts +++ b/src/lang/modules/enUS.ts @@ -20,6 +20,9 @@ export default { ["third-menu-7"]: "third-menu-7", ["third-menu-8"]: "third-menu-8", ["third-menu-9"]: "third-menu-9", + ["personal-center"]: "personal center", + ["userinfo"]: "userinfo", + ["user-settings"]: "user settings", ["about-project"]: "about project", ["not-power"]: "No permission", ["not-found"]: "Page not found", diff --git a/src/lang/modules/zhCN.ts b/src/lang/modules/zhCN.ts index 1bed652..4764bf5 100644 --- a/src/lang/modules/zhCN.ts +++ b/src/lang/modules/zhCN.ts @@ -20,6 +20,9 @@ export default { ["third-menu-7"]: "三级菜单-7", ["third-menu-8"]: "三级菜单-8", ["third-menu-9"]: "三级菜单-9", + ["personal-center"]: "用户中心", + ["userinfo"]: "用户信息", + ["user-settings"]: "用户设置", ["about-project"]: "关于项目", ["not-power"]: "没有权限", ["not-found"]: "未找到页面", diff --git a/src/router/route.ts b/src/router/route.ts index 65353d0..1b70f1e 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -239,6 +239,54 @@ export const dynamicRoutes: RouteRecordRaw[] = [ } ] }, + { + path: "/personal-center", + name: "personal-center", + meta: { + title: "personal-center", + link: "", + hide: false, + keepAlive: true, + affix: false, + iframe: false, + roles: ["admin"], + svgIcon: "user" + }, + children: [ + { + path: "/personal-center/userinfo", + name: "userinfo", + component: () => import("@/views/personal-center/userinfo/userinfo.vue"), + meta: { + title: "userinfo", + link: "", + hide: false, + keepAlive: true, + affix: false, + iframe: false, + roles: ["admin"], + icon: "icon-menu" + }, + children: [] + }, + { + path: "/personal-center/user-settings", + name: "user-settings", + component: () => import("@/views/personal-center/user-settings/user-settings.vue"), + meta: { + title: "user-settings", + link: "", + hide: false, + keepAlive: true, + affix: false, + iframe: false, + roles: ["admin"], + icon: "icon-menu" + }, + children: [] + } + ] + }, { path: "/internationalization", name: "internationalization", diff --git a/src/style/card-animation.scss b/src/style/card-animation.scss index 3b48d8b..b647212 100644 --- a/src/style/card-animation.scss +++ b/src/style/card-animation.scss @@ -9,6 +9,8 @@ } } +// 卡片过渡动画 +// 根据遍历的卡片数量应用动画,卡片数量支持20个 @for $i from 0 through 20 { .animated-fade-up-#{$i} { opacity: 0; // 初始透明度 diff --git a/src/style/media/layout.scss b/src/style/media/layout.scss index e1618e5..f9a322b 100644 --- a/src/style/media/layout.scss +++ b/src/style/media/layout.scss @@ -1,5 +1,6 @@ @import "./index.scss"; +// 处理首页数据图大小 // 页面宽度 大于 0px 小于 992px; @media screen and (min-width: $xs) and (max-width: $lg) { .sell-histogram { diff --git a/src/views/about-project/about-project.vue b/src/views/about-project/about-project.vue index 58c1110..7c7a4ef 100644 --- a/src/views/about-project/about-project.vue +++ b/src/views/about-project/about-project.vue @@ -1,5 +1,5 @@ diff --git a/src/views/internationalization/internationalization.vue b/src/views/internationalization/internationalization.vue index f2624de..4f3bcc6 100644 --- a/src/views/internationalization/internationalization.vue +++ b/src/views/internationalization/internationalization.vue @@ -1,5 +1,5 @@