feat(admin): 侧边栏顶部加亚马逊/京东平台tab切换(2026-11-16 用户定案「不混一起」)

This commit is contained in:
2026-11-17 00:01:19 +08:00
parent 9d7da26c26
commit 3279b779e6
6 changed files with 297 additions and 1 deletions
+16
View File
@@ -65,6 +65,22 @@ button, input, textarea, select { font: inherit; }
.admin-brand-copy strong { color: var(--admin-text); font-size: 15px; font-weight: 600; letter-spacing: .5px; white-space: nowrap; }
.admin-brand-copy span { color: #77899b; font-size: 11px; white-space: nowrap; }
/* 侧边栏顶部平台 tab(亚马逊/京东,2026-11-16「不混」定案):纯显示分组,只对当前用户
* 已授权菜单分侧展示;单侧无可见菜单时整条隐藏(AdminLayout showPlatformTabs)。 */
.admin-platform-tabs { display: flex; gap: 6px; padding: 10px 12px 0; }
.admin-platform-tab {
flex: 1; height: 34px; text-align: center; font-size: 13px; font-weight: 600;
color: var(--admin-sidebar-text); background: transparent;
border: 1px solid var(--admin-border); border-radius: 9px; cursor: pointer;
}
.admin-platform-tab:hover { color: #1e3b57; background: rgba(47, 93, 139, 0.16); }
.admin-platform-tab.is-active {
color: var(--admin-primary-strong);
background: linear-gradient(180deg, #dce9f5, #edf4fa);
border-color: #b6cbe0;
box-shadow: inset 0 2px 0 #5f85ad;
}
.admin-menu-scroll { flex: 1; padding: 12px 10px; }
.admin-menu { border-right: 0; background: transparent; }
.admin-menu .el-sub-menu__title,