feat: 用户中心

This commit is contained in:
wang_fan_w 2024-06-16 22:57:26 +08:00
parent a0915c9cdd
commit 3f86d41c61
19 changed files with 83 additions and 12 deletions

View File

@ -20,6 +20,9 @@ export default {
["third-menu-7"]: "third-menu-7", ["third-menu-7"]: "third-menu-7",
["third-menu-8"]: "third-menu-8", ["third-menu-8"]: "third-menu-8",
["third-menu-9"]: "third-menu-9", ["third-menu-9"]: "third-menu-9",
["personal-center"]: "personal center",
["userinfo"]: "userinfo",
["user-settings"]: "user settings",
["about-project"]: "about project", ["about-project"]: "about project",
["not-power"]: "No permission", ["not-power"]: "No permission",
["not-found"]: "Page not found", ["not-found"]: "Page not found",

View File

@ -20,6 +20,9 @@ export default {
["third-menu-7"]: "三级菜单-7", ["third-menu-7"]: "三级菜单-7",
["third-menu-8"]: "三级菜单-8", ["third-menu-8"]: "三级菜单-8",
["third-menu-9"]: "三级菜单-9", ["third-menu-9"]: "三级菜单-9",
["personal-center"]: "用户中心",
["userinfo"]: "用户信息",
["user-settings"]: "用户设置",
["about-project"]: "关于项目", ["about-project"]: "关于项目",
["not-power"]: "没有权限", ["not-power"]: "没有权限",
["not-found"]: "未找到页面", ["not-found"]: "未找到页面",

View File

@ -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", path: "/internationalization",
name: "internationalization", name: "internationalization",

View File

@ -9,6 +9,8 @@
} }
} }
// 卡片过渡动画
// 根据遍历的卡片数量应用动画卡片数量支持20个
@for $i from 0 through 20 { @for $i from 0 through 20 {
.animated-fade-up-#{$i} { .animated-fade-up-#{$i} {
opacity: 0; // 初始透明度 opacity: 0; // 初始透明度

View File

@ -1,5 +1,6 @@
@import "./index.scss"; @import "./index.scss";
// 处理首页数据图大小
// 页面宽度 大于 0px 小于 992px; // 页面宽度 大于 0px 小于 992px;
@media screen and (min-width: $xs) and (max-width: $lg) { @media screen and (min-width: $xs) and (max-width: $lg) {
.sell-histogram { .sell-histogram {

View File

@ -1,5 +1,5 @@
<template> <template>
<div>关于项目</div> <div class="dc-page">关于项目</div>
</template> </template>
<script setup lang="ts"></script> <script setup lang="ts"></script>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="dc-page">
<a-date-picker style="width: 200px" /> <a-date-picker style="width: 200px" />
<a-pagination :total="50" show-total show-jumper show-page-size /> <a-pagination :total="50" show-total show-jumper show-page-size />
</div> </div>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="dc-page">
<div>二级-菜单 页面缓存</div> <div>二级-菜单 页面缓存</div>
<a-input :style="{ width: '320px' }" placeholder="请输入内容测试页面缓存" allow-clear v-model="form" /> <a-input :style="{ width: '320px' }" placeholder="请输入内容测试页面缓存" allow-clear v-model="form" />
</div> </div>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="dc-page">
<div>三级-菜单-01 页面缓存</div> <div>三级-菜单-01 页面缓存</div>
<a-input :style="{ width: '320px' }" placeholder="请输入内容测试页面缓存" allow-clear v-model="form" /> <a-input :style="{ width: '320px' }" placeholder="请输入内容测试页面缓存" allow-clear v-model="form" />
</div> </div>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="dc-page">
<div>三级-菜单-02 页面缓存</div> <div>三级-菜单-02 页面缓存</div>
<a-input :style="{ width: '320px' }" placeholder="请输入内容测试页面缓存" allow-clear v-model="form" /> <a-input :style="{ width: '320px' }" placeholder="请输入内容测试页面缓存" allow-clear v-model="form" />
</div> </div>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="dc-page">
<div>三级-菜单-03</div> <div>三级-菜单-03</div>
</div> </div>
</template> </template>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="dc-page">
<div>三级-菜单-04</div> <div>三级-菜单-04</div>
</div> </div>
</template> </template>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="dc-page">
<div>三级-菜单-05</div> <div>三级-菜单-05</div>
</div> </div>
</template> </template>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="dc-page">
<div>三级-菜单-06</div> <div>三级-菜单-06</div>
</div> </div>
</template> </template>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="dc-page">
<div>三级-菜单-07</div> <div>三级-菜单-07</div>
</div> </div>
</template> </template>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="dc-page">
<div>三级-菜单-08</div> <div>三级-菜单-08</div>
</div> </div>
</template> </template>

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="dc-page">
<div>三级-菜单-09</div> <div>三级-菜单-09</div>
</div> </div>
</template> </template>

View File

@ -0,0 +1,7 @@
<template>
<div class="dc-page">用户设置</div>
</template>
<script setup lang="ts"></script>
<style lang="scss" scoped></style>

View File

@ -0,0 +1,7 @@
<template>
<div class="dc-page">个人中心</div>
</template>
<script setup lang="ts"></script>
<style lang="scss" scoped></style>