From 5426889f9112be04ecd4b0af865107a02e1bd940 Mon Sep 17 00:00:00 2001 From: king Date: Fri, 19 Jun 2026 19:25:44 +0900 Subject: [PATCH] =?UTF-8?q?revert(dispatch):=20=EC=86=A1=EC=9E=A5=20?= =?UTF-8?q?=ED=81=B4=EB=A6=BD=EB=B3=B4=EB=93=9C=20=EB=B3=B5=EC=82=AC=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit J&T 가 path 방식으로 자동 조회되어 클립보드 복사가 불필요해짐. 복사 JS·토스트·CSS·data-copy 속성 삭제. 송장 링크/스타일은 유지. Co-Authored-By: Claude Opus 4.8 --- .../dispatch/templates/dispatch/detail.html | 31 +------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/app/modules/dispatch/templates/dispatch/detail.html b/app/modules/dispatch/templates/dispatch/detail.html index a85c5db..f5feb6f 100644 --- a/app/modules/dispatch/templates/dispatch/detail.html +++ b/app/modules/dispatch/templates/dispatch/detail.html @@ -20,11 +20,6 @@ text-decoration:underline !important;text-decoration-line:underline !important; text-decoration-thickness:2px;text-underline-offset:3px;cursor:pointer; } .dsp-track-link:hover { color:#1d4ed8 !important; } - .dsp-toast { position:fixed;left:50%;bottom:24px;transform:translateX(-50%); - background:#0f172a;color:#fff;padding:10px 18px;border-radius:9px; - font-size:14px;font-weight:600;opacity:0;pointer-events:none; - transition:opacity .18s;z-index:9999;box-shadow:0 4px 16px rgba(0,0,0,.25); } - .dsp-toast.show { opacity:.96; } .dsp-items { list-style:none;margin:0;padding:8px 0;border-top:1px dashed #e2e8f0;border-bottom:1px dashed #e2e8f0; } .dsp-items li { font-size:16px;font-weight:600;color:#0f172a;padding:2px 0; } .dsp-items .qty { color:#2563eb; } @@ -82,7 +77,7 @@
Package {{ p.package_id or '—' }}
Tracking {% set turl = p.tracking_id | courier_track(p.shipping_provider) %} - {% if turl %}{{ p.tracking_id }} + {% if turl %}{{ p.tracking_id }} {% else %}{{ p.tracking_id or '—' }}{% endif %}
@@ -111,7 +106,6 @@ {% endif %} -
{% endblock %} @@ -193,29 +187,6 @@ }); document.getElementById('dsp-search').addEventListener('input', applyFilter); - - // ── 송장번호 클릭 시 클립보드 복사(공식 페이지에 붙여넣기용) ── - var toast = document.getElementById('dsp-toast'); - var toastTimer = null; - function showToast(msg) { - if (!toast) return; - toast.textContent = msg; - toast.classList.add('show'); - clearTimeout(toastTimer); - toastTimer = setTimeout(function () { toast.classList.remove('show'); }, 1600); - } - document.addEventListener('click', function (e) { - var a = e.target.closest('.dsp-track-link'); - if (!a) return; - var num = (a.getAttribute('data-copy') || a.textContent || '').trim(); - if (!num) return; - // 링크는 그대로 새 탭으로 열리고(preventDefault 안 함), 송장번호만 복사한다. - if (navigator.clipboard && navigator.clipboard.writeText) { - navigator.clipboard.writeText(num) - .then(function () { showToast('송장번호 복사됨: ' + num); }) - .catch(function () {}); - } - }); })(); {% endblock %}