From f53cfcd76bfdb2d8c92b9c4e00ff041c6eb43704 Mon Sep 17 00:00:00 2001 From: xxm Date: Tue, 18 Aug 2026 08:32:36 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=87=E5=91=A8=E6=9C=9F=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E4=B8=AD=E6=8F=90=E7=A4=BA(#load-hint=E7=8B=AC?= =?UTF-8?q?=E7=AB=8B=E6=9D=A1,=E4=B8=8D=E7=A0=B4=E5=9D=8FstrategyList?= =?UTF-8?q?=E6=97=A7=E5=86=85=E5=AE=B9/=E6=BB=9A=E5=8A=A8)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/static/index.html b/static/index.html index a7174151..7dfe39a7 100644 --- a/static/index.html +++ b/static/index.html @@ -2201,6 +2201,7 @@ function renderResearch() { '' + '每版策略基于上一版归因分析迭代 · 点击行展开明细' + + '' + '
加载中...
' + '
' + '' + @@ -2259,6 +2260,9 @@ function saveBtPeriod() { async function loadStrategyList() { window._stratScrollY = window.scrollY || 0; // 2026-08-18 触发渲染前保存滚动位置 const listEl = document.getElementById('strategyList'); + // 2026-08-18 加载中提示(独立提示条,不破坏 strategyList 旧内容/滚动) + const hintEl = document.getElementById('load-hint'); + if (hintEl) { hintEl.textContent = '⏳ 加载中...'; hintEl.classList.remove('hidden'); } try { const ptMap = {'1m':'1m','6m':'6m','1y':'1y','2y':'2y','5y':'5y','10y':'10y'}; const pt = ptMap[window._btPeriodVal || document.getElementById('btPeriod')?.value || '2y'] || '2y'; @@ -2294,8 +2298,10 @@ async function loadStrategyList() { } } renderStrategyTable(strats); + if (hintEl) hintEl.classList.add('hidden'); } catch(e) { listEl.innerHTML = '
加载失败: ' + e.message + '
'; + if (hintEl) { hintEl.textContent = '⚠️ 加载失败'; hintEl.classList.remove('hidden'); } } }