合约列表新增次日振幅字段

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-07-26 10:08:37 +08:00
parent 5e9d9f00e8
commit 5670e5138c
2 changed files with 24 additions and 2 deletions
+9 -2
View File
@@ -17,7 +17,7 @@
</div>
<div class="product-body">
<table>
<tr><th>合约</th><th>日期</th><th>开盘</th><th>收盘</th><th>最高</th><th>最低</th><th>振幅</th><th>操作</th></tr>
<tr><th>合约</th><th>日期</th><th>开盘</th><th>收盘</th><th>最高</th><th>最低</th><th>振幅</th><th>次日振幅</th><th>操作</th></tr>
{% for c in pg.contracts %}
<tr>
<td><strong>{{ c }}</strong></td>
@@ -34,8 +34,15 @@
<span class="na"></span>
{% endif %}
</td>
<td>
{% if c in contract_next_amp %}
<span class="badge badge-warn">{{ contract_next_amp[c] }}</span>
{% else %}
<span class="na"></span>
{% endif %}
</td>
{% else %}
<td colspan="6" class="na">暂无数据</td>
<td colspan="7" class="na">暂无数据</td>
{% endif %}
<td><a href="/contracts/{{ c }}" style="color:var(--accent);text-decoration:none;">详情 →</a></td>
</tr>