修复「重试卖回」按钮:有持仓时正确隐藏,标的按 BTC/ETH 残留与当前选择显示。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-04 07:05:13 +08:00
parent 886ef82573
commit b79f309c5b
5 changed files with 21 additions and 7 deletions
+2 -2
View File
@@ -198,7 +198,7 @@
<div class="options-pos-head-actions">
<div id="opt-spot-sell-head" class="opt-spot-sell-head" hidden>
<span class="opt-spot-sell-avail" id="opt-spot-sell-avail-text"></span>
<button type="button" class="btn-primary opt-spot-sell-retry-btn" id="opt-spot-sell-retry-btn">重试卖回 ETH</button>
<button type="button" class="btn-primary opt-spot-sell-retry-btn" id="opt-spot-sell-retry-btn">重试卖回</button>
</div>
<button type="button" class="btn-secondary opt-pos-refresh-btn" id="opt-refresh-positions" title="刷新" aria-label="刷新">↻</button>
</div>
@@ -356,4 +356,4 @@
</div>
</div>
<script src="/static/options_expiry_countdown.js?v=1"></script>
<script src="/static/options_panel.js?v=66"></script>
<script src="/static/options_panel.js?v=67"></script>