Update index.html

This commit is contained in:
2026-08-25 18:42:03 +08:00
parent 92276715fc
commit 91e51c56ed
-2
View File
@@ -40,7 +40,6 @@ summary{cursor:pointer;color:var(--accent);font-size:12px}
<div class="panel"><h2>各投手本周期内投放花费</h2><div class="chartbox"><canvas id="spendChart"></canvas></div></div>
<div class="panel"><h2>各投手主要订单 Package(花费最高)</h2><div class="chartbox"><canvas id="pkgChart"></canvas></div></div>
<div class="panel"><h2>投手明细</h2><div id="tables"></div></div>
<div class="panel" id="unmatchedPanel" style="display:none"><h2>未匹配到投手的 Adpingid</h2><div id="unmatched"></div></div>
<div class="foot" id="foot"></div>
</div>
<script>
@@ -60,7 +59,6 @@ function render(d){
const rows=b.pkgs.map(p=>'<tr><td class="pkg">'+p.pkg+'</td><td class="num">'+fmt(p.spend)+'</td></tr>').join('');
return '<div style="margin-bottom:18px"><div class="buyer-name">'+b.name+' <span style="color:var(--sub);font-weight:400">合计 '+fmt(b.total)+' · 主要订单 '+b.pkgs[0].pkg+'</span></div><details><summary>展开 '+b.pkgs.length+' 个 Package 明细</summary><table><thead><tr><th>Package</th><th class="num">花费</th></tr></thead><tbody>'+rows+'</tbody></table></details></div>';
}).join('');
if(d.unmatched&&d.unmatched.length){document.getElementById('unmatchedPanel').style.display='';document.getElementById('unmatched').innerHTML='<table><thead><tr><th>Adpingid</th><th>Package</th><th class="num">花费</th></tr></thead><tbody>'+d.unmatched.map(u=>'<tr><td>'+u.id+'</td><td class="pkg">'+u.pkg+'</td><td class="num">'+fmt(u.spend)+'</td></tr>').join('')+'</tbody></table>';}
document.getElementById('foot').textContent=d.meta.note;
}
</script>