恢复币本位「重试卖回」常显,带鱼屏内容区改回 1800 居中留白。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user