From e2a61a202ec21e99a6c5b8e13ec3c5dd6e42ba68 Mon Sep 17 00:00:00 2001 From: dekun Date: Mon, 5 Oct 2026 19:34:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=A1=E4=BB=B6=E5=8D=95=E9=A1=B5=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E9=BB=98=E8=AE=A4=E7=9C=8B=E5=8E=86=E5=8F=B2=EF=BC=8C?= =?UTF-8?q?=E7=82=B9=E6=96=B0=E5=BB=BA=E6=89=8D=E5=B1=95=E5=BC=80=E4=B8=8B?= =?UTF-8?q?=E5=8F=91=E8=A1=A8=E5=8D=95=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- static/cond_orders.js | 4 ++++ static/hub.css | 20 +++++++++++++++++--- templates/base.html | 2 +- templates/cond_orders.html | 16 +++++++++++----- 4 files changed, 33 insertions(+), 9 deletions(-) diff --git a/static/cond_orders.js b/static/cond_orders.js index 9361ab4..71f710f 100644 --- a/static/cond_orders.js +++ b/static/cond_orders.js @@ -370,6 +370,10 @@ const d = await r.json(); if (status) status.textContent = d.msg || ""; alert(d.msg || (d.ok ? "已下发" : "失败")); + if (d.ok) { + const tog = document.getElementById("cond-add-toggle"); + if (tog) tog.checked = false; + } refresh(); } diff --git a/static/hub.css b/static/hub.css index b2db34b..fc0f6aa 100644 --- a/static/hub.css +++ b/static/hub.css @@ -1419,8 +1419,25 @@ input.readonly { } .cond-head { justify-content: space-between; align-items: flex-start; } +.cond-head-actions { + display: flex; + flex-wrap: wrap; + gap: 8px; + align-items: center; +} .cond-lead { margin: 6px 0 0; max-width: 720px; line-height: 1.5; } +.cond-add-check { + position: absolute; + opacity: 0; + pointer-events: none; + width: 0; + height: 0; +} .cond-layout { display: grid; gap: 16px; } +.cond-add-panel { display: none; } +#cond-add-toggle:checked ~ .cond-layout .cond-add-panel { + display: block; +} .cond-card { padding: 18px 18px 16px; } .cond-card-head { display: flex; @@ -1987,9 +2004,6 @@ html.hub-phone-html body.page-cond-orders .cond-layout { flex-direction: column; gap: 14px; } -html.hub-phone-html body.page-cond-orders .cond-layout > .cond-card:last-child { - order: -1; -} html.hub-phone-html body.page-cond-orders .cond-card { padding: 14px; border-radius: 14px; diff --git a/templates/base.html b/templates/base.html index a8d9ca1..e0dc29b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,7 +11,7 @@ - + + {% endblock %}