fix: BTC shows alt_score_ref as display score, not gated-zero score
This commit is contained in:
parent
dfcf4f43c4
commit
67f68f8756
@ -193,9 +193,6 @@ function BTCGateCard({ factors }: { factors: LatestIndicator["factors"] }) {
|
|||||||
否决原因: <span className="font-mono">{factors.block_reason}</span>
|
否决原因: <span className="font-mono">{factors.block_reason}</span>
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
{factors.alt_score_ref !== undefined && (
|
|
||||||
<p className="text-[10px] text-slate-400 mt-1">参考评分(ALT逻辑): {factors.alt_score_ref} 分</p>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -307,8 +304,22 @@ function IndicatorCards({ symbol }: { symbol: Symbol }) {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="text-right">
|
<div className="text-right">
|
||||||
<p className="font-mono font-bold text-lg text-slate-800">{data.score}/100</p>
|
{isBTC ? (
|
||||||
<p className="text-[10px] text-slate-500">{data.tier === "heavy" ? "加仓" : data.tier === "standard" ? "标准" : "不开仓"}</p>
|
<>
|
||||||
|
<p className="font-mono font-bold text-lg text-slate-800">
|
||||||
|
{data.factors?.alt_score_ref ?? data.score}/100
|
||||||
|
<span className="text-[10px] font-normal text-slate-400 ml-1">参考分</span>
|
||||||
|
</p>
|
||||||
|
<p className="text-[10px] text-slate-500">
|
||||||
|
{(data.factors?.gate_passed) ? (data.tier === "standard" ? "标准" : "不开仓") : "Gate否决"}
|
||||||
|
</p>
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<>
|
||||||
|
<p className="font-mono font-bold text-lg text-slate-800">{data.score}/100</p>
|
||||||
|
<p className="text-[10px] text-slate-500">{data.tier === "heavy" ? "加仓" : data.tier === "standard" ? "标准" : "不开仓"}</p>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user