中控手机端使用独立底栏与卡片总览,电脑端布局保持不变。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+10
-6
@@ -77,11 +77,7 @@
|
||||
return best;
|
||||
}
|
||||
|
||||
function paint(list) {
|
||||
const root = document.getElementById("nav-spot-tickers");
|
||||
if (!root) return;
|
||||
const src = pickQuoteSource(list);
|
||||
const tickers = src ? src.tickers : [];
|
||||
function paintRoot(root, tickers, src) {
|
||||
["ETH", "BTC"].forEach(function (base) {
|
||||
const row = root.querySelector('.nav-spot-row[data-base="' + base + '"]');
|
||||
if (!row) return;
|
||||
@@ -119,6 +115,14 @@
|
||||
}
|
||||
}
|
||||
|
||||
function paint(list) {
|
||||
const src = pickQuoteSource(list);
|
||||
const tickers = src ? src.tickers : [];
|
||||
document.querySelectorAll("[data-hub-quotes]").forEach(function (root) {
|
||||
paintRoot(root, tickers, src);
|
||||
});
|
||||
}
|
||||
|
||||
let timer = null;
|
||||
let inflight = false;
|
||||
|
||||
@@ -137,7 +141,7 @@
|
||||
}
|
||||
|
||||
function boot() {
|
||||
if (!document.getElementById("nav-spot-tickers")) return;
|
||||
if (!document.querySelector("[data-hub-quotes]")) return;
|
||||
if (global.HubOverview) return;
|
||||
refresh();
|
||||
if (timer) clearInterval(timer);
|
||||
|
||||
Reference in New Issue
Block a user