From 1735c031ea5ef76ddfa61f79c10387b4bc0d7822 Mon Sep 17 00:00:00 2001 From: dekun Date: Wed, 7 Oct 2026 12:06:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B9=B0=E4=B8=80/=E6=B5=81=E5=8A=A8=E6=80=A7?= =?UTF-8?q?=E4=BB=85=E5=9C=A8=E6=AE=8B=E6=A1=A3=E6=88=96=E6=98=8E=E7=A1=AE?= =?UTF-8?q?=E6=8B=89=E4=B8=8D=E5=88=B0=E6=97=B6=E6=A0=87=E9=BB=84=EF=BC=8C?= =?UTF-8?q?=E6=9C=AA=E5=90=8C=E6=AD=A5=E6=98=BE=E7=A4=BA=E7=A0=B4=E6=8A=98?= =?UTF-8?q?=E5=8F=B7=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- static/hub.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/static/hub.js b/static/hub.js index 3627156..d37c1df 100644 --- a/static/hub.js +++ b/static/hub.js @@ -207,17 +207,26 @@ function isLiquidityWeak(p) { if (!p) return false; - if (p.liquidity_ok === false || p.bid_invalid) return true; + // 仅明确残档/流动性不足时标黄;liquidity_ok==null 表示未同步,不标黄 + if (p.bid_invalid || p.liquidity_ok === false) return true; const uncovered = Number(p.uncovered_sheets); return Number.isFinite(uncovered) && uncovered > 0; } function bidLiquidityLine(p) { - if (p.bid_invalid || (p.bid_px == null && (p.bid_sz == null || p.bid_sz === ""))) { + const noBid = p.bid_px == null && (p.bid_sz == null || p.bid_sz === ""); + if (p.bid_invalid) { const reason = (p.bid_invalid_reason || "无买一/残档").toString(); const short = reason.length > 18 ? reason.slice(0, 18) + "…" : reason; return { text: short, weak: true }; } + if (noBid) { + // 已判定流动性不足 → 标黄;否则视为未同步,显示 — + if (p.liquidity_ok === false) { + return { text: "无买一", weak: true }; + } + return { text: "—", weak: false }; + } const px = fmtBidPx(p.bid_px); const sz = p.bid_sz != null ? String(p.bid_sz) : "—"; const uncovered = Number(p.uncovered_sheets);