恢复币本位「重试卖回」常显,带鱼屏内容区改回 1800 居中留白。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-04 07:15:16 +08:00
parent 2ab46a6ac3
commit 07db158656
5 changed files with 18 additions and 23 deletions
+7 -8
View File
@@ -2258,15 +2258,14 @@
}
function shouldShowSpotSellBanner(d, positions) {
if (!isCoinMarginMode()) return false;
const ss = d && d.spot_sell;
if (!ss) return false;
// 币本位下始终露出「重试卖回」(含有仓):便于清交易户残留,文案随选中/残留标的变化
const hasCoinPos = (positions || []).some(function (p) { return isCoinPos(p); });
if (hasCoinPos) return false;
if (ss.bridge_status === "pending_sell_spot") return true;
const eth = Number(ss.trading_eth || 0);
const btc = Number(ss.trading_btc || 0);
return eth > 1e-12 || btc > 1e-12;
const coinMode =
isCoinMarginMode() ||
hasCoinPos ||
(d && d.options_margin_mode === "coin") ||
!!(d && d.spot_sell);
return !!coinMode;
}
function spotSellUnderlying(ss) {