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:
@@ -7062,7 +7062,7 @@ def index():
|
||||
@login_required
|
||||
def key_monitor_page():
|
||||
# CoinOX 去掉单独永续关键位开仓入口
|
||||
flash("CoinOX 不提供关键位自动开仓,请使用期权或对冲计划")
|
||||
flash("本仓仅对冲,请使用对冲计划")
|
||||
return redirect("/hedge-plan")
|
||||
|
||||
|
||||
@@ -7070,51 +7070,41 @@ def key_monitor_page():
|
||||
@login_required
|
||||
def trade_page():
|
||||
# CoinOX 去掉单独永续下单入口
|
||||
flash("CoinOX 不提供单独永续下单,请使用期权或对冲计划")
|
||||
flash("本仓仅对冲,请使用对冲计划")
|
||||
return redirect("/hedge-plan")
|
||||
|
||||
|
||||
@app.route("/records")
|
||||
@login_required
|
||||
def records_page():
|
||||
# CoinOX 已移除「交易记录与复盘」
|
||||
flash("CoinOX 不提供交易记录与复盘,请使用期权复盘或对冲计划")
|
||||
return redirect("/hedge-plan")
|
||||
flash("本仓仅对冲,请使用对冲复盘")
|
||||
return redirect("/hedge-plan/review")
|
||||
|
||||
|
||||
@app.route("/stats")
|
||||
@login_required
|
||||
def stats_page():
|
||||
# CoinOX 已移除全站「统计分析」(对冲计划内统计仍保留)
|
||||
flash("CoinOX 不提供全站统计分析,请在对冲计划内查看")
|
||||
flash("本仓不提供全站统计分析,请在对冲计划内查看")
|
||||
return redirect("/hedge-plan")
|
||||
|
||||
|
||||
@app.route("/dashboard")
|
||||
@login_required
|
||||
def dashboard_page():
|
||||
redir = redirect_to_embed_shell_if_enabled("dashboard")
|
||||
if redir is not None:
|
||||
return redir
|
||||
return render_main_page("dashboard")
|
||||
return redirect("/hedge-plan")
|
||||
|
||||
|
||||
@app.route("/risk_policy")
|
||||
@login_required
|
||||
def risk_policy_page():
|
||||
redir = redirect_to_embed_shell_if_enabled("risk_policy")
|
||||
if redir is not None:
|
||||
return redir
|
||||
return render_main_page("risk_policy")
|
||||
# 本仓已去掉风控说明产品面
|
||||
return redirect("/hedge-plan")
|
||||
|
||||
|
||||
@app.route("/system_guide")
|
||||
@login_required
|
||||
def system_guide_page():
|
||||
redir = redirect_to_embed_shell_if_enabled("system_guide")
|
||||
if redir is not None:
|
||||
return redir
|
||||
return render_main_page("system_guide")
|
||||
return redirect("/hedge-plan")
|
||||
|
||||
|
||||
@app.route("/env_config")
|
||||
|
||||
Reference in New Issue
Block a user