读取策略配置
\n正在读取登录状态、账号配置和当前状态。
\n \ndiff --git a/tests/strategy_switch_worker_validation.mjs b/tests/strategy_switch_worker_validation.mjs index b14bf63..b313c8e 100644 --- a/tests/strategy_switch_worker_validation.mjs +++ b/tests/strategy_switch_worker_validation.mjs @@ -45,6 +45,8 @@ assert.ok(indexHtml.includes('qmt: { label: "QMT"')); assert.ok(indexHtml.includes('cn_industry_etf_rotation')); assert.ok(indexHtml.includes('id="income-layer-section"')); assert.ok(indexHtml.includes('id="option-overlay-section"')); +assert.ok(indexHtml.includes('id="margin-policy-stack"')); +assert.ok(indexHtml.includes('class="margin-policy-stack"')); assert.ok(indexHtml.includes('id="reserve-policy-stack"')); assert.ok(indexHtml.includes('class="reserve-policy-stack"')); assert.equal(indexHtml.match(/class="form-section dca-section"/g)?.length, 1); diff --git a/web/strategy-switch-console/index.html b/web/strategy-switch-console/index.html index bff399e..50af877 100644 --- a/web/strategy-switch-console/index.html +++ b/web/strategy-switch-console/index.html @@ -352,6 +352,12 @@ min-width: 0; } + .margin-policy-stack { + display: grid; + gap: 14px; + min-width: 0; + } + .reserve-policy-stack.policy-stack-muted { opacity: 0.58; } @@ -1068,17 +1074,12 @@ } .run-area { - grid-template-columns: minmax(0, 1fr) minmax(220px, 260px); - align-items: center; - gap: 12px 16px; - padding: 16px; - border: 1px solid rgba(215, 225, 235, 0.9); - border-radius: var(--radius-md); - background: - linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 251, 0.9)); + gap: 10px; + padding-top: 2px; } .run-button { + width: 100%; min-height: 58px; border-radius: 12px; background: @@ -1408,11 +1409,19 @@
允许融资与预留现金覆盖不能同时生效。
A 股 QMT 不使用 margin / 平台预留现金;现金约束在策略参数 execution_cash_reserve_ratio 内配置。
选平台、目标账号和策略,一次执行完成切换。
\n正在读取登录状态、账号配置和当前状态。
\n \n登录后查看账号配置。
\n\n允许融资与预留现金覆盖不能同时生效。
\nA 股 QMT 不使用 margin / 平台预留现金;现金约束在策略参数 execution_cash_reserve_ratio 内配置。
\n登录后才可执行切换。
\n \n选平台、目标账号和策略,一次执行完成切换。
\n正在读取登录状态、账号配置和当前状态。
\n \n登录后查看账号配置。
\n\n允许融资与预留现金覆盖不能同时生效。
\nA 股 QMT 不使用 margin / 平台预留现金;现金约束在策略参数 execution_cash_reserve_ratio 内配置。
\n登录后才可执行切换。
\n \n