Make hedge the default home and drop unused product-surface entries.

Put永期/期期对冲 first in nav, default embed tab to hedge_plan, and remove risk-policy/options-account UI instead of only hiding them.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-14 18:51:57 +08:00
parent cfecbcfbb5
commit d40a0d25be
8 changed files with 49 additions and 61 deletions
+3 -3
View File
@@ -44,7 +44,7 @@
const t = new URLSearchParams(location.search).get("tab");
if (t) return t;
} catch (_) {}
return document.body.getAttribute("data-page") || "trade";
return document.body.getAttribute("data-page") || "hedge_plan";
}
function listWindowQueryString() {
@@ -401,7 +401,7 @@
const options = opts || {};
if (!tab) return;
if (!pageNavAllowed(tab)) {
void loadTab("trade", { replace: true });
void loadTab("hedge_plan", { replace: true });
return;
}
@@ -564,7 +564,7 @@
initBootPane();
const bootTab = getTab();
if (!pageNavAllowed(bootTab)) {
void loadTab("trade", { replace: true });
void loadTab("hedge_plan", { replace: true });
return;
}
if (bootTab === "settings") {
+3 -3
View File
@@ -2,7 +2,7 @@
* 实例手机壳: ≤720px 底栏 +「更多」,与 embed soft-nav 同步.
*/
(function (global) {
const PRIMARY = { trade: 1, key_monitor: 1, options: 1 };
const PRIMARY = { hedge_plan: 1, options: 1 };
const MQ = "(max-width: 720px)";
function isEmbedShell() {
@@ -26,7 +26,7 @@
const t = new URLSearchParams(location.search).get("tab");
if (t) return t;
} catch (_) {}
return (document.body && document.body.getAttribute("data-page")) || "trade";
return (document.body && document.body.getAttribute("data-page")) || "hedge_plan";
}
function closeMore() {
@@ -106,7 +106,7 @@
env_config: "/env_config",
settings: "/settings",
};
location.href = pathMap[tab] || "/trade";
location.href = pathMap[tab] || "/hedge-plan";
}
function bindChrome() {