From 1b0acfdb08fe9195e035bbb50dd25124d5a130df Mon Sep 17 00:00:00 2001 From: dekun Date: Sun, 4 Oct 2026 21:23:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=BB=E8=A7=88=E6=8C=81=E4=BB=93=E5=88=97?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=20Put/Call=20=E7=BA=A2=E7=BB=BF=E8=89=B2?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E5=9B=9E=E4=B8=AD=E6=80=A7=E6=96=87=E6=A1=88?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- static/hub.css | 8 -------- static/hub.js | 20 ++------------------ templates/base.html | 2 +- templates/dashboard.html | 2 +- 4 files changed, 4 insertions(+), 28 deletions(-) diff --git a/static/hub.css b/static/hub.css index d8f8783..7ae22f2 100644 --- a/static/hub.css +++ b/static/hub.css @@ -856,14 +856,6 @@ button, .btn { font-size: 0.8rem; font-weight: 600; } -.opt-side-put, -.overview-cond-wait.opt-side-put .overview-cond-wait-line { - color: #fb7185; -} -.opt-side-call, -.overview-cond-wait.opt-side-call .overview-cond-wait-line { - color: #34d399; -} .overview-cond-src { display: inline-block; margin-left: 6px; diff --git a/static/hub.js b/static/hub.js index 39e5133..bfe612d 100644 --- a/static/hub.js +++ b/static/hub.js @@ -77,16 +77,6 @@ ); } - function optSideClass(optType, instId) { - const t = String(optType || "").toUpperCase(); - if (t === "P") return "opt-side-put"; - if (t === "C") return "opt-side-call"; - const id = String(instId || "").toUpperCase(); - if (id.indexOf("-P-") >= 0 || id.slice(-2) === "-P") return "opt-side-put"; - if (id.indexOf("-C-") >= 0 || id.slice(-2) === "-C") return "opt-side-call"; - return ""; - } - function condWaitLine(cond) { if (!cond) return "条件单占用"; const put = String(cond.opt_type || "").toUpperCase() !== "C"; @@ -108,11 +98,8 @@ const list = brief || []; if (!list.length) { if (cond) { - const sideCls = optSideClass(cond.opt_type, ""); return ( - '
' + + '
' + '
' + escapeHtml(condWaitLine(cond)) + "
" @@ -126,11 +113,8 @@ const id = p.inst_id || ""; const sheets = escapeHtml(String(p.sheets != null ? p.sheets : "—")); const fromCond = tagOpen && (!opened || opened === id); - const sideCls = optSideClass(p.opt_type, id); return ( - '
  • ' + + "
  • " + escapeHtml(id) + " · " + sheets + diff --git a/templates/base.html b/templates/base.html index 05e0ccb..4b3715e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -4,7 +4,7 @@ {% block title %}加密货币|OKX 期权中控{% endblock %} - + {% if session.get('logged_in') %} diff --git a/templates/dashboard.html b/templates/dashboard.html index a04be76..c02c8a2 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -15,6 +15,6 @@
    {% endblock %} {% block scripts %} - + {% endblock %}