From cc9e9e066e80c9787cf0bb0eb8553651ba19865b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=A5=E5=BE=AE?= Date: Thu, 9 Jul 2026 19:52:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=87=AA=E9=80=89Tab=E4=B8=A4=E8=A1=8C?= =?UTF-8?q?=E5=B8=83=E5=B1=80(=E7=AD=96=E7=95=A5=E5=85=A8=E6=98=BE)+?= =?UTF-8?q?=E6=96=B0=E5=A2=9ERR=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/static/index.html b/static/index.html index 83ed3dfa..33c4847f 100644 --- a/static/index.html +++ b/static/index.html @@ -301,7 +301,7 @@ function renderWatchlist() { 股票现价 涨跌%买入区间 - 信号策略 + RR信号 ${stocks.map(s => { const buyZone = (s.entry_low||0) + '~' + (s.entry_high||0); @@ -309,15 +309,21 @@ function renderWatchlist() { const sl = s.stop_loss || 0; const tp = s.take_profit || 0; const signal = s.timing_signal || ''; - const action = (s.action||'').slice(0,60); + const action = (s.action||''); + const price = s.price || 0; + const chg = s.change_pct || 0; + const priceDisplay = price ? price.toFixed(2) : '—'; return ` - -
${s.name}
${s.code}
- ${(s.price||'—')} - ${(s.change_pct||0)>=0?'+':''}${(s.change_pct||0).toFixed(2)} - ${buyZone} - ${signal||'—'} - ${action||'—'} + +
${s.name}
${s.code}
+ ${priceDisplay} + ${chg>=0?'+':''}${chg.toFixed(2)} + ${buyZone}
损${sl} 盈${tp} + ${rr>0?rr.toFixed(2):'—'} + ${signal||'—'} + + + ${action || '—'} `; }).join('')}