Show trading playbook in hub strategy docs.

Add an 执行手册 tab that renders docs/交易执行手册-期权与Gate.md as the default strategy view.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-21 22:16:54 +08:00
parent 301a464f29
commit e7f8e9201e
6 changed files with 32 additions and 12 deletions
+7 -6
View File
@@ -21,7 +21,7 @@
const btnPrintChecklistInline = document.getElementById("strategy-btn-print-checklist-inline");
const btnDownload = document.getElementById("strategy-btn-download");
let activeKey = "binance";
let activeKey = "playbook";
let activeView = "doc";
let tabsMeta = [];
let cache = {};
@@ -128,13 +128,14 @@
function sectionTag(title) {
const t = String(title || "");
if (/账户|定位/.test(t)) return "账户";
if (/开仓类型|开仓|入场|反转|顺势|波段|假破|结构/.test(t)) return "入场";
if (/总原则|原则/.test(t)) return "原则";
if (/账户|定位|分工/.test(t)) return "账户";
if (/开仓类型|开仓|入场|反转|顺势|波段|假破|结构|对冲|方向单/.test(t)) return "入场";
if (/周期/.test(t)) return "周期";
if (/方向/.test(t)) return "方向";
if (/纪律|出场|笔数|节奏/.test(t)) return "纪律";
if (/持仓|离场|强平/.test(t)) return "离场";
if (/资金|杠杆|计仓/.test(t)) return "仓位";
if (/纪律|出场|笔数|节奏|止损|次数/.test(t)) return "纪律";
if (/持仓|离场|强平|到期/.test(t)) return "离场";
if (/资金|杠杆|计仓|仓位|预算/.test(t)) return "仓位";
if (/系统|字段|对接/.test(t)) return "系统";
if (/修订|记录/.test(t)) return "版本";
if (/边界|关系|行情状态/.test(t)) return "边界";