From 8c0503a02086b5d1b400220193b81332a6f6c03f Mon Sep 17 00:00:00 2001 From: Orion Date: Fri, 11 Sep 2026 11:00:46 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20refactor(core):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=AE=A1=E7=90=86=E8=A7=86=E5=9B=BE=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E4=B8=8E=E6=A0=B7=E5=BC=8F=E5=8F=8A=E6=96=87=E6=A1=88?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 重构文件管理视图的渲染容器结构以增强布局灵活性 * 统一并扩展多类卡片组件的通用样式定义 * 更新取件码输入框的文案描述以匹配实际逻辑 --- src/assets/style/main.css | 19 ++++++++++++++----- src/i18n/locales/zh-CN.ts | 4 ++-- src/views/manage/FileManageView.vue | 22 +++++++++++++++------- 3 files changed, 31 insertions(+), 14 deletions(-) diff --git a/src/assets/style/main.css b/src/assets/style/main.css index 2c8e5cf..480681e 100644 --- a/src/assets/style/main.css +++ b/src/assets/style/main.css @@ -453,9 +453,19 @@ button:not(:disabled), a { transition: color 220ms ease, background-color 220ms } html, body, #app { background: var(--fcb-bg); color: var(--fcb-text); } .app-container.light { background: radial-gradient(circle at 15% 10%, #f8fbfc 0, transparent 34%), linear-gradient(135deg,#e8f0f2,#f4f7f6 58%,#edf3f5); } -.theme-2026-card, .theme-2026-card-hover { background: var(--fcb-surface) !important; border-color: #dce6e9 !important; box-shadow: var(--fcb-shadow-out) !important; } -.theme-2026-card-hover { transition: transform 260ms cubic-bezier(.22,1,.36,1), box-shadow 260ms ease, border-color 220ms ease, background-color 220ms ease !important; } -.theme-2026-card-hover:hover { transform: translateY(-3px); box-shadow: 15px 18px 34px rgba(115,139,151,.23), -9px -9px 22px rgba(255,255,255,.9) !important; border-color: #b7d0d2 !important; } +.theme-2026-card, .theme-2026-card-hover, +.fcb-lifecycle-card, .feature-card, .therapist-card, .resource-card { + background: var(--fcb-bg) !important; + border-color: transparent !important; + box-shadow: -8px -8px 20px rgba(255,255,255,.8), 8px 8px 20px rgba(163,177,198,.5) !important; + transition: all 300ms ease !important; +} +.theme-2026-card-hover:hover, +.fcb-lifecycle-card:hover, .feature-card:hover, .therapist-card:hover, .resource-card:hover { + transform: translateY(-4px) !important; + border-color: transparent !important; + box-shadow: -10px -10px 25px rgba(255,255,255,.9), 10px 10px 25px rgba(163,177,198,.6) !important; +} input:not([type=file]), select, textarea { background: var(--fcb-surface) !important; color: var(--fcb-text) !important; border-color: #d5e1e5 !important; box-shadow: var(--fcb-shadow-in); } button, a { border-radius: 14px; } button:not(:disabled), a { cursor: pointer; } @@ -464,8 +474,7 @@ button:not(:disabled):hover { filter: brightness(1.025); } .from-indigo-500, .from-indigo-600, .from-purple-500, .from-purple-600, .from-pink-500, .via-purple-500, .to-purple-600, .to-pink-500 { --tw-gradient-from: var(--fcb-primary) !important; --tw-gradient-to: var(--fcb-primary-dark) !important; } .text-indigo-600, .text-indigo-500, .text-blue-600 { color: var(--fcb-primary-dark) !important; } .border-indigo-500, .border-indigo-600 { border-color: #a8c8cc !important; } -.fcb-lifecycle-card:hover { transform: translateY(-2px) !important; box-shadow: 0 14px 26px rgba(115,139,151,.22) !important; } -.fcb-lifecycle-card { background: #f1f6f7 !important; } +.fcb-lifecycle-card { background: var(--fcb-bg) !important; } .loading-overlay { background: rgba(225,235,238,.72) !important; backdrop-filter: blur(8px); } .loading-spinner { border-color: #d5e5e7 !important; border-top-color: var(--fcb-primary) !important; } @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .theme-2026-card-hover:hover, .fcb-lifecycle-card:hover { transform: none !important; } } diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index f764f48..1b29245 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -244,14 +244,14 @@ export default { retrieve: { title: '文件取件', codeInput: { - placeholder: '请输入5位取件码', + placeholder: '请输入取件码', label: '取件码' }, submit: '取件', needSendFile: '需要发送文件?点击这里', recordsDrawer: '取件记录', messages: { - invalidCode: '请输入5位取件码', + invalidCode: '请输入取件码', retrieveSuccess: '文件获取成功', invalidCodeError: '无效的取件码', retrieveFailure: '获取文件失败:', diff --git a/src/views/manage/FileManageView.vue b/src/views/manage/FileManageView.vue index 66885d7..01e64ad 100644 --- a/src/views/manage/FileManageView.vue +++ b/src/views/manage/FileManageView.vue @@ -1223,6 +1223,7 @@ class="rounded-[24px] border px-3 py-3 shadow-md sm:px-4 sm:py-4" :class="[isDarkMode ? 'border-gray-700 bg-gray-700/30' : 'border-gray-200 bg-white']" > +
+
@@ -1858,6 +1860,7 @@ const syncMobileViewport = (event: MediaQueryListEvent) => { } const isLifecycleExpanded = ref(false) const lifecycleListRef = ref(null) +const lifecycleViewportRef = ref(null) let lifecycleHeightAnimation: Animation | null = null const isRetrievalHistoryExpanded = ref(false) const retrievalTimelineEvents = computed(() => @@ -1874,19 +1877,19 @@ const visibleDetailTimeline = computed(() => const animateLifecycleHeight = async () => { await nextTick() - const list = lifecycleListRef.value - if (!list || reducedMotionQuery.matches) return - const currentHeight = list.getBoundingClientRect().height - list.style.height = `${currentHeight}px` + const viewport = lifecycleViewportRef.value + if (!viewport || reducedMotionQuery.matches) return + const currentHeight = viewport.getBoundingClientRect().height + viewport.style.height = `${currentHeight}px` await nextTick() - const targetHeight = list.scrollHeight + const targetHeight = viewport.scrollHeight lifecycleHeightAnimation?.cancel() - lifecycleHeightAnimation = list.animate( + lifecycleHeightAnimation = viewport.animate( [{ height: `${currentHeight}px` }, { height: `${targetHeight}px` }], { duration: 420, easing: 'cubic-bezier(0.22, 1, 0.36, 1)', fill: 'forwards' } ) lifecycleHeightAnimation.addEventListener('finish', () => { - list.style.height = '' + viewport.style.height = '' lifecycleHeightAnimation = null }, { once: true }) } @@ -2551,6 +2554,11 @@ onUnmounted(() => {