feat: 自行开发设计 ui样式优化 超管端-控制台 相关的页面

This commit is contained in:
zhanjunhao
2026-11-09 21:45:37 +08:00
parent 6ad95e2baa
commit 5713d541b0
242 changed files with 9242 additions and 5043 deletions
+18 -13
View File
@@ -58,6 +58,8 @@ const CustomerServiceFloat = lazy(() => import('../customer-service'));
// 跑马灯公告组件
import Marquee from './Marquee';
import { useMarquee } from '../../hooks/common/useMarquee';
import ConsolePageContainer from '../console/ConsolePageContainer';
import { isNavigationPathActive } from '../console/consoleRoutes';
const { Sider, Content, Header } = Layout;
@@ -92,13 +94,7 @@ const PageLayout = () => {
const [showGiftModal, setShowGiftModal] = useState(false);
const [giftQuota, setGiftQuota] = useState(0);
const shouldInnerPadding =
location.pathname.includes('/console') &&
!location.pathname.startsWith('/console/chat') &&
location.pathname !== '/console/playground' &&
location.pathname !== '/console/website-setting';
const isConsoleRoute = location.pathname.startsWith('/console');
const isConsoleRoute = isNavigationPathActive(location.pathname, '/console');
const showSider = isConsoleRoute && (!isMobile || drawerOpen);
const isHomePage = location.pathname === '/';
@@ -394,6 +390,11 @@ const PageLayout = () => {
)}
{showSider && (
<Sider
width={
siderForceExpanded
? 'var(--sidebar-width)'
: 'var(--sidebar-current-width)'
}
style={{
position: 'fixed',
left: 0,
@@ -439,15 +440,12 @@ const PageLayout = () => {
style={{
flex: '1 0 auto',
WebkitOverflowScrolling: 'touch',
padding: shouldInnerPadding
? isMobile
? '5px'
: '24px 24px 0 24px'
: '0',
padding: 0,
position: 'relative',
// 认证页等 min-height:100vh 的独立屏用它抵扣上方跑马灯占位的高度,
// 保证「占位 + 容器」总高恰为 100vh(无占位时回退 0px,不影响其他页面)
'--content-top-offset': `${marqueeHeight}px`,
'--console-header-offset': `${totalHeaderHeight}px`,
}}
>
{/* 跑马灯占位:当跑马灯存在时,为内容区域顶部增加等高间距,防止被固定头部遮挡 */}
@@ -458,10 +456,17 @@ const PageLayout = () => {
{marqueeHeight > 0 &&
!isExperienceCenter &&
!isUserCenter &&
!isConsoleRoute &&
!isOrgPage && (
<div style={{ height: marqueeHeight, flexShrink: 0 }} />
)}
<App />
{isConsoleRoute ? (
<ConsolePageContainer>
<App />
</ConsolePageContainer>
) : (
<App />
)}
</Content>
</Layout>
</Layout>