From a24099fc53259403c42b96887373a934520113b0 Mon Sep 17 00:00:00 2001 From: laoyang Date: Wed, 23 Sep 2026 17:36:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8A=82=E7=82=B9=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=EF=BC=9A=E6=89=80=E6=9C=89=E9=99=84=E4=BB=B6=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=EF=BC=8C=E4=B8=8D=E5=86=8D=E6=8A=8A=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=92=8C=E5=85=B6=E5=AE=83=E9=99=84=E4=BB=B6=E5=88=86?= =?UTF-8?q?=E5=BC=80=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前照片墙只显示图片,非图片附件只给一句「另有 N 个非图片附件」,要看得再进管理页。 现在全部附件同列在照片与附件区:图片仍是缩略图,视频 / PDF / Word 等按 MIME 显示类型图标(🎬 / 📄 / 📎),和缩略图一样占满 4:3 格子。 点击行为沿用批 7 的灯箱四态:图片 / 视频 / PDF 直接预览(视频可拖进度条、 PDF 内嵌阅读器),预览不了的(Word / ZIP 等)灯箱里给下载按钮。 页头与底部入口文案同步改为「附件 (N) / 管理附件(N)」, 最多展示 12 个,超出给「+N 个」入口进管理页。 已验证:本地全链 11 步全绿(渲染检查 316 项,新增图标格 / 四态标记 / 不再出现「另有」等 8 项断言);远端 e2e 322 项 0 失败(新增详情页统一展示 专项断言 7 项);部署后双 PHP 渲染逐字节一致、60 文件哈希一致。 --- assets/style.css | 4 +++ templates/nodes/show.php | 69 +++++++++++++++++++++++++--------------- 2 files changed, 48 insertions(+), 25 deletions(-) diff --git a/assets/style.css b/assets/style.css index fff8e96..053ac90 100644 --- a/assets/style.css +++ b/assets/style.css @@ -843,6 +843,10 @@ input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; padding display: flex; align-items: center; justify-content: center; height: 96px; font-size: 30px; background: var(--bg-soft); } +/* 批 8:详情页附件墙里的图标格 —— 和图片缩略图一样占满 4:3 格子 */ +.photo-card .attachment-icon { + height: 100%; aspect-ratio: 4 / 3; font-size: 34px; +} .attachment-meta { padding: 9px 11px; display: flex; align-items: center; gap: 6px; } .attachment-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; diff --git a/templates/nodes/show.php b/templates/nodes/show.php index 539522d..ff86373 100644 --- a/templates/nodes/show.php +++ b/templates/nodes/show.php @@ -57,7 +57,7 @@ if (!empty($node['duration_minutes'])) {
编辑节点 - 📷 照片 () + 📎 附件 () 返回活动
@@ -144,33 +144,55 @@ if (!empty($node['duration_minutes'])) {

照片与附件()

- +
- - - - <?= e($attRow['file_name']) ?> - + + + + + <?= e($attName) ?> + + + + + + + - count($showPhotos)): ?> + count($showAtts)): ?> - +张 + +个
@@ -178,11 +200,8 @@ $showPhotos = array_slice($photoRows, 0, 12);
- 📷 管理照片() + 📎 管理附件() - 0): ?> - 另有 个非图片附件 -