完善本地质量门禁与资金链路测试

This commit is contained in:
yml2213
2026-09-02 13:50:19 +08:00
parent dd2b45bd2c
commit 208f12ddb4
80 changed files with 12245 additions and 11541 deletions
+373
View File
@@ -0,0 +1,373 @@
.admin-shell {
display: flex;
height: 100vh;
min-height: 100vh;
background-color: #f5f7fa;
overflow: hidden;
}
.admin-sidebar {
width: 220px;
height: 100vh;
flex: none;
background-color: #304156;
transition: width 0.3s ease;
display: flex;
flex-direction: column;
overflow: hidden;
}
.admin-shell--collapsed .admin-sidebar {
width: 64px;
}
.admin-sidebar-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px;
border-bottom: 1px solid #3d4e5f;
}
.admin-brand {
display: flex;
align-items: center;
gap: 8px;
text-decoration: none;
color: #fff;
overflow: hidden;
}
.brand-mark {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background-color: #409eff;
border-radius: 4px;
font-size: 18px;
font-weight: 700;
flex-shrink: 0;
}
.brand-text {
font-size: 16px;
font-weight: 600;
white-space: nowrap;
}
.collapse-btn {
color: #bfcbd9;
cursor: pointer;
font-size: 20px;
flex-shrink: 0;
}
.collapse-btn:hover {
color: #fff;
}
.admin-menu {
--el-menu-bg-color: transparent;
--el-menu-text-color: #bfcbd9;
--el-menu-active-color: #409eff;
--el-menu-hover-bg-color: #263445;
flex: 1;
min-height: 0;
border-right: none;
background-color: transparent;
overflow-y: auto;
overflow-x: hidden;
}
.admin-sidebar-footer {
display: grid;
flex: none;
gap: 10px;
padding: 12px;
border-top: 1px solid #3d4e5f;
background: rgba(16, 24, 39, 0.18);
}
.admin-shell--collapsed .admin-sidebar-footer {
padding: 10px 8px;
}
.sidebar-notification {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
min-height: 32px;
padding: 0 10px;
border: 1px solid rgba(64, 158, 255, 0.35);
border-radius: 8px;
color: #d7dfec;
text-decoration: none;
transition:
background-color 0.2s,
border-color 0.2s;
}
.sidebar-notification:hover,
.sidebar-notification.router-link-active {
background-color: rgba(64, 158, 255, 0.14);
border-color: rgba(64, 158, 255, 0.8);
color: #fff;
}
.admin-shell--collapsed .sidebar-notification {
padding: 0;
}
.sidebar-notification-icon {
position: relative;
display: grid;
width: 20px;
height: 20px;
place-items: center;
}
.sidebar-notification-text {
font-size: 13px;
font-weight: 700;
}
.sidebar-badge {
position: absolute;
top: -8px;
right: -13px;
min-width: 16px;
height: 16px;
padding: 0 4px;
border: 2px solid #304156;
border-radius: 999px;
background: #ef4444;
color: #fff;
font-size: 10px;
font-style: normal;
font-weight: 800;
line-height: 12px;
text-align: center;
box-sizing: border-box;
}
.sidebar-status {
display: flex;
align-items: center;
justify-content: center;
gap: 7px;
width: 100%;
min-height: 30px;
padding: 0 10px;
border: 1px solid;
border-radius: 8px;
color: #d7dfec;
cursor: pointer;
transition:
background-color 0.2s,
border-color 0.2s;
}
.sidebar-status:hover {
background-color: rgba(255, 255, 255, 0.08);
}
.admin-shell--collapsed .sidebar-status {
padding: 0;
}
.sidebar-user {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
width: 100%;
padding: 8px;
border-radius: 10px;
cursor: pointer;
transition: background-color 0.2s;
}
.sidebar-user:hover {
background-color: rgba(255, 255, 255, 0.08);
}
.admin-shell--collapsed .sidebar-user {
justify-content: center;
padding: 8px 0;
}
.sidebar-user-text {
display: grid;
min-width: 0;
gap: 2px;
}
.sidebar-user-text strong {
overflow: hidden;
color: #fff;
font-size: 13px;
line-height: 18px;
text-overflow: ellipsis;
white-space: nowrap;
}
.sidebar-user-text small {
overflow: hidden;
color: #8fa0ba;
font-size: 12px;
line-height: 16px;
text-overflow: ellipsis;
white-space: nowrap;
}
.admin-menu:not(.el-menu--collapse) {
width: 100%;
}
:deep(.el-menu) {
background-color: transparent;
}
:deep(.el-sub-menu__title) {
color: #bfcbd9;
}
:deep(.el-sub-menu__title:hover) {
background-color: #263445;
}
:deep(.el-sub-menu.is-active > .el-sub-menu__title) {
color: #409eff;
}
:deep(.el-menu-item) {
color: #bfcbd9;
}
:deep(.el-menu-item:hover) {
background-color: #263445;
}
:deep(.el-menu-item.is-active) {
color: #409eff;
background-color: #263445;
}
:deep(.el-menu--inline) {
background-color: #263445;
}
:deep(.el-menu--inline .el-menu-item) {
height: 46px;
background-color: #263445;
font-size: 14px;
}
:deep(.el-menu--inline .el-menu-item:hover),
:deep(.el-menu--inline .el-menu-item.is-active) {
background-color: #1f2d3d;
}
.menu-item-label {
min-width: 0;
}
.menu-item-badge {
margin-left: auto;
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: 9px;
background: #f43f5e;
color: #ffffff;
font-size: 11px;
font-style: normal;
font-weight: 700;
line-height: 18px;
text-align: center;
}
:deep(.el-menu--collapse .menu-item-badge) {
position: absolute;
top: 6px;
right: 5px;
min-width: 8px;
width: 8px;
height: 8px;
padding: 0;
border: 2px solid #304156;
border-radius: 50%;
color: transparent;
font-size: 0;
line-height: 0;
}
:global(.admin-menu-popper) {
--el-menu-bg-color: #304156;
--el-menu-text-color: #bfcbd9;
--el-menu-active-color: #409eff;
--el-menu-hover-bg-color: #263445;
}
:global(.admin-menu-popper .el-menu) {
border-right: none;
background-color: #304156;
}
:global(.admin-menu-popper .el-menu-item) {
color: #bfcbd9;
}
:global(.admin-menu-popper .el-menu-item:hover),
:global(.admin-menu-popper .el-menu-item.is-active) {
color: #409eff;
background-color: #263445;
}
.admin-workspace {
flex: 1;
min-width: 0;
min-height: 0;
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
display: inline-block;
}
.status-text {
font-size: 13px;
color: inherit;
font-weight: 500;
}
:deep(.el-dropdown-menu__item .status-dot) {
margin-right: 8px;
}
.admin-main {
flex: 1;
min-height: 0;
padding: 18px 24px 24px;
overflow-y: auto;
}
:global(.force-password-dialog) {
max-width: calc(100vw - 32px);
}
.force-password-form {
display: grid;
gap: 2px;
}
+1 -375
View File
@@ -542,378 +542,4 @@ async function handleForcedPasswordChange() {
</div>
</template>
<style scoped>
.admin-shell {
display: flex;
height: 100vh;
min-height: 100vh;
background-color: #f5f7fa;
overflow: hidden;
}
.admin-sidebar {
width: 220px;
height: 100vh;
flex: none;
background-color: #304156;
transition: width 0.3s ease;
display: flex;
flex-direction: column;
overflow: hidden;
}
.admin-shell--collapsed .admin-sidebar {
width: 64px;
}
.admin-sidebar-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px;
border-bottom: 1px solid #3d4e5f;
}
.admin-brand {
display: flex;
align-items: center;
gap: 8px;
text-decoration: none;
color: #fff;
overflow: hidden;
}
.brand-mark {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
background-color: #409eff;
border-radius: 4px;
font-size: 18px;
font-weight: 700;
flex-shrink: 0;
}
.brand-text {
font-size: 16px;
font-weight: 600;
white-space: nowrap;
}
.collapse-btn {
color: #bfcbd9;
cursor: pointer;
font-size: 20px;
flex-shrink: 0;
}
.collapse-btn:hover {
color: #fff;
}
.admin-menu {
--el-menu-bg-color: transparent;
--el-menu-text-color: #bfcbd9;
--el-menu-active-color: #409eff;
--el-menu-hover-bg-color: #263445;
flex: 1;
min-height: 0;
border-right: none;
background-color: transparent;
overflow-y: auto;
overflow-x: hidden;
}
.admin-sidebar-footer {
display: grid;
flex: none;
gap: 10px;
padding: 12px;
border-top: 1px solid #3d4e5f;
background: rgba(16, 24, 39, 0.18);
}
.admin-shell--collapsed .admin-sidebar-footer {
padding: 10px 8px;
}
.sidebar-notification {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
min-height: 32px;
padding: 0 10px;
border: 1px solid rgba(64, 158, 255, 0.35);
border-radius: 8px;
color: #d7dfec;
text-decoration: none;
transition:
background-color 0.2s,
border-color 0.2s;
}
.sidebar-notification:hover,
.sidebar-notification.router-link-active {
background-color: rgba(64, 158, 255, 0.14);
border-color: rgba(64, 158, 255, 0.8);
color: #fff;
}
.admin-shell--collapsed .sidebar-notification {
padding: 0;
}
.sidebar-notification-icon {
position: relative;
display: grid;
width: 20px;
height: 20px;
place-items: center;
}
.sidebar-notification-text {
font-size: 13px;
font-weight: 700;
}
.sidebar-badge {
position: absolute;
top: -8px;
right: -13px;
min-width: 16px;
height: 16px;
padding: 0 4px;
border: 2px solid #304156;
border-radius: 999px;
background: #ef4444;
color: #fff;
font-size: 10px;
font-style: normal;
font-weight: 800;
line-height: 12px;
text-align: center;
box-sizing: border-box;
}
.sidebar-status {
display: flex;
align-items: center;
justify-content: center;
gap: 7px;
width: 100%;
min-height: 30px;
padding: 0 10px;
border: 1px solid;
border-radius: 8px;
color: #d7dfec;
cursor: pointer;
transition:
background-color 0.2s,
border-color 0.2s;
}
.sidebar-status:hover {
background-color: rgba(255, 255, 255, 0.08);
}
.admin-shell--collapsed .sidebar-status {
padding: 0;
}
.sidebar-user {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
width: 100%;
padding: 8px;
border-radius: 10px;
cursor: pointer;
transition: background-color 0.2s;
}
.sidebar-user:hover {
background-color: rgba(255, 255, 255, 0.08);
}
.admin-shell--collapsed .sidebar-user {
justify-content: center;
padding: 8px 0;
}
.sidebar-user-text {
display: grid;
min-width: 0;
gap: 2px;
}
.sidebar-user-text strong {
overflow: hidden;
color: #fff;
font-size: 13px;
line-height: 18px;
text-overflow: ellipsis;
white-space: nowrap;
}
.sidebar-user-text small {
overflow: hidden;
color: #8fa0ba;
font-size: 12px;
line-height: 16px;
text-overflow: ellipsis;
white-space: nowrap;
}
.admin-menu:not(.el-menu--collapse) {
width: 100%;
}
:deep(.el-menu) {
background-color: transparent;
}
:deep(.el-sub-menu__title) {
color: #bfcbd9;
}
:deep(.el-sub-menu__title:hover) {
background-color: #263445;
}
:deep(.el-sub-menu.is-active > .el-sub-menu__title) {
color: #409eff;
}
:deep(.el-menu-item) {
color: #bfcbd9;
}
:deep(.el-menu-item:hover) {
background-color: #263445;
}
:deep(.el-menu-item.is-active) {
color: #409eff;
background-color: #263445;
}
:deep(.el-menu--inline) {
background-color: #263445;
}
:deep(.el-menu--inline .el-menu-item) {
height: 46px;
background-color: #263445;
font-size: 14px;
}
:deep(.el-menu--inline .el-menu-item:hover),
:deep(.el-menu--inline .el-menu-item.is-active) {
background-color: #1f2d3d;
}
.menu-item-label {
min-width: 0;
}
.menu-item-badge {
margin-left: auto;
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: 9px;
background: #f43f5e;
color: #ffffff;
font-size: 11px;
font-style: normal;
font-weight: 700;
line-height: 18px;
text-align: center;
}
:deep(.el-menu--collapse .menu-item-badge) {
position: absolute;
top: 6px;
right: 5px;
min-width: 8px;
width: 8px;
height: 8px;
padding: 0;
border: 2px solid #304156;
border-radius: 50%;
color: transparent;
font-size: 0;
line-height: 0;
}
:global(.admin-menu-popper) {
--el-menu-bg-color: #304156;
--el-menu-text-color: #bfcbd9;
--el-menu-active-color: #409eff;
--el-menu-hover-bg-color: #263445;
}
:global(.admin-menu-popper .el-menu) {
border-right: none;
background-color: #304156;
}
:global(.admin-menu-popper .el-menu-item) {
color: #bfcbd9;
}
:global(.admin-menu-popper .el-menu-item:hover),
:global(.admin-menu-popper .el-menu-item.is-active) {
color: #409eff;
background-color: #263445;
}
.admin-workspace {
flex: 1;
min-width: 0;
min-height: 0;
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
display: inline-block;
}
.status-text {
font-size: 13px;
color: inherit;
font-weight: 500;
}
:deep(.el-dropdown-menu__item .status-dot) {
margin-right: 8px;
}
.admin-main {
flex: 1;
min-height: 0;
padding: 18px 24px 24px;
overflow-y: auto;
}
:global(.force-password-dialog) {
max-width: calc(100vw - 32px);
}
.force-password-form {
display: grid;
gap: 2px;
}
</style>
<style scoped src="./AdminLayout.css"></style>
+732
View File
@@ -0,0 +1,732 @@
/* ========== 顶部栏 ========== */
.pc-app-shell {
display: flex;
flex-direction: column;
min-height: 100vh;
max-width: 100vw;
overflow-x: clip;
background: #f5f6f8;
}
.pc-topbar {
position: sticky;
top: 0;
z-index: 100;
display: flex;
align-items: center;
gap: 20px;
min-width: 0;
max-width: 100%;
height: 64px;
padding: 0 24px;
background: #fff;
border-bottom: 1px solid #eef1f5;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
/* ========== 品牌 ========== */
.pc-brand {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
flex-shrink: 0;
}
.pc-brand-mark {
display: grid;
width: 38px;
height: 38px;
place-items: center;
border-radius: 12px;
background: linear-gradient(135deg, #fff3e8 0%, #ffe4cc 100%);
color: #ff6a00;
font-size: 20px;
font-weight: 900;
}
.pc-brand-info {
display: flex;
flex-direction: column;
line-height: 1.2;
}
.pc-brand-text {
font-size: 16px;
font-weight: 800;
color: #17233d;
}
.pc-brand-sub {
font-size: 11px;
color: #8b9cb5;
font-weight: 600;
}
/* ========== 导航 ========== */
.pc-nav {
display: flex;
align-items: center;
gap: 4px;
margin-left: 10px;
min-width: 0;
height: 100%;
}
.pc-nav-link {
position: relative;
display: flex;
align-items: center;
gap: 5px;
padding: 8px 14px;
border-radius: 10px;
color: #5a6577;
font-size: 14px;
font-weight: 700;
text-decoration: none;
transition: all 0.2s;
}
.pc-nav-badge {
position: absolute;
top: 2px;
right: 2px;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: 999px;
background: #ef4444;
color: #fff;
font-size: 10px;
font-style: normal;
font-weight: 800;
line-height: 16px;
text-align: center;
}
.pc-nav-link:hover,
.pc-nav-link.router-link-active {
background: #fff3e8;
color: #ff6a00;
}
/* ========== 搜索 ========== */
.pc-search {
display: flex;
align-items: center;
gap: 8px;
margin-left: auto;
padding: 0 14px;
height: 40px;
border-radius: 12px;
background: #f4f6f8;
border: 1px solid transparent;
max-width: 320px;
min-width: 180px;
flex: 1;
transition: all 0.2s;
}
.pc-search:focus-within {
background: #fff;
border-color: #ff6a00;
box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.08);
}
.pc-search input {
border: none;
outline: none;
background: transparent;
color: #17233d;
font-size: 13px;
width: 100%;
}
.pc-search input::placeholder {
color: #a0aab6;
}
.pc-search .el-icon {
color: #a0aab6;
font-size: 16px;
flex-shrink: 0;
}
/* ========== 用户操作区 ========== */
.pc-user-actions {
display: flex;
align-items: center;
gap: 12px;
margin-left: 12px;
min-width: 0;
flex-shrink: 0;
height: 100%;
}
.pc-icon-link {
display: flex;
align-items: center;
gap: 10px;
padding: 0 22px;
height: 40px;
border-radius: 12px;
border: 1px solid #eef1f5;
background: #ffffff;
color: #5a6577;
font-size: 14px;
font-weight: 700;
text-decoration: none;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
}
.pc-icon-link:hover {
background: #fff3e8;
border-color: #ff6a00;
color: #ff6a00;
box-shadow: 0 4px 12px rgba(255, 106, 0, 0.05);
}
.service-link {
gap: 7px;
min-width: 92px;
justify-content: center;
padding: 0 18px;
border-color: rgba(255, 106, 0, 0.32);
border-radius: 10px;
background: #fff8f2;
color: #ff6a00;
font-size: 14px;
font-weight: 800;
}
.service-link .el-icon {
width: 18px;
height: 18px;
font-size: 18px;
stroke-width: 2.2;
}
.service-link:hover {
background: #fff3e8;
border-color: #ff6a00;
box-shadow: 0 6px 16px rgba(255, 106, 0, 0.1);
transform: translateY(-1px);
}
.pc-login-link {
display: flex;
align-items: center;
gap: 6px;
padding: 0 16px;
height: 40px;
border-radius: 10px;
background: #f4f6f8;
color: #17233d;
font-size: 13px;
font-weight: 700;
text-decoration: none;
transition: all 0.2s;
}
.pc-login-link:hover {
background: #eaeff5;
}
.pc-post-link {
display: flex;
align-items: center;
gap: 6px;
padding: 0 18px;
height: 40px;
border-radius: 10px;
background: #ff6a00;
color: #fff;
font-size: 14px;
font-weight: 800;
text-decoration: none;
box-shadow: 0 6px 16px rgba(255, 106, 0, 0.2);
transition: all 0.2s;
}
.pc-post-link:hover {
background: #e55d00;
transform: translateY(-1px);
}
/* ========== 已登录 - 用户块 ========== */
.pc-user-block {
position: relative;
height: 40px;
display: flex;
align-items: center;
}
.pc-user-trigger {
display: flex;
align-items: center;
gap: 8px;
padding: 4px 10px 4px 4px;
height: 36px;
border: none;
border-radius: 999px;
background: #f4f6f8;
cursor: pointer;
transition: all 0.2s;
}
.pc-user-trigger:hover,
.pc-user-trigger.active {
background: #eaeff5;
}
.pc-avatar-chip {
display: grid;
width: 28px;
height: 28px;
place-items: center;
border-radius: 50%;
overflow: hidden;
background: linear-gradient(135deg, #ff6a00 0%, #e55d00 100%);
color: #fff;
font-size: 13px;
font-weight: 800;
flex-shrink: 0;
}
.pc-avatar-img {
width: 100%;
height: 100%;
object-fit: cover;
}
.pc-avatar-text {
line-height: 1;
}
.pc-user-name {
max-width: 100px;
overflow: hidden;
color: #17233d;
font-size: 14px;
font-weight: 700;
text-overflow: ellipsis;
white-space: nowrap;
}
.pc-realname-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 48px;
height: 22px;
padding: 0 8px;
border-radius: 999px;
font-size: 12px;
font-weight: 800;
line-height: 1;
white-space: nowrap;
}
.pc-growth-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 42px;
height: 22px;
padding: 0 8px;
border-radius: 999px;
font-size: 12px;
font-weight: 900;
line-height: 1;
white-space: nowrap;
}
.pc-growth-badge.is-normal {
background: #eef2ff;
color: #4f46e5;
}
.pc-growth-badge.is-platinum {
background: #eff6ff;
color: #2563eb;
}
.pc-growth-badge.is-diamond {
background: #ecfeff;
color: #0891b2;
}
.pc-growth-badge.is-peak {
background: #fff7ed;
color: #ea580c;
}
.pc-realname-badge.is-verified,
.dropdown-status.is-verified {
background: #ecfdf3;
color: #16a34a;
}
.pc-realname-badge.is-pending,
.dropdown-status.is-pending {
background: #fff7ed;
color: #f97316;
}
.pc-realname-badge.is-rejected,
.dropdown-status.is-rejected {
background: #fff1f2;
color: #e11d48;
}
.pc-realname-badge.is-unverified,
.dropdown-status.is-unverified {
background: #f1f5f9;
color: #64748b;
}
.arrow-icon {
font-size: 12px;
color: #8b9cb5;
transition: transform 0.3s;
}
.arrow-icon.rotated {
transform: rotate(180deg);
}
/* ========== 下拉菜单容器 (Hover Bridge) ========== */
.pc-user-dropdown-container {
position: absolute;
top: 100%;
right: 0;
z-index: 200;
padding-top: 12px;
}
.pc-user-dropdown {
width: 388px;
padding: 14px;
border-radius: 14px;
background: #fff;
border: 1px solid #eef1f5;
box-shadow: 0 10px 30px rgba(23, 35, 61, 0.15);
}
.dropdown-item {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
padding: 10px 14px;
border: none;
border-radius: 10px;
background: none;
color: #475569;
font-size: 14px;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition: all 0.2s;
}
.dropdown-growth-panel {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin-bottom: 10px;
}
.dropdown-growth-panel > div {
display: grid;
gap: 5px;
min-width: 0;
min-height: 62px;
padding: 11px 12px;
border-radius: 12px;
background: #f8fafc;
}
.dropdown-growth-panel span {
color: #8b9cb5;
font-size: 12px;
font-weight: 800;
}
.dropdown-growth-panel strong {
min-width: 0;
overflow: hidden;
color: #7c3aed;
font-size: 18px;
font-weight: 900;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.dropdown-status {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 50px;
height: 20px;
margin-left: auto;
padding: 0 7px;
border-radius: 999px;
font-size: 11px;
font-weight: 800;
line-height: 1;
white-space: nowrap;
}
.dropdown-item:hover {
background: #fff3e8;
color: #ff6a00;
transform: translateX(4px);
}
.dropdown-item .el-icon {
font-size: 16px;
color: #94a3b8;
transition: color 0.2s;
}
.dropdown-item:hover .el-icon {
color: #ff6a00;
}
.dropdown-item.logout {
color: #ef4444;
}
.dropdown-item.logout .el-icon {
color: #ef4444;
}
.dropdown-item.logout:hover {
background: #fff1f0;
}
.dropdown-divider {
height: 1px;
margin: 12px 6px;
background: #f1f5f9;
}
.dropdown-basic-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.dropdown-basic-item {
display: flex;
align-items: center;
gap: 9px;
min-width: 0;
min-height: 42px;
padding: 0 12px;
border-radius: 10px;
background: #f8fafc;
color: #475569;
font-size: 13px;
font-weight: 800;
text-decoration: none;
transition: all 0.2s;
}
.dropdown-basic-item .el-icon {
flex: 0 0 auto;
color: #94a3b8;
font-size: 16px;
}
.dropdown-basic-item span:not(.dropdown-status) {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dropdown-basic-item:hover {
background: #fff3e8;
color: #ff6a00;
transform: translateY(-1px);
}
.dropdown-basic-item:hover .el-icon {
color: #ff6a00;
}
.dropdown-service-group {
padding: 0 2px;
}
.dropdown-service-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 2px 8px;
color: #17233d;
font-size: 14px;
font-weight: 900;
}
.dropdown-service-more {
color: #64748b;
font-size: 12px;
font-weight: 800;
text-decoration: none;
}
.dropdown-service-more:hover {
color: #ff6a00;
}
.dropdown-service-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
}
.dropdown-service-card,
.dropdown-seller-card {
text-decoration: none;
transition: all 0.2s;
}
.dropdown-service-card {
display: grid;
min-width: 0;
min-height: 74px;
place-items: center;
gap: 6px;
padding: 8px 4px;
border-radius: 10px;
background: #f8fafc;
color: #475569;
font-size: 12px;
font-weight: 800;
text-align: center;
}
.dropdown-service-card .el-icon {
color: #ff6a00;
font-size: 18px;
}
.dropdown-service-card:hover {
background: #fff3e8;
color: #ff6a00;
transform: translateY(-1px);
}
.dropdown-seller-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
}
.dropdown-seller-card {
display: grid;
min-width: 0;
min-height: 74px;
place-items: center;
gap: 6px;
padding: 8px 4px;
border-radius: 10px;
background: #f8fafc;
color: #475569;
font-size: 12px;
font-weight: 800;
text-align: center;
}
.dropdown-seller-card .el-icon {
color: #ff6a00;
font-size: 18px;
}
.dropdown-seller-card:hover {
background: #fff3e8;
color: #ff6a00;
transform: translateY(-1px);
}
.dropdown-seller-card:hover .el-icon {
color: #ff6a00;
}
/* 下拉动画 */
.dropdown-enter-active,
.dropdown-leave-active {
transition:
opacity 0.2s ease,
transform 0.2s ease;
}
.dropdown-enter-from {
opacity: 0;
transform: translateY(10px);
}
.dropdown-leave-to {
opacity: 0;
transform: translateY(5px);
}
/* ========== 主体 ---------- */
.pc-main {
flex: 1;
min-width: 0;
padding: 20px 24px;
overflow-x: clip;
}
/* ========== 页脚 ========== */
.pc-footer {
flex-shrink: 0;
padding: 16px 24px;
background: #fff;
border-top: 1px solid #eef1f5;
}
.pc-footer-inner {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
max-width: 1280px;
margin: 0 auto;
color: #8b9cb5;
font-size: 12px;
line-height: 1.6;
}
.pc-footer-icp {
color: #8b9cb5;
text-decoration: none;
transition: color 0.2s;
}
.pc-footer-icp:hover {
color: #5a6577;
}
.pc-footer-divider {
color: #d8dfe8;
}
.pc-footer-copyright {
color: #8b9cb5;
}
@media (max-width: 1280px) {
.pc-growth-badge {
display: none;
}
.pc-realname-badge {
display: none;
}
}
+1 -734
View File
@@ -359,737 +359,4 @@ async function handleSupportClick() {
</div>
</template>
<style scoped>
/* ========== 顶部栏 ========== */
.pc-app-shell {
display: flex;
flex-direction: column;
min-height: 100vh;
max-width: 100vw;
overflow-x: clip;
background: #f5f6f8;
}
.pc-topbar {
position: sticky;
top: 0;
z-index: 100;
display: flex;
align-items: center;
gap: 20px;
min-width: 0;
max-width: 100%;
height: 64px;
padding: 0 24px;
background: #fff;
border-bottom: 1px solid #eef1f5;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
/* ========== 品牌 ========== */
.pc-brand {
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
flex-shrink: 0;
}
.pc-brand-mark {
display: grid;
width: 38px;
height: 38px;
place-items: center;
border-radius: 12px;
background: linear-gradient(135deg, #fff3e8 0%, #ffe4cc 100%);
color: #ff6a00;
font-size: 20px;
font-weight: 900;
}
.pc-brand-info {
display: flex;
flex-direction: column;
line-height: 1.2;
}
.pc-brand-text {
font-size: 16px;
font-weight: 800;
color: #17233d;
}
.pc-brand-sub {
font-size: 11px;
color: #8b9cb5;
font-weight: 600;
}
/* ========== 导航 ========== */
.pc-nav {
display: flex;
align-items: center;
gap: 4px;
margin-left: 10px;
min-width: 0;
height: 100%;
}
.pc-nav-link {
position: relative;
display: flex;
align-items: center;
gap: 5px;
padding: 8px 14px;
border-radius: 10px;
color: #5a6577;
font-size: 14px;
font-weight: 700;
text-decoration: none;
transition: all 0.2s;
}
.pc-nav-badge {
position: absolute;
top: 2px;
right: 2px;
min-width: 16px;
height: 16px;
padding: 0 4px;
border-radius: 999px;
background: #ef4444;
color: #fff;
font-size: 10px;
font-style: normal;
font-weight: 800;
line-height: 16px;
text-align: center;
}
.pc-nav-link:hover,
.pc-nav-link.router-link-active {
background: #fff3e8;
color: #ff6a00;
}
/* ========== 搜索 ========== */
.pc-search {
display: flex;
align-items: center;
gap: 8px;
margin-left: auto;
padding: 0 14px;
height: 40px;
border-radius: 12px;
background: #f4f6f8;
border: 1px solid transparent;
max-width: 320px;
min-width: 180px;
flex: 1;
transition: all 0.2s;
}
.pc-search:focus-within {
background: #fff;
border-color: #ff6a00;
box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.08);
}
.pc-search input {
border: none;
outline: none;
background: transparent;
color: #17233d;
font-size: 13px;
width: 100%;
}
.pc-search input::placeholder {
color: #a0aab6;
}
.pc-search .el-icon {
color: #a0aab6;
font-size: 16px;
flex-shrink: 0;
}
/* ========== 用户操作区 ========== */
.pc-user-actions {
display: flex;
align-items: center;
gap: 12px;
margin-left: 12px;
min-width: 0;
flex-shrink: 0;
height: 100%;
}
.pc-icon-link {
display: flex;
align-items: center;
gap: 10px;
padding: 0 22px;
height: 40px;
border-radius: 12px;
border: 1px solid #eef1f5;
background: #ffffff;
color: #5a6577;
font-size: 14px;
font-weight: 700;
text-decoration: none;
cursor: pointer;
transition: all 0.2s;
white-space: nowrap;
}
.pc-icon-link:hover {
background: #fff3e8;
border-color: #ff6a00;
color: #ff6a00;
box-shadow: 0 4px 12px rgba(255, 106, 0, 0.05);
}
.service-link {
gap: 7px;
min-width: 92px;
justify-content: center;
padding: 0 18px;
border-color: rgba(255, 106, 0, 0.32);
border-radius: 10px;
background: #fff8f2;
color: #ff6a00;
font-size: 14px;
font-weight: 800;
}
.service-link .el-icon {
width: 18px;
height: 18px;
font-size: 18px;
stroke-width: 2.2;
}
.service-link:hover {
background: #fff3e8;
border-color: #ff6a00;
box-shadow: 0 6px 16px rgba(255, 106, 0, 0.1);
transform: translateY(-1px);
}
.pc-login-link {
display: flex;
align-items: center;
gap: 6px;
padding: 0 16px;
height: 40px;
border-radius: 10px;
background: #f4f6f8;
color: #17233d;
font-size: 13px;
font-weight: 700;
text-decoration: none;
transition: all 0.2s;
}
.pc-login-link:hover {
background: #eaeff5;
}
.pc-post-link {
display: flex;
align-items: center;
gap: 6px;
padding: 0 18px;
height: 40px;
border-radius: 10px;
background: #ff6a00;
color: #fff;
font-size: 14px;
font-weight: 800;
text-decoration: none;
box-shadow: 0 6px 16px rgba(255, 106, 0, 0.2);
transition: all 0.2s;
}
.pc-post-link:hover {
background: #e55d00;
transform: translateY(-1px);
}
/* ========== 已登录 - 用户块 ========== */
.pc-user-block {
position: relative;
height: 40px;
display: flex;
align-items: center;
}
.pc-user-trigger {
display: flex;
align-items: center;
gap: 8px;
padding: 4px 10px 4px 4px;
height: 36px;
border: none;
border-radius: 999px;
background: #f4f6f8;
cursor: pointer;
transition: all 0.2s;
}
.pc-user-trigger:hover,
.pc-user-trigger.active {
background: #eaeff5;
}
.pc-avatar-chip {
display: grid;
width: 28px;
height: 28px;
place-items: center;
border-radius: 50%;
overflow: hidden;
background: linear-gradient(135deg, #ff6a00 0%, #e55d00 100%);
color: #fff;
font-size: 13px;
font-weight: 800;
flex-shrink: 0;
}
.pc-avatar-img {
width: 100%;
height: 100%;
object-fit: cover;
}
.pc-avatar-text {
line-height: 1;
}
.pc-user-name {
max-width: 100px;
overflow: hidden;
color: #17233d;
font-size: 14px;
font-weight: 700;
text-overflow: ellipsis;
white-space: nowrap;
}
.pc-realname-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 48px;
height: 22px;
padding: 0 8px;
border-radius: 999px;
font-size: 12px;
font-weight: 800;
line-height: 1;
white-space: nowrap;
}
.pc-growth-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 42px;
height: 22px;
padding: 0 8px;
border-radius: 999px;
font-size: 12px;
font-weight: 900;
line-height: 1;
white-space: nowrap;
}
.pc-growth-badge.is-normal {
background: #eef2ff;
color: #4f46e5;
}
.pc-growth-badge.is-platinum {
background: #eff6ff;
color: #2563eb;
}
.pc-growth-badge.is-diamond {
background: #ecfeff;
color: #0891b2;
}
.pc-growth-badge.is-peak {
background: #fff7ed;
color: #ea580c;
}
.pc-realname-badge.is-verified,
.dropdown-status.is-verified {
background: #ecfdf3;
color: #16a34a;
}
.pc-realname-badge.is-pending,
.dropdown-status.is-pending {
background: #fff7ed;
color: #f97316;
}
.pc-realname-badge.is-rejected,
.dropdown-status.is-rejected {
background: #fff1f2;
color: #e11d48;
}
.pc-realname-badge.is-unverified,
.dropdown-status.is-unverified {
background: #f1f5f9;
color: #64748b;
}
.arrow-icon {
font-size: 12px;
color: #8b9cb5;
transition: transform 0.3s;
}
.arrow-icon.rotated {
transform: rotate(180deg);
}
/* ========== 下拉菜单容器 (Hover Bridge) ========== */
.pc-user-dropdown-container {
position: absolute;
top: 100%;
right: 0;
z-index: 200;
padding-top: 12px;
}
.pc-user-dropdown {
width: 388px;
padding: 14px;
border-radius: 14px;
background: #fff;
border: 1px solid #eef1f5;
box-shadow: 0 10px 30px rgba(23, 35, 61, 0.15);
}
.dropdown-item {
display: flex;
align-items: center;
gap: 10px;
width: 100%;
padding: 10px 14px;
border: none;
border-radius: 10px;
background: none;
color: #475569;
font-size: 14px;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition: all 0.2s;
}
.dropdown-growth-panel {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin-bottom: 10px;
}
.dropdown-growth-panel > div {
display: grid;
gap: 5px;
min-width: 0;
min-height: 62px;
padding: 11px 12px;
border-radius: 12px;
background: #f8fafc;
}
.dropdown-growth-panel span {
color: #8b9cb5;
font-size: 12px;
font-weight: 800;
}
.dropdown-growth-panel strong {
min-width: 0;
overflow: hidden;
color: #7c3aed;
font-size: 18px;
font-weight: 900;
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.dropdown-status {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 50px;
height: 20px;
margin-left: auto;
padding: 0 7px;
border-radius: 999px;
font-size: 11px;
font-weight: 800;
line-height: 1;
white-space: nowrap;
}
.dropdown-item:hover {
background: #fff3e8;
color: #ff6a00;
transform: translateX(4px);
}
.dropdown-item .el-icon {
font-size: 16px;
color: #94a3b8;
transition: color 0.2s;
}
.dropdown-item:hover .el-icon {
color: #ff6a00;
}
.dropdown-item.logout {
color: #ef4444;
}
.dropdown-item.logout .el-icon {
color: #ef4444;
}
.dropdown-item.logout:hover {
background: #fff1f0;
}
.dropdown-divider {
height: 1px;
margin: 12px 6px;
background: #f1f5f9;
}
.dropdown-basic-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.dropdown-basic-item {
display: flex;
align-items: center;
gap: 9px;
min-width: 0;
min-height: 42px;
padding: 0 12px;
border-radius: 10px;
background: #f8fafc;
color: #475569;
font-size: 13px;
font-weight: 800;
text-decoration: none;
transition: all 0.2s;
}
.dropdown-basic-item .el-icon {
flex: 0 0 auto;
color: #94a3b8;
font-size: 16px;
}
.dropdown-basic-item span:not(.dropdown-status) {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dropdown-basic-item:hover {
background: #fff3e8;
color: #ff6a00;
transform: translateY(-1px);
}
.dropdown-basic-item:hover .el-icon {
color: #ff6a00;
}
.dropdown-service-group {
padding: 0 2px;
}
.dropdown-service-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 2px 8px;
color: #17233d;
font-size: 14px;
font-weight: 900;
}
.dropdown-service-more {
color: #64748b;
font-size: 12px;
font-weight: 800;
text-decoration: none;
}
.dropdown-service-more:hover {
color: #ff6a00;
}
.dropdown-service-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
}
.dropdown-service-card,
.dropdown-seller-card {
text-decoration: none;
transition: all 0.2s;
}
.dropdown-service-card {
display: grid;
min-width: 0;
min-height: 74px;
place-items: center;
gap: 6px;
padding: 8px 4px;
border-radius: 10px;
background: #f8fafc;
color: #475569;
font-size: 12px;
font-weight: 800;
text-align: center;
}
.dropdown-service-card .el-icon {
color: #ff6a00;
font-size: 18px;
}
.dropdown-service-card:hover {
background: #fff3e8;
color: #ff6a00;
transform: translateY(-1px);
}
.dropdown-seller-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
}
.dropdown-seller-card {
display: grid;
min-width: 0;
min-height: 74px;
place-items: center;
gap: 6px;
padding: 8px 4px;
border-radius: 10px;
background: #f8fafc;
color: #475569;
font-size: 12px;
font-weight: 800;
text-align: center;
}
.dropdown-seller-card .el-icon {
color: #ff6a00;
font-size: 18px;
}
.dropdown-seller-card:hover {
background: #fff3e8;
color: #ff6a00;
transform: translateY(-1px);
}
.dropdown-seller-card:hover .el-icon {
color: #ff6a00;
}
/* 下拉动画 */
.dropdown-enter-active,
.dropdown-leave-active {
transition:
opacity 0.2s ease,
transform 0.2s ease;
}
.dropdown-enter-from {
opacity: 0;
transform: translateY(10px);
}
.dropdown-leave-to {
opacity: 0;
transform: translateY(5px);
}
/* ========== 主体 ---------- */
.pc-main {
flex: 1;
min-width: 0;
padding: 20px 24px;
overflow-x: clip;
}
/* ========== 页脚 ========== */
.pc-footer {
flex-shrink: 0;
padding: 16px 24px;
background: #fff;
border-top: 1px solid #eef1f5;
}
.pc-footer-inner {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
max-width: 1280px;
margin: 0 auto;
color: #8b9cb5;
font-size: 12px;
line-height: 1.6;
}
.pc-footer-icp {
color: #8b9cb5;
text-decoration: none;
transition: color 0.2s;
}
.pc-footer-icp:hover {
color: #5a6577;
}
.pc-footer-divider {
color: #d8dfe8;
}
.pc-footer-copyright {
color: #8b9cb5;
}
@media (max-width: 1280px) {
.pc-growth-badge {
display: none;
}
.pc-realname-badge {
display: none;
}
}
</style>
<style scoped src="./AppLayout.css"></style>