总览持仓列去掉 Put/Call 红绿色,改回中性文案。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -856,14 +856,6 @@ button, .btn {
|
|||||||
font-size: 0.8rem;
|
font-size: 0.8rem;
|
||||||
font-weight: 600;
|
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 {
|
.overview-cond-src {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
|
|||||||
+2
-18
@@ -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) {
|
function condWaitLine(cond) {
|
||||||
if (!cond) return "条件单占用";
|
if (!cond) return "条件单占用";
|
||||||
const put = String(cond.opt_type || "").toUpperCase() !== "C";
|
const put = String(cond.opt_type || "").toUpperCase() !== "C";
|
||||||
@@ -108,11 +98,8 @@
|
|||||||
const list = brief || [];
|
const list = brief || [];
|
||||||
if (!list.length) {
|
if (!list.length) {
|
||||||
if (cond) {
|
if (cond) {
|
||||||
const sideCls = optSideClass(cond.opt_type, "");
|
|
||||||
return (
|
return (
|
||||||
'<div class="overview-cond-wait' +
|
'<div class="overview-cond-wait">' +
|
||||||
(sideCls ? " " + sideCls : "") +
|
|
||||||
'">' +
|
|
||||||
'<div class="overview-cond-wait-line">' +
|
'<div class="overview-cond-wait-line">' +
|
||||||
escapeHtml(condWaitLine(cond)) +
|
escapeHtml(condWaitLine(cond)) +
|
||||||
"</div></div>"
|
"</div></div>"
|
||||||
@@ -126,11 +113,8 @@
|
|||||||
const id = p.inst_id || "";
|
const id = p.inst_id || "";
|
||||||
const sheets = escapeHtml(String(p.sheets != null ? p.sheets : "—"));
|
const sheets = escapeHtml(String(p.sheets != null ? p.sheets : "—"));
|
||||||
const fromCond = tagOpen && (!opened || opened === id);
|
const fromCond = tagOpen && (!opened || opened === id);
|
||||||
const sideCls = optSideClass(p.opt_type, id);
|
|
||||||
return (
|
return (
|
||||||
'<li class="' +
|
"<li>" +
|
||||||
sideCls +
|
|
||||||
'">' +
|
|
||||||
escapeHtml(id) +
|
escapeHtml(id) +
|
||||||
" · " +
|
" · " +
|
||||||
sheets +
|
sheets +
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>{% block title %}加密货币|OKX 期权中控{% endblock %}</title>
|
<title>{% block title %}加密货币|OKX 期权中控{% endblock %}</title>
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=34">
|
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=35">
|
||||||
</head>
|
</head>
|
||||||
<body class="{% if request.path.startswith('/login') %}page-login{% elif request.path.startswith('/desk') %}page-desk{% elif request.path.startswith('/stats') %}page-stats{% elif request.path.startswith('/instances') %}page-instances{% elif request.path.startswith('/settings') %}page-settings{% elif request.path.startswith('/cond_orders') %}page-cond-orders{% elif request.path == '/' %}page-dashboard{% endif %}">
|
<body class="{% if request.path.startswith('/login') %}page-login{% elif request.path.startswith('/desk') %}page-desk{% elif request.path.startswith('/stats') %}page-stats{% elif request.path.startswith('/instances') %}page-instances{% elif request.path.startswith('/settings') %}page-settings{% elif request.path.startswith('/cond_orders') %}page-cond-orders{% elif request.path == '/' %}page-dashboard{% endif %}">
|
||||||
{% if session.get('logged_in') %}
|
{% if session.get('logged_in') %}
|
||||||
|
|||||||
@@ -15,6 +15,6 @@
|
|||||||
<div id="overview-grid"></div>
|
<div id="overview-grid"></div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block scripts %}
|
{% block scripts %}
|
||||||
<script src="{{ url_for('static', filename='hub.js') }}?v=23"></script>
|
<script src="{{ url_for('static', filename='hub.js') }}?v=24"></script>
|
||||||
<script>HubOverview.boot();</script>
|
<script>HubOverview.boot();</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user