Show exchange badge and expanded rule tips in hub order popup.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-25 23:30:41 +08:00
parent 95d5469d12
commit d8140c6216
7 changed files with 72 additions and 14 deletions
+6
View File
@@ -24,6 +24,12 @@
{% elif page == 'trade' %}
<div class="dual-panel-grid{% if order_popup %} order-popup-trade-grid{% endif %}" style="grid-column:1/-1">
<div class="card order-popup-form-card">
{% if order_popup %}
<div class="order-popup-exchange-bar">
<span class="exchange-tag order-popup-exchange-tag">{{ exchange_display }}</span>
<span class="risk-status-badge risk-status-{{ risk_status.status|default('normal') }}" id="account-risk-badge" role="status" title="{{ risk_status.reason|default('', true) }}" data-status-label="{{ risk_status.status_label|default('正常') }}"{% if risk_status.freeze_until_ms %} data-freeze-until-ms="{{ risk_status.freeze_until_ms }}"{% endif %}>{{ risk_status.status_label|default('正常') }}</span>
</div>
{% endif %}
{% if not order_popup %}
<div style="display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px">
<h2 style="margin-bottom:0">实盘下单监控</h2>