From 608dee697ffd03ba49534947ed488f4e9d5104a8 Mon Sep 17 00:00:00 2001 From: becomer Date: Wed, 21 Oct 2026 13:26:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=AE=E9=A1=B6=E5=85=AC=E5=91=8A=E8=A7=86?= =?UTF-8?q?=E8=A7=89=E5=A2=9E=E5=BC=BA=20+=20=E8=AF=B7=E5=81=87=E9=94=80?= =?UTF-8?q?=E5=81=87=E9=A1=B5=E6=8E=A5=E5=85=A5=E5=85=AC=E5=91=8A=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 公告条美化(PinnedNotice.vue) - 增加左侧琥珀色渐变强调条,提升顶部存在感 - 增加 hover 态阴影过渡,点击反馈更明确 - 卡片背景改为更通透的柠檬暖色玻璃 2. 请假/销假页接入置顶公告(LeaveView.vue) - 引入 PinnedNotice 与 announceApi - onMounted 中异步拉取置顶公告,失败静默降级为空列表 (不阻塞页面主体加载) - 公告条置于页面最顶部,与打卡页位置和交互一致 (翻页、长文本横向滚动、点击查看全部) npm run build 与 vue-tsc 均通过。 --- frondend/src/components/PinnedNotice.vue | 18 +++++++++++++++++- frondend/src/views/leave/LeaveView.vue | 18 ++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/frondend/src/components/PinnedNotice.vue b/frondend/src/components/PinnedNotice.vue index be8df61..41472bd 100644 --- a/frondend/src/components/PinnedNotice.vue +++ b/frondend/src/components/PinnedNotice.vue @@ -194,11 +194,27 @@ onUnmounted(() => {