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'); } } }