次日预测行移至表头下方

This commit is contained in:
2026-07-24 22:30:13 +08:00
parent 8fb3949fac
commit 73ff3f7089
+14 -12
View File
@@ -37,6 +37,18 @@
<div class="table-wrap"> <div class="table-wrap">
<table id="bars-table"> <table id="bars-table">
<tr><th>日期</th><th>星期</th><th>开盘</th><th>收盘</th><th>最高</th><th>最低</th><th>波幅</th><th>5日均振幅</th></tr> <tr><th>日期</th><th>星期</th><th>开盘</th><th>收盘</th><th>最高</th><th>最低</th><th>波幅</th><th>5日均振幅</th></tr>
{% if next_date %}
<tr style="background:var(--accent-light);font-weight:500;">
<td>{{ next_date }}</td>
<td>{{ next_weekday }}</td>
<td class="na"></td>
<td class="na"></td>
<td class="na"></td>
<td class="na"></td>
<td class="na"></td>
<td><span style="color:var(--accent);font-weight:700;">{{ next_amp }}</span></td>
</tr>
{% endif %}
{% for row in rows %} {% for row in rows %}
<tr data-index="{{ loop.index0 }}" data-diff="{{ row.diff }}" data-date="{{ row.date }}" data-weekday="{{ row.weekday }}"{% if loop.index0 >= 7 %} class="extra-row" style="display:none;"{% endif %}> <tr data-index="{{ loop.index0 }}" data-diff="{{ row.diff }}" data-date="{{ row.date }}" data-weekday="{{ row.weekday }}"{% if loop.index0 >= 7 %} class="extra-row" style="display:none;"{% endif %}>
<td>{{ row.date }}</td> <td>{{ row.date }}</td>
@@ -52,19 +64,9 @@
{% else %} {% else %}
<span class="na"></span> <span class="na"></span>
{% endif %} {% endif %}
{% endfor %} </td>
{% if next_date %}
<tr style="background:var(--accent-light);font-weight:500;">
<td>{{ next_date }}</td>
<td>{{ next_weekday }}</td>
<td class="na"></td>
<td class="na"></td>
<td class="na"></td>
<td class="na"></td>
<td class="na"></td>
<td><span style="color:var(--accent);font-weight:700;">{{ next_amp }}</span></td>
</tr> </tr>
{% endif %} {% endfor %}
</table> </table>
</div> </div>