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