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 %}