From dfd986e6cbf74453c814bb57dde81efa03e63ba8 Mon Sep 17 00:00:00 2001 From: hmo Date: Sat, 15 Aug 2026 07:42:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=A6=96=E9=A1=B5=E5=8A=A0=E6=B8=AF?= =?UTF-8?q?=E8=82=A1=E6=B8=A9=E5=8C=BA=E6=A8=AA=E5=B9=85(=E8=AF=BBstrategy?= =?UTF-8?q?=5Fweights=20markets.hk,=E4=B8=8EA=E8=82=A1=E5=88=86=E5=88=AB?= =?UTF-8?q?=E5=91=88=E7=8E=B0=E6=B8=A9=E5=8C=BA+=E6=BF=80=E6=B4=BB?= =?UTF-8?q?=E7=AD=96=E7=95=A5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/static/index.html b/static/index.html index 39a0bbda..33e33cf0 100644 --- a/static/index.html +++ b/static/index.html @@ -407,6 +407,30 @@ function renderOverview() { }).join('') + '' : '') + '
策略按当前温区自动激活(strategy_weights.json),选股/买卖/重评已温区感知
' + ''; + // ── 港股温区横幅(2026-08-14 港股接入,与A股分别呈现)── + try { + const hk = rw.markets && rw.markets.hk; + if (hk && hk.state) { + const hkRegIcon = {trend_up:'📈', choppy:'〰️', trend_down:'📉'}[hk.state] || '🌐'; + const hkRegName = {trend_up:'趋势市', choppy:'震荡市', trend_down:'下跌市'}[hk.state] || hk.state; + const hkRegColor = hk.state==='trend_up' ? 'text-emerald-400' : hk.state==='choppy' ? 'text-amber-400' : 'text-red-400'; + const hkActive = (hk.active || []).slice(0, 6); + regimeHtml += '
' + + '
' + + '
🇭🇰' + + '' + hkRegIcon + ' ' + hkRegName + '' + + '(港股·平滑' + (hk.state_date||'') + ')
' + + '
' + + '温度: ' + (hk.temp_band||'?') + '' + + '
' + + '
' + + (hkActive.length ? '
' + hkActive.map(n => { + return '' + n + ''; + }).join('') + '
' : '
当前温区无港股激活策略
') + + '
港股策略按港股温区独立调度(hk_strategies),与A股分别呈现
' + + '
'; + } + } catch(e) {} } } catch(e) {}