条件单页改为默认看历史,点新建才展开下发表单。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
+17
-3
@@ -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;
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
<link rel="icon" href="{{ url_for('static', filename='icons/favicon.ico') }}?v=2" sizes="any">
|
||||
<link rel="apple-touch-icon" href="{{ url_for('static', filename='icons/apple-touch-icon.png') }}?v=2">
|
||||
<link rel="manifest" href="/manifest.webmanifest">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=41">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='hub.css') }}?v=42">
|
||||
<script>
|
||||
(function () {
|
||||
try {
|
||||
|
||||
@@ -3,14 +3,19 @@
|
||||
{% block body %}
|
||||
<section class="page-head cond-head">
|
||||
<div>
|
||||
<h1>左侧条件开仓</h1>
|
||||
<h1>条件单</h1>
|
||||
<p class="muted cond-lead">中控只下发;盯盘、买币、开平仓都在客户端。有仓或已占用的机器不可选。</p>
|
||||
</div>
|
||||
<button type="button" class="btn" id="btn-cond-refresh">刷新</button>
|
||||
<div class="cond-head-actions">
|
||||
<button type="button" class="btn" id="btn-cond-refresh">刷新</button>
|
||||
<label for="cond-add-toggle" class="settings-primary inst-add-trigger">新建条件单</label>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<input type="checkbox" id="cond-add-toggle" class="cond-add-check">
|
||||
|
||||
<div class="cond-layout">
|
||||
<section class="panel cond-card">
|
||||
<section class="panel cond-card cond-add-panel">
|
||||
<div class="cond-card-head">
|
||||
<h2>新建条件单</h2>
|
||||
<span class="cond-chip">左侧单</span>
|
||||
@@ -67,19 +72,20 @@
|
||||
|
||||
<div class="cond-actions">
|
||||
<button type="button" class="btn" id="btn-cond-create">下发条件单</button>
|
||||
<label for="cond-add-toggle" class="btn btn-secondary">取消</label>
|
||||
<span class="muted" id="cf-status"></span>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="panel cond-card">
|
||||
<div class="cond-card-head">
|
||||
<h2>条件单列表</h2>
|
||||
<h2>条件单历史</h2>
|
||||
</div>
|
||||
<div id="cond-list" class="muted">加载中…</div>
|
||||
</section>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% block scripts %}
|
||||
<script src="{{ url_for('static', filename='cond_orders.js') }}?v=2"></script>
|
||||
<script src="{{ url_for('static', filename='cond_orders.js') }}?v=3"></script>
|
||||
<script>HubCondOrders.boot();</script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user