diff --git a/embed_templates/embed_page_fragment.html b/embed_templates/embed_page_fragment.html index cfd11eb..cf25a77 100644 --- a/embed_templates/embed_page_fragment.html +++ b/embed_templates/embed_page_fragment.html @@ -24,6 +24,12 @@ {% elif page == 'trade' %}
+ {% if order_popup %} +
+ {{ exchange_display }} + {{ risk_status.status_label|default('正常') }} +
+ {% endif %} {% if not order_popup %}

实盘下单监控

diff --git a/embed_templates/embed_shell.html b/embed_templates/embed_shell.html index cf72e07..369bfb3 100644 --- a/embed_templates/embed_shell.html +++ b/embed_templates/embed_shell.html @@ -21,7 +21,7 @@ data-price-refresh-ms="{{ price_refresh_seconds * 1000 }}" > {% if order_popup %} - + {% endif %}
{% if not order_popup %} diff --git a/static/embed_order_popup.css b/static/embed_order_popup.css index 72bdbf8..9562ae0 100644 --- a/static/embed_order_popup.css +++ b/static/embed_order_popup.css @@ -1,4 +1,4 @@ -/* 中控弹窗 iframe:紧凑表单,无内部滚动条 */ +/* 中控弹窗 iframe:仅实盘下单模块 */ html:has(body[data-order-popup="1"]), body[data-order-popup="1"] { overflow: hidden !important; @@ -23,21 +23,64 @@ body[data-order-popup="1"] .order-popup-trade-grid { body[data-order-popup="1"] .order-popup-form-card { margin: 0; padding: 10px 12px 12px; + border: none; + background: transparent; + box-shadow: none; } -body[data-order-popup="1"] .order-popup-form-card .tip-collapse { - margin-bottom: 4px; +body[data-order-popup="1"] .order-popup-exchange-bar { + display: flex; + align-items: center; + gap: 10px; + flex-wrap: wrap; + margin-bottom: 10px; + padding-bottom: 8px; + border-bottom: 1px solid rgba(255, 255, 255, 0.08); } -body[data-order-popup="1"] .order-popup-form-card .tip-collapse-summary { - padding: 6px 8px; +body[data-order-popup="1"] .order-popup-exchange-tag { + font-size: 0.85rem; +} + +/* 规则说明:始终展开,不可折叠 */ +body[data-order-popup="1"] .order-popup-form-card details.tip-collapse { + display: block; + margin-bottom: 8px; + border: 1px solid rgba(255, 255, 255, 0.08); + border-radius: 8px; + padding: 0; + background: rgba(0, 0, 0, 0.15); +} + +body[data-order-popup="1"] .order-popup-form-card details.tip-collapse > summary { + display: block; + pointer-events: none; + cursor: default; + list-style: none; + padding: 8px 10px 4px; font-size: 12px; + font-weight: 600; + color: #cfd3ef; +} + +body[data-order-popup="1"] .order-popup-form-card details.tip-collapse > summary::-webkit-details-marker, +body[data-order-popup="1"] .order-popup-form-card details.tip-collapse > summary::marker { + display: none; + content: ""; +} + +body[data-order-popup="1"] .order-popup-form-card details.tip-collapse .tip-collapse-body { + display: block !important; + padding: 4px 10px 10px; + font-size: 11px; + line-height: 1.45; } body[data-order-popup="1"] #add-order-form { gap: 6px 8px; flex-wrap: wrap; align-items: center; + margin-top: 4px; } body[data-order-popup="1"] #add-order-form input, @@ -54,3 +97,12 @@ body[data-order-popup="1"] #add-order-form > span { body[data-order-popup="1"] .order-plan-preview-bar { margin-top: 8px; } + +html[data-theme="light"] body[data-order-popup="1"] .order-popup-exchange-bar { + border-bottom-color: rgba(0, 0, 0, 0.08); +} + +html[data-theme="light"] body[data-order-popup="1"] .order-popup-form-card details.tip-collapse { + border-color: rgba(0, 0, 0, 0.08); + background: rgba(0, 0, 0, 0.03); +} diff --git a/strategy_templates/order_monitor_rule_tips_binance.html b/strategy_templates/order_monitor_rule_tips_binance.html index a591ffd..acf35b6 100644 --- a/strategy_templates/order_monitor_rule_tips_binance.html +++ b/strategy_templates/order_monitor_rule_tips_binance.html @@ -1,4 +1,4 @@ -
+
开仓规则说明
规则:最多 {{ max_active_positions }} 仓;BTC {{ btc_leverage }}x / 山寨 {{ alt_leverage }}x; @@ -7,7 +7,7 @@ 人工开仓盈亏比不得低于 {{ manual_min_planned_rr }}:1
-
+
计仓与保本说明
计仓模式:{{ position_sizing_mode_label }}(仅 .env POSITION_SIZING_MODE,须无仓后重启) diff --git a/strategy_templates/order_monitor_rule_tips_gate.html b/strategy_templates/order_monitor_rule_tips_gate.html index a591ffd..acf35b6 100644 --- a/strategy_templates/order_monitor_rule_tips_gate.html +++ b/strategy_templates/order_monitor_rule_tips_gate.html @@ -1,4 +1,4 @@ -
+
开仓规则说明
规则:最多 {{ max_active_positions }} 仓;BTC {{ btc_leverage }}x / 山寨 {{ alt_leverage }}x; @@ -7,7 +7,7 @@ 人工开仓盈亏比不得低于 {{ manual_min_planned_rr }}:1
-
+
计仓与保本说明
计仓模式:{{ position_sizing_mode_label }}(仅 .env POSITION_SIZING_MODE,须无仓后重启) diff --git a/strategy_templates/order_monitor_rule_tips_gate_bot.html b/strategy_templates/order_monitor_rule_tips_gate_bot.html index 067d382..484f1ce 100644 --- a/strategy_templates/order_monitor_rule_tips_gate_bot.html +++ b/strategy_templates/order_monitor_rule_tips_gate_bot.html @@ -1,4 +1,4 @@ -
+
开仓规则说明
规则:最大同时持仓 {{ max_active_positions }}(当前 active {{ active_count }});与「趋势回调」计划互斥;BTC {{ btc_leverage }}x / 山寨 {{ alt_leverage }}x; @@ -7,7 +7,7 @@ 人工开仓盈亏比不得低于 {{ manual_min_planned_rr }}:1
-
+
计仓与保本说明
计仓模式:{{ position_sizing_mode_label }}(仅 .env POSITION_SIZING_MODE,须无仓后重启) diff --git a/strategy_templates/order_monitor_rule_tips_okx.html b/strategy_templates/order_monitor_rule_tips_okx.html index 12036fd..d0419d1 100644 --- a/strategy_templates/order_monitor_rule_tips_okx.html +++ b/strategy_templates/order_monitor_rule_tips_okx.html @@ -1,4 +1,4 @@ -
+
开仓规则说明
规则:最多 {{ max_active_positions }} 仓;BTC {{ btc_leverage }}x / 山寨 {{ alt_leverage }}x; @@ -7,7 +7,7 @@ 人工开仓盈亏比不得低于 {{ manual_min_planned_rr }}:1
-
+
计仓与保本说明
计仓模式:{{ position_sizing_mode_label }}(仅 .env POSITION_SIZING_MODE,须无仓后重启)