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