⚡️ refactor(core): 优化管理视图布局与样式及文案调整
* 重构文件管理视图的渲染容器结构以增强布局灵活性 * 统一并扩展多类卡片组件的通用样式定义 * 更新取件码输入框的文案描述以匹配实际逻辑
This commit is contained in:
1 parent
006d2392cc
commit
8c0503a020
3 files changed
+31
-14
No files matched your search
@@ -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); }
|
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); }
|
.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, .theme-2026-card-hover,
|
||||||
.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; }
|
.fcb-lifecycle-card, .feature-card, .therapist-card, .resource-card {
|
||||||
.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; }
|
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); }
|
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, a { border-radius: 14px; }
|
||||||
button:not(:disabled), a { cursor: pointer; }
|
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; }
|
.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; }
|
.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; }
|
.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: var(--fcb-bg) !important; }
|
||||||
.fcb-lifecycle-card { background: #f1f6f7 !important; }
|
|
||||||
.loading-overlay { background: rgba(225,235,238,.72) !important; backdrop-filter: blur(8px); }
|
.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; }
|
.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; } }
|
@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; } }
|
||||||
|
|||||||
@@ -244,14 +244,14 @@ export default {
|
|||||||
retrieve: {
|
retrieve: {
|
||||||
title: '文件取件',
|
title: '文件取件',
|
||||||
codeInput: {
|
codeInput: {
|
||||||
placeholder: '请输入5位取件码',
|
placeholder: '请输入取件码',
|
||||||
label: '取件码'
|
label: '取件码'
|
||||||
},
|
},
|
||||||
submit: '取件',
|
submit: '取件',
|
||||||
needSendFile: '需要发送文件?点击这里',
|
needSendFile: '需要发送文件?点击这里',
|
||||||
recordsDrawer: '取件记录',
|
recordsDrawer: '取件记录',
|
||||||
messages: {
|
messages: {
|
||||||
invalidCode: '请输入5位取件码',
|
invalidCode: '请输入取件码',
|
||||||
retrieveSuccess: '文件获取成功',
|
retrieveSuccess: '文件获取成功',
|
||||||
invalidCodeError: '无效的取件码',
|
invalidCodeError: '无效的取件码',
|
||||||
retrieveFailure: '获取文件失败:',
|
retrieveFailure: '获取文件失败:',
|
||||||
|
|||||||
@@ -1223,6 +1223,7 @@
|
|||||||
class="rounded-[24px] border px-3 py-3 shadow-md sm:px-4 sm:py-4"
|
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']"
|
:class="[isDarkMode ? 'border-gray-700 bg-gray-700/30' : 'border-gray-200 bg-white']"
|
||||||
>
|
>
|
||||||
|
<div ref="lifecycleViewportRef" class="fcb-lifecycle-viewport">
|
||||||
<TransitionGroup
|
<TransitionGroup
|
||||||
:css="false"
|
:css="false"
|
||||||
tag="div"
|
tag="div"
|
||||||
@@ -1303,6 +1304,7 @@
|
|||||||
</template>
|
</template>
|
||||||
</TransitionGroup>
|
</TransitionGroup>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section
|
<section
|
||||||
@@ -1858,6 +1860,7 @@ const syncMobileViewport = (event: MediaQueryListEvent) => {
|
|||||||
}
|
}
|
||||||
const isLifecycleExpanded = ref(false)
|
const isLifecycleExpanded = ref(false)
|
||||||
const lifecycleListRef = ref<HTMLElement | null>(null)
|
const lifecycleListRef = ref<HTMLElement | null>(null)
|
||||||
|
const lifecycleViewportRef = ref<HTMLElement | null>(null)
|
||||||
let lifecycleHeightAnimation: Animation | null = null
|
let lifecycleHeightAnimation: Animation | null = null
|
||||||
const isRetrievalHistoryExpanded = ref(false)
|
const isRetrievalHistoryExpanded = ref(false)
|
||||||
const retrievalTimelineEvents = computed(() =>
|
const retrievalTimelineEvents = computed(() =>
|
||||||
@@ -1874,19 +1877,19 @@ const visibleDetailTimeline = computed(() =>
|
|||||||
|
|
||||||
const animateLifecycleHeight = async () => {
|
const animateLifecycleHeight = async () => {
|
||||||
await nextTick()
|
await nextTick()
|
||||||
const list = lifecycleListRef.value
|
const viewport = lifecycleViewportRef.value
|
||||||
if (!list || reducedMotionQuery.matches) return
|
if (!viewport || reducedMotionQuery.matches) return
|
||||||
const currentHeight = list.getBoundingClientRect().height
|
const currentHeight = viewport.getBoundingClientRect().height
|
||||||
list.style.height = `${currentHeight}px`
|
viewport.style.height = `${currentHeight}px`
|
||||||
await nextTick()
|
await nextTick()
|
||||||
const targetHeight = list.scrollHeight
|
const targetHeight = viewport.scrollHeight
|
||||||
lifecycleHeightAnimation?.cancel()
|
lifecycleHeightAnimation?.cancel()
|
||||||
lifecycleHeightAnimation = list.animate(
|
lifecycleHeightAnimation = viewport.animate(
|
||||||
[{ height: `${currentHeight}px` }, { height: `${targetHeight}px` }],
|
[{ height: `${currentHeight}px` }, { height: `${targetHeight}px` }],
|
||||||
{ duration: 420, easing: 'cubic-bezier(0.22, 1, 0.36, 1)', fill: 'forwards' }
|
{ duration: 420, easing: 'cubic-bezier(0.22, 1, 0.36, 1)', fill: 'forwards' }
|
||||||
)
|
)
|
||||||
lifecycleHeightAnimation.addEventListener('finish', () => {
|
lifecycleHeightAnimation.addEventListener('finish', () => {
|
||||||
list.style.height = ''
|
viewport.style.height = ''
|
||||||
lifecycleHeightAnimation = null
|
lifecycleHeightAnimation = null
|
||||||
}, { once: true })
|
}, { once: true })
|
||||||
}
|
}
|
||||||
@@ -2551,6 +2554,11 @@ onUnmounted(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.fcb-lifecycle-viewport {
|
||||||
|
overflow: hidden;
|
||||||
|
will-change: height;
|
||||||
|
}
|
||||||
|
|
||||||
.fcb-lifecycle-list {
|
.fcb-lifecycle-list {
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user