diff --git a/ui/index.html b/ui/index.html index 7d2f306..d383bfa 100644 --- a/ui/index.html +++ b/ui/index.html @@ -70,10 +70,6 @@

仪表盘 Dashboard

-
-

最近交易 Recent transactions

-
-

我的共享 My sharings

diff --git a/ui/js/app.js b/ui/js/app.js index 9d65ade..a5be5c0 100644 --- a/ui/js/app.js +++ b/ui/js/app.js @@ -149,7 +149,6 @@ const txs = D.TRANSACTIONS; const monthUse = txs.filter((t) => t.type === "consume").reduce((a, t) => a + Math.abs(t.pts), 0); const monthEarn = txs.filter((t) => t.type === "earn").reduce((a, t) => a + t.pts, 0); - const recent = txs.slice(0, 5); $("#dash-stats").innerHTML = [ stat("点数余额 Points", D.fmt(D.USER.balance), "", "accent"), @@ -158,12 +157,6 @@ stat("交易笔数 Trades", txs.length + " 笔", "含充值 / 提现 / 消费 / 收益 / 赠送"), ].join(""); - $("#dash-recent").innerHTML = recent.map((t) => - '
' + esc(t.detail) + "
" + - '
' + esc(t.time) + " · " + esc(t.partner) + "
" + - '
' + (t.pts > 0 ? "+" : "") + D.fmt(t.pts) + "
" - ).join("") + (recent.length ? "" : '

暂无交易

'); - const on = D.SHARINGS.filter((s) => s.status === "on"); $("#dash-sharings").innerHTML = on.map((s) => '
' + esc(s.model) + "
" +