diff --git a/src/assets/images/edi-live.webp b/src/assets/images/edi-live.webp index a94b0b3..959c8ff 100644 Binary files a/src/assets/images/edi-live.webp and b/src/assets/images/edi-live.webp differ diff --git a/src/assets/images/edi.png b/src/assets/images/edi.png index 98108c1..bf1c803 100644 Binary files a/src/assets/images/edi.png and b/src/assets/images/edi.png differ diff --git a/src/assets/style/global.less b/src/assets/style/global.less index 78d3a4d..dbf6f86 100644 --- a/src/assets/style/global.less +++ b/src/assets/style/global.less @@ -9,12 +9,18 @@ --app-sidebar-bg: #054f74; --app-page-bg: #f0f3f4; /* - * 极淡主色浅雾:上沿略提亮,约 220px 内回到灰底。 - * 用 background-attachment: fixed 让顶栏与内容共享同一张底。 + * 极淡主色浅雾:上沿略提亮,约 220px 内回到所选页面底。 + * 顶色必须混入 --app-page-bg,否则换背景时顶栏区域几乎不变。 + * background-attachment: fixed 让顶栏与内容共享同一张底。 */ --app-page-bg-gradient: linear-gradient( 180deg, - color-mix(in srgb, var(--app-primary-color, #054f74) 5%, #f5f8f9) 0%, + color-mix( + in srgb, + var(--app-primary-color, #054f74) 5%, + var(--app-page-bg, #f0f3f4) + ) + 0%, var(--app-page-bg, #f0f3f4) 220px, var(--app-page-bg, #f0f3f4) 100% ); @@ -26,7 +32,8 @@ var(--app-page-padding-bottom); --app-page-padding-list: var(--app-page-padding-top) var(--app-page-padding-x) 16px; --app-card-bg: #ffffff; - --app-card-border: #e5e6eb; + /* 块级外壳不要描边,靠底色/圆角区分层次 */ + --app-card-border: transparent; --app-elevated-bg: #ffffff; /* Mac 优先 SF Mono/Menlo,Windows 回落 Consolas;业务侧统一用 var(--app-font-mono) */ --app-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, @@ -342,15 +349,32 @@ body { /* * 运营端主内容:全局收紧「顶栏页签 → 页面内容」间距; - * 根容器背景透出全局浅雾,避免各页实色灰底盖住渐变。 + * 根容器透出布局壳上的 --app-page-bg,避免各页写死 #f0f3f4 / color-bg-1 盖住换色。 */ +.layout-content .page-layout-root { + background-color: var(--app-page-bg, #f0f3f4) !important; + background-image: none !important; +} + .layout-content .page-layout-root > [class*='-container'], -.layout-content .page-layout-root > [class*='-page'] { +.layout-content .page-layout-root > [class*='-page'], +.layout-content .page-layout-root > [class*='-layout'] { padding-top: var(--app-page-padding-top, 8px) !important; background-color: transparent !important; background-image: none !important; } +/* 块级外壳统一去描边(侧栏 / 列表卡 / 表格壳 / 内容面板) */ +.layout-content .custom-left-menu, +.layout-content .warehouse-list-page-card, +.layout-content .content-panel, +.layout-content .handsontable-pro-container, +.layout-content [class*='-page-card'], +.layout-content [class*='-list-page-card'] { + border: none !important; + box-shadow: none; +} + /* 夜间关闭浅雾,回到实色壳 */ html[data-theme='dark'], html[data-theme='dark'] body { diff --git a/src/components/BasicLayoutLeftRight/index.vue b/src/components/BasicLayoutLeftRight/index.vue index d1c0769..259b6b5 100644 --- a/src/components/BasicLayoutLeftRight/index.vue +++ b/src/components/BasicLayoutLeftRight/index.vue @@ -17,7 +17,7 @@ -->
diff --git a/src/components/CustomLeftMenu/index.vue b/src/components/CustomLeftMenu/index.vue index b3e2e8c..0486f86 100644 --- a/src/components/CustomLeftMenu/index.vue +++ b/src/components/CustomLeftMenu/index.vue @@ -616,6 +616,7 @@ --clm-selected-text: var(--app-primary-color); --clm-selected-border: color-mix(in srgb, var(--app-primary-color) 40%, transparent); --clm-border: rgba(15, 16, 17, 0.12); + /* 与设计规范卡片圆角一致(Card / 列表壳 8px) */ --clm-radius: 8px; /* 列表卡片统一高度 */ --clm-node-title-line-height: 18px; @@ -635,14 +636,14 @@ overflow: hidden; color: var(--clm-text); background: var(--clm-bg); - border: 1px solid var(--clm-border); - border-radius: 12px; + border: none; + border-radius: var(--clm-radius); box-shadow: none; } .sidebar-header { padding: 2px 4px 10px; - border-bottom: 1px solid var(--clm-border); + border-bottom: none; min-height: 40px; display: flex; flex-direction: column; @@ -1019,7 +1020,7 @@ padding: 8px 4px 2px; display: flex; justify-content: center; - border-top: 1px solid var(--clm-border); + border-top: none; } .menu-pagination-capsule { diff --git a/src/components/EdiAssistant/EdiAvatar.vue b/src/components/EdiAssistant/EdiAvatar.vue index abb68c9..88e5933 100644 --- a/src/components/EdiAssistant/EdiAvatar.vue +++ b/src/components/EdiAssistant/EdiAvatar.vue @@ -30,7 +30,7 @@ const props = withDefaults( defineProps<{ size?: 'sm' | 'md' | 'lg'; pulse?: boolean; - /** 待机动效;lg 默认开,会话小头像默认关 */ + /** 待机动效;lg 默认开(眨眼 live + 宿主跳动) */ animated?: boolean; }>(), { @@ -44,7 +44,7 @@ const animated = computed(() => props.animated === undefined ? props.size === 'lg' : props.animated, ); -/** 动图加载失败 / 系统减动效时回退静态 PNG */ +/** 动图失败 / 系统减动效时回退静态 PNG */ const liveFailed = ref(false); const reduceMotion = ref(false); let motionMq: MediaQueryList | null = null; diff --git a/src/components/EdiAssistant/ai-advisor.css b/src/components/EdiAssistant/ai-advisor.css index d53dfe7..8b24ff6 100644 --- a/src/components/EdiAssistant/ai-advisor.css +++ b/src/components/EdiAssistant/ai-advisor.css @@ -2026,6 +2026,18 @@ height: 72px; } +/* FAB 新立绘偏满幅,略缩小图形,点击热区仍 72 */ +.edi-fab-host .edi-fab-wrap--lg { + display: flex; + align-items: center; + justify-content: center; +} + +.edi-fab-host .edi-fab-wrap--lg .edi-fab__img { + width: 78%; + height: 78%; +} + .edi-fab-wrap--sm .edi-fab__pulse { inset: 1px; border-width: 1px; @@ -2045,45 +2057,15 @@ transition: transform 0.2s ease, filter 0.2s ease; } -/* - * 更好的静态图做法: - * 1) 轻呼吸(持续但克制) - * 2) 近场跟视(由 --edi-lean-* 驱动) - * 避免一直左右晃,那种更像廉价循环。 - */ +/* FAB 常态静止;眨眼靠 live webp;跳动由宿主 .is-attention 触发 */ .edi-fab-wrap.is-animated { - transform: translate3d( - calc(var(--edi-lean-x, 0) * 5px), - calc(var(--edi-lean-y, 0) * 4px), - 0 - ) - rotate(calc(var(--edi-lean-x, 0) * 6deg)); - transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1); - will-change: transform; -} - -/* 静态图才叠 CSS 呼吸;live webp 自带呼吸+眨眼,避免双重动效 */ -.edi-fab-wrap.is-animated:not(.is-live) .edi-fab__img { - animation: edi-idle-breathe 4.6s ease-in-out infinite; - will-change: transform, filter; + transform: none; } .edi-fab-wrap.is-live .edi-fab__img { animation: none; } -@keyframes edi-idle-breathe { - 0%, - 100% { - transform: translateY(0) scale(1); - filter: drop-shadow(0 6px 14px rgba(255, 122, 24, 0.3)); - } - 50% { - transform: translateY(-3px) scale(1.035); - filter: drop-shadow(0 10px 18px rgba(255, 122, 24, 0.4)); - } -} - .edi-fab__pulse { position: absolute; inset: 4px; @@ -2122,22 +2104,7 @@ cursor: grabbing; } -.edi-fab-host.is-dragging .edi-fab-wrap.is-animated, -.edi-fab-host.is-attention .edi-fab-wrap.is-animated, -.edi-fab-host.is-idle-nod .edi-fab-wrap.is-animated { - transition: none; - transform: none; -} - -.edi-fab-host.is-dragging .edi-fab-wrap.is-animated .edi-fab__img, -.edi-fab-host.is-attention .edi-fab-wrap.is-animated .edi-fab__img, -.edi-fab-host.is-idle-nod .edi-fab-wrap.is-animated .edi-fab__img { - animation: none; -} - @media (prefers-reduced-motion: reduce) { - .edi-fab-wrap.is-animated, - .edi-fab-wrap.is-animated .edi-fab__img, .edi-fab__pulse { animation: none !important; } diff --git a/src/components/EdiAssistant/index.vue b/src/components/EdiAssistant/index.vue index 0c89a30..eef086a 100644 --- a/src/components/EdiAssistant/index.vue +++ b/src/components/EdiAssistant/index.vue @@ -9,7 +9,6 @@ 'is-menu-open': menuOpen, 'is-panel-open': batchPanelVisible, 'is-attention': attentionActive, - 'is-idle-nod': idleNodActive, }" :style="fabStyle" :title="isOpsAudience ? t('ediAssistant.ops.actionAdvisor') : t('ediAssistant.title')" @@ -168,10 +167,6 @@ const ediY = ref(0); const viewport = ref({ width: window.innerWidth, height: window.innerHeight }); const menuOpen = ref(false); const attentionActive = ref(false); -const idleNodActive = ref(false); -/** 指针相对 FAB 中心,-1..1,用于轻跟视 */ -const leanX = ref(0); -const leanY = ref(0); const RING_R = 32; const RING_C = 2 * Math.PI * RING_R; @@ -184,8 +179,6 @@ const ringOffset = computed(() => { }); let attentionTimer: ReturnType | null = null; -let idleNodTimer: ReturnType | null = null; -let idleNodLoopTimer: ReturnType | null = null; let jobPollTimer: ReturnType | null = null; /** Active job ids we are watching; used to detect finish without nagging on first load. */ let trackedActiveIds = new Set(); @@ -250,8 +243,6 @@ const fabStyle = computed(() => ({ top: `${ediY.value}px`, width: `${FAB_SIZE}px`, height: `${FAB_SIZE}px`, - '--edi-lean-x': String(leanX.value), - '--edi-lean-y': String(leanY.value), })); const floatHostStyle = computed(() => ({ @@ -504,7 +495,6 @@ function openBatchPanel() { function playAttention() { attentionActive.value = false; - idleNodActive.value = false; // restart CSS animation requestAnimationFrame(() => { attentionActive.value = true; @@ -516,71 +506,6 @@ function playAttention() { }); } -function playIdleNod() { - if ( - dragState.value.active || - menuOpen.value || - batchPanelVisible.value || - attentionActive.value || - document.hidden || - window.matchMedia('(prefers-reduced-motion: reduce)').matches - ) { - return; - } - idleNodActive.value = false; - requestAnimationFrame(() => { - idleNodActive.value = true; - if (idleNodTimer) clearTimeout(idleNodTimer); - idleNodTimer = setTimeout(() => { - idleNodActive.value = false; - idleNodTimer = null; - }, 700); - }); -} - -function startIdleNodLoop() { - stopIdleNodLoop(); - if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) return; - idleNodLoopTimer = setInterval(playIdleNod, 9000); -} - -function stopIdleNodLoop() { - if (idleNodLoopTimer) { - clearInterval(idleNodLoopTimer); - idleNodLoopTimer = null; - } - if (idleNodTimer) { - clearTimeout(idleNodTimer); - idleNodTimer = null; - } - idleNodActive.value = false; -} - -/** 近场跟视:指针靠近才 lean,远处回正 */ -function onWindowPointerMove(e: PointerEvent) { - if (dragState.value.active || attentionActive.value) { - leanX.value = 0; - leanY.value = 0; - return; - } - const cx = ediX.value + FAB_SIZE / 2; - const cy = ediY.value + FAB_SIZE / 2; - const dx = e.clientX - cx; - const dy = e.clientY - cy; - const dist = Math.hypot(dx, dy); - const reach = 220; - if (dist > reach) { - leanX.value *= 0.82; - leanY.value *= 0.82; - if (Math.abs(leanX.value) < 0.02) leanX.value = 0; - if (Math.abs(leanY.value) < 0.02) leanY.value = 0; - return; - } - const falloff = 1 - dist / reach; - leanX.value = Math.max(-1, Math.min(1, (dx / reach) * falloff * 1.35)); - leanY.value = Math.max(-1, Math.min(1, (dy / reach) * falloff * 1.15)); -} - function onDocPointerDown(e: PointerEvent) { if (!menuOpen.value) return; const el = fabRef.value; @@ -734,11 +659,9 @@ watch(attentionToken, () => { onMounted(() => { initEdiPosition(); window.addEventListener('resize', onViewportResize); - window.addEventListener('pointermove', onWindowPointerMove, { passive: true }); document.addEventListener('visibilitychange', onVisibilityChange); document.addEventListener('pointerdown', onDocPointerDown, true); document.addEventListener('keydown', onKeydown); - startIdleNodLoop(); bridgeAssistantRoute(); // No mount-time /order/batch/jobs poll — wait for FAB click or job submit. }); @@ -747,12 +670,10 @@ onUnmounted(() => { onFloatDragEnd(); onFloatResizeEnd(); window.removeEventListener('resize', onViewportResize); - window.removeEventListener('pointermove', onWindowPointerMove); document.removeEventListener('visibilitychange', onVisibilityChange); document.removeEventListener('pointerdown', onDocPointerDown, true); document.removeEventListener('keydown', onKeydown); stopJobPoll(); - stopIdleNodLoop(); if (attentionTimer) clearTimeout(attentionTimer); }); @@ -768,23 +689,6 @@ onUnmounted(() => { animation: edi-fab-bounce 0.55s cubic-bezier(0.34, 1.3, 0.64, 1); } -.edi-fab-host.is-idle-nod:not(.is-attention) { - animation: edi-fab-idle-nod 0.7s cubic-bezier(0.34, 1.25, 0.64, 1); -} - -@keyframes edi-fab-idle-nod { - 0%, - 100% { - transform: translateY(0) scale(1); - } - 35% { - transform: translateY(-5px) scale(1.03); - } - 60% { - transform: translateY(1px) scale(0.985); - } -} - @keyframes edi-fab-bounce { 0% { transform: translateY(0) scale(1); diff --git a/src/components/HandsontablePro/index.vue b/src/components/HandsontablePro/index.vue index 9c71b64..bbd0152 100644 --- a/src/components/HandsontablePro/index.vue +++ b/src/components/HandsontablePro/index.vue @@ -2990,7 +2990,7 @@ position: relative; width: 100%; height: 100%; - border: 0.5px solid var(--color-border-2) !important; + border: none !important; border-radius: 4px; overflow: hidden; // 不出现外层滚动条;滚动仅发生在 Handsontable .ht_master .wtHolder flex: 1; diff --git a/src/components/top-nav/index.vue b/src/components/top-nav/index.vue index c3969d6..41af650 100644 --- a/src/components/top-nav/index.vue +++ b/src/components/top-nav/index.vue @@ -1387,8 +1387,8 @@ onUnmounted(() => { padding-top: @headerInsetTop; box-sizing: border-box; z-index: 100; - /* 透出全局固着浅雾,与主内容同一张底 */ - background: transparent; + /* 与页面背景联通:日间跟 --app-navbar-bg(= 页面底),夜间由 dark-mode 覆盖 */ + background: var(--app-navbar-bg, var(--app-page-bg, #f0f3f4)); box-shadow: none; border-bottom: none; diff --git a/src/layout/default-layout.vue b/src/layout/default-layout.vue index 22db8d5..94237c1 100644 --- a/src/layout/default-layout.vue +++ b/src/layout/default-layout.vue @@ -100,14 +100,14 @@ height: 100vh; display: flex; flex-direction: column; - background: transparent; + background: var(--app-page-bg, #f0f3f4); } - /* 运营端:与改前一致 */ + /* 运营端:整页壳跟页面背景走(含顶栏下方主区) */ .layout-content { flex: 1; overflow: hidden; - background-color: transparent; + background-color: var(--app-page-bg, #f0f3f4); transition: padding 0.2s cubic-bezier(0.34, 0.69, 0.1, 1); margin-top: 0; display: flex; @@ -117,6 +117,7 @@ flex: 1; overflow: hidden; height: 100%; + background-color: var(--app-page-bg, #f0f3f4); } } diff --git a/src/locale/en-US/settings.ts b/src/locale/en-US/settings.ts index cc71a49..64fa9c5 100644 --- a/src/locale/en-US/settings.ts +++ b/src/locale/en-US/settings.ts @@ -8,7 +8,7 @@ export default { 'settings.themeBrand.blue': 'Blue', 'settings.themeBrand.cyan': 'Cyan', 'settings.pageBg': 'Page Background', - 'settings.pageBgHint': 'Admin content area and official site homepage', + 'settings.pageBgHint': 'Admin full layout (incl. top nav) and official site homepage', 'settings.pageBg.ningzhi': 'Cream', 'settings.pageBg.default': 'Default Gray', 'settings.pageBg.mist': 'Mist Blue', diff --git a/src/locale/zh-CN/settings.ts b/src/locale/zh-CN/settings.ts index 87c1ab3..d92c8d9 100644 --- a/src/locale/zh-CN/settings.ts +++ b/src/locale/zh-CN/settings.ts @@ -8,7 +8,7 @@ export default { 'settings.themeBrand.blue': '海蓝', 'settings.themeBrand.cyan': '青蓝', 'settings.pageBg': '页面背景', - 'settings.pageBgHint': '管理端内容区与官网首页背景色', + 'settings.pageBgHint': '管理端整页(含顶栏)与官网首页背景色', 'settings.pageBg.ningzhi': '凝脂', 'settings.pageBg.default': '默认灰', 'settings.pageBg.mist': '雾蓝', diff --git a/src/store/modules/app/index.ts b/src/store/modules/app/index.ts index f2881a3..61ced03 100644 --- a/src/store/modules/app/index.ts +++ b/src/store/modules/app/index.ts @@ -60,6 +60,10 @@ const useAppStore = defineStore('app', { const mode = (partial.theme === 'dark' ? 'dark' : 'light') as ThemeMode; setStoredThemeMode(mode); applyThemeMode(mode); + // light 模式会清掉内联 --app-page-bg,需按当前预设重刷(含顶栏) + if (mode === 'light') { + applyPageBackgroundColor(this.pageBackgroundColor); + } } if (partial.pageBackgroundColor !== undefined) { setStoredPageBackground(partial.pageBackgroundColor); @@ -82,6 +86,9 @@ const useAppStore = defineStore('app', { this.theme = mode; setStoredThemeMode(mode); applyThemeMode(mode); + if (!dark) { + applyPageBackgroundColor(this.pageBackgroundColor); + } }, /** 日间 / 夜间一键切换 */ diff --git a/src/styles/dark-mode.less b/src/styles/dark-mode.less index cd48c37..313dce4 100644 --- a/src/styles/dark-mode.less +++ b/src/styles/dark-mode.less @@ -6,7 +6,7 @@ :root { --app-page-bg: #f0f3f4; --app-card-bg: #ffffff; - --app-card-border: #e5e6eb; + --app-card-border: transparent; --app-elevated-bg: #ffffff; } @@ -15,7 +15,7 @@ body[arco-theme='dark'] { --app-page-bg: var(--color-bg-1); --app-card-bg: var(--color-bg-2); - --app-card-border: var(--color-border-2); + --app-card-border: transparent; --app-elevated-bg: var(--color-bg-3); /* 覆盖 :root 内联主色浅底,夜间改为与深色底混合 */ --app-primary-color-light: color-mix(in srgb, var(--app-primary-color) 24%, var(--color-bg-2)); diff --git a/src/styles/warehouse-list-page.less b/src/styles/warehouse-list-page.less index 2197ed7..0073315 100644 --- a/src/styles/warehouse-list-page.less +++ b/src/styles/warehouse-list-page.less @@ -17,7 +17,7 @@ flex-direction: column; background: var(--app-card-bg); border-radius: 8px; - border: 1px solid var(--app-card-border); + border: none; padding: 0; box-sizing: border-box; overflow: hidden; diff --git a/src/utils/pageBackground.ts b/src/utils/pageBackground.ts index 1fec97f..5ae27aa 100644 --- a/src/utils/pageBackground.ts +++ b/src/utils/pageBackground.ts @@ -63,18 +63,38 @@ export function setStoredPageBackground(hex: string): void { } } -/** 写入 OMS + 官网首页共用的背景 CSS 变量 */ +/** 写入 OMS + 官网首页共用的背景 CSS 变量(含顶栏 / 整页壳) */ export function applyPageBackgroundColor(hex: string): void { const color = hex.startsWith('#') ? hex : `#${hex}`; const root = document.documentElement; + const isDark = document.body.getAttribute('arco-theme') === 'dark'; const warmPageBgs = new Set(['#f6f1e7', '#f5f4f1', '#faf9f7']); const soft = softenHex(color, warmPageBgs.has(color.toLowerCase()) ? 0.42 : 0.55); + // 夜间模式由 themeColor.applyThemeMode 接管底色,避免日间预设冲掉深色壳 + if (isDark) { + root.style.setProperty('--kc-page-bg', color); + root.style.setProperty('--kc-neutral', soft); + return; + } + root.style.setProperty('--app-page-bg', color); + root.style.setProperty('--app-navbar-bg', color); + // Arco 布局 / 大量业务页用 --color-bg-1,不同步则只有顶栏变、内容区仍是默认灰 + root.style.setProperty('--color-bg-1', color); + root.style.setProperty( + '--app-page-bg-gradient', + `linear-gradient(180deg, color-mix(in srgb, var(--app-primary-color, #054f74) 5%, ${color}) 0%, ${color} 220px, ${color} 100%)`, + ); root.style.setProperty('--kc-page-bg', color); root.style.setProperty('--kc-neutral', soft); root.style.setProperty('--ai-bg', color); root.style.setProperty('--ai-canvas', color); root.style.setProperty('--ai-bg-soft', soft); root.style.setProperty('--ai-header-bg', `color-mix(in srgb, ${color} 94%, transparent)`); + + // 直接刷 html/body,避免仅靠变量时被实色壳盖住 + root.style.backgroundColor = color; + document.body.style.backgroundColor = color; + document.body.style.backgroundImage = `linear-gradient(180deg, color-mix(in srgb, var(--app-primary-color, #054f74) 5%, ${color}) 0%, ${color} 220px, ${color} 100%)`; } diff --git a/src/utils/themeColor.ts b/src/utils/themeColor.ts index d6182dc..0e4ab1b 100644 --- a/src/utils/themeColor.ts +++ b/src/utils/themeColor.ts @@ -160,6 +160,11 @@ export function applyThemeMode(mode: ThemeMode): void { if (mode === 'dark') { document.body.setAttribute('arco-theme', 'dark'); root.setAttribute('data-theme', 'dark'); + // 清掉日间页背景对 Arco --color-bg-1 / body 的内联覆盖,交给暗色 token + root.style.removeProperty('--color-bg-1'); + root.style.removeProperty('background-color'); + document.body.style.removeProperty('background-color'); + document.body.style.removeProperty('background-image'); // 同步写到 :root,避免仅依赖 body 变量时列表壳仍读到 global.less 的浅色默认值 root.style.setProperty('--app-page-bg', 'var(--color-bg-1)'); root.style.setProperty('--app-page-bg-gradient', 'none'); @@ -172,10 +177,14 @@ export function applyThemeMode(mode: ThemeMode): void { root.setAttribute('data-theme', 'light'); root.style.removeProperty('--app-page-bg'); root.style.removeProperty('--app-page-bg-gradient'); + root.style.removeProperty('--color-bg-1'); root.style.removeProperty('--app-card-bg'); root.style.removeProperty('--app-card-border'); root.style.removeProperty('--app-elevated-bg'); - // 恢复日间透明浅顶栏 + root.style.removeProperty('background-color'); + document.body.style.removeProperty('background-color'); + document.body.style.removeProperty('background-image'); + // 恢复日间顶栏随页面底 const primary = getComputedStyle(root).getPropertyValue('--app-primary-color').trim() || DEFAULT_THEME_COLOR; diff --git a/src/views/channel/components/channel-config-page.less b/src/views/channel/components/channel-config-page.less index 32d8d82..51c75e1 100644 --- a/src/views/channel/components/channel-config-page.less +++ b/src/views/channel/components/channel-config-page.less @@ -30,6 +30,24 @@ height: 100%; } + /* BasicLayoutLeftRight 默认 bg-white 无圆角,会盖住侧栏 8px 圆角,这里透出给 custom-left-menu */ + :deep(.trb-transform-left) { + background: transparent !important; + border: none !important; + box-shadow: none !important; + border-radius: 8px !important; + height: 100%; + min-height: 0; + display: flex; + flex-direction: column; + } + + :deep(.trb-transform-left > *:first-child) { + flex: 1; + min-height: 0; + height: 100%; + } + :deep(.flex-1) { min-width: 0; width: 100%; diff --git a/src/views/channel/pricingWorkbench/index.vue b/src/views/channel/pricingWorkbench/index.vue index c2e30c1..05b7266 100644 --- a/src/views/channel/pricingWorkbench/index.vue +++ b/src/views/channel/pricingWorkbench/index.vue @@ -1099,7 +1099,7 @@ onMounted(async () => { height: 100%; min-height: 0; padding: 16px 16px 24px; - background: #f0f3f4; + background: var(--app-page-bg, #f0f3f4); box-sizing: border-box; gap: 12px; overflow: hidden; diff --git a/src/views/channel/salesProducts/index.vue b/src/views/channel/salesProducts/index.vue index 96489b2..cc2d968 100644 --- a/src/views/channel/salesProducts/index.vue +++ b/src/views/channel/salesProducts/index.vue @@ -6863,7 +6863,7 @@ height: 100%; padding: 16px; gap: 16px; - background-color: var(--color-fill-2); + background-color: var(--app-page-bg, #f0f3f4); overflow: hidden; } @@ -6922,8 +6922,8 @@ .right-content.content-panel { flex: 1; - background-color: var(--color-bg-1); - border-radius: 24px; + background-color: var(--app-card-bg, #fff); + border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; @@ -6934,8 +6934,8 @@ } .tabs-section { - border-bottom: 1px solid #e8e8e8; - padding: 10px 24px; + border-bottom: none; + padding: 10px 24px 4px; display: flex; justify-content: space-between; align-items: center; @@ -6948,37 +6948,64 @@ padding: 0; } + /* 贴合白面板,不做灰条+底边,避免拦腰切断感 */ .product-context-bar { display: flex; - flex-wrap: wrap; + flex-wrap: nowrap; align-items: center; - gap: 8px 12px; - padding: 10px 24px; - background: var(--color-fill-1); - border-bottom: 1px solid #e8e8e8; - font-size: 13px; - color: #595959; + gap: 6px 10px; + min-height: 28px; + margin-top: 6px; + margin-left: 16px; + margin-right: 16px; + padding: 6px 12px; + background: color-mix(in srgb, #ff7a18 8%, #fff); + border-radius: 6px; + border-bottom: none; + font-size: 12px; + color: var(--color-text-3); + overflow: hidden; + + .context-item { + display: inline-flex; + align-items: baseline; + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } .context-label { color: var(--color-text-3); + font-weight: 400; } .context-value { - color: var(--color-text-1); + color: var(--color-text-2); font-weight: 500; } .context-code { margin-left: 4px; color: var(--color-text-3); + font-weight: 400; } .context-divider { - color: #d9d9d9; + flex-shrink: 0; + width: 3px; + height: 3px; + margin: 0 2px; + border-radius: 50%; + background: var(--color-border-3, #c9cdd4); + color: transparent; + font-size: 0; + overflow: hidden; } .context-dirty-tag { margin-left: auto; + flex-shrink: 0; } } diff --git a/src/views/channel/serviceChannels/index.vue b/src/views/channel/serviceChannels/index.vue index 60c421b..9c458e5 100644 --- a/src/views/channel/serviceChannels/index.vue +++ b/src/views/channel/serviceChannels/index.vue @@ -5365,7 +5365,7 @@ const handleConfirmPublish = async () => { height: 100%; padding: 16px; gap: 16px; - background-color: var(--color-fill-2); + background-color: var(--app-page-bg, #f0f3f4); overflow: hidden; } @@ -5425,8 +5425,8 @@ const handleConfirmPublish = async () => { .channel-content.content-panel { flex: 1; - background-color: var(--color-bg-1); - border-radius: 24px; + background-color: var(--app-card-bg, #fff); + border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; @@ -5437,8 +5437,8 @@ const handleConfirmPublish = async () => { } .tabs-section { - border-bottom: 1px solid #e8e8e8; - padding: 10px 24px; + border-bottom: none; + padding: 10px 24px 4px; display: flex; justify-content: space-between; align-items: center; @@ -5451,37 +5451,64 @@ const handleConfirmPublish = async () => { padding: 0; } +/* 贴合白面板,不做灰条+底边,避免拦腰切断感 */ .channel-context-bar { display: flex; - flex-wrap: wrap; + flex-wrap: nowrap; align-items: center; - gap: 8px 12px; - padding: 10px 24px; - background: var(--color-fill-1); - border-bottom: 1px solid #e8e8e8; - font-size: 13px; - color: #595959; + gap: 6px 10px; + min-height: 28px; + margin-top: 6px; + margin-left: 16px; + margin-right: 16px; + padding: 6px 12px; + background: color-mix(in srgb, #ff7a18 8%, #fff); + border-radius: 6px; + border-bottom: none; + font-size: 12px; + color: var(--color-text-3); + overflow: hidden; + + .context-item { + display: inline-flex; + align-items: baseline; + min-width: 0; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } .context-label { color: var(--color-text-3); + font-weight: 400; } .context-value { - color: var(--color-text-1); + color: var(--color-text-2); font-weight: 500; } .context-code { margin-left: 4px; color: var(--color-text-3); + font-weight: 400; } .context-divider { - color: #d9d9d9; + flex-shrink: 0; + width: 3px; + height: 3px; + margin: 0 2px; + border-radius: 50%; + background: var(--color-border-3, #c9cdd4); + color: transparent; + font-size: 0; + overflow: hidden; } .context-dirty-tag { margin-left: auto; + flex-shrink: 0; } }