5aa9f11733
Co-authored-by: Cursor <cursoragent@cursor.com>
59 lines
3.2 KiB
HTML
59 lines
3.2 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}系统设置 - 国内期货监控系统{% endblock %}
|
|
{% block content %}
|
|
|
|
<div class="card">
|
|
<h2>实盘资金</h2>
|
|
<form action="{{ url_for('settings') }}" method="post" class="form-row">
|
|
<input type="hidden" name="action" value="capital">
|
|
<input name="live_capital" type="number" step="0.01" min="0" placeholder="实盘资金(元)" value="{{ live_capital }}" style="flex:1;min-width:200px;max-width:320px">
|
|
<button type="submit" class="btn-primary">保存</button>
|
|
</form>
|
|
<p class="hint" style="margin-top:.75rem">用于持仓监控的风险比例、仓位占比计算,保存在数据库中。</p>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h2>行情说明</h2>
|
|
<p class="hint" style="font-size:.9rem;line-height:1.6">
|
|
当前行情源:<strong class="text-accent">{{ quote_label }}</strong><br>
|
|
合约代码按<strong>同花顺格式</strong>显示(如 ag2608、IF2606),便于与看盘软件对照;
|
|
实际价格通过行情接口获取,普通用户无需申请 token。<br>
|
|
<span class="text-muted" style="font-size:.85rem">同花顺 iFinD 接口面向机构用户,个人期货通用户一般无法获取 refresh_token,故系统默认不使用。</span>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h2>企业微信推送</h2>
|
|
<form action="{{ url_for('settings') }}" method="post" class="form-row">
|
|
<input type="hidden" name="action" value="wechat">
|
|
<input name="wechat_webhook" type="url" placeholder="企业微信 Webhook 地址" value="{{ webhook }}" style="flex:1;min-width:300px">
|
|
<button type="submit" class="btn-primary">保存</button>
|
|
</form>
|
|
<p class="hint" style="margin-top:.75rem">在企业微信群中添加机器人后,将 Webhook 地址粘贴到上方保存即可。</p>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<h2>修改密码</h2>
|
|
<form action="{{ url_for('settings') }}" method="post" style="max-width:400px">
|
|
<input type="hidden" name="action" value="password">
|
|
<div style="margin-bottom:.75rem">
|
|
<label class="text-label" style="font-size:.85rem;display:block;margin-bottom:.35rem">当前账号</label>
|
|
<input type="text" value="{{ username }}" disabled style="width:100%">
|
|
</div>
|
|
<div style="margin-bottom:.75rem">
|
|
<label class="text-label" style="font-size:.85rem;display:block;margin-bottom:.35rem">原密码</label>
|
|
<input name="old_password" type="password" required style="width:100%">
|
|
</div>
|
|
<div style="margin-bottom:.75rem">
|
|
<label class="text-label" style="font-size:.85rem;display:block;margin-bottom:.35rem">新密码(至少 6 位)</label>
|
|
<input name="new_password" type="password" required minlength="6" style="width:100%">
|
|
</div>
|
|
<div style="margin-bottom:.75rem">
|
|
<label class="text-label" style="font-size:.85rem;display:block;margin-bottom:.35rem">确认新密码</label>
|
|
<input name="new_password2" type="password" required minlength="6" style="width:100%">
|
|
</div>
|
|
<button type="submit" class="btn-primary">修改密码</button>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|