Compare commits

...

4 Commits

Author SHA1 Message Date
fish b421945b16 更新数据库文件
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-26 14:58:41 +08:00
fish 6eb312451b 持仓排名增减配色改为红增绿减
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-26 14:58:27 +08:00
fish 9c00e167f6 修复合约管理Tab文字下划线
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-26 14:56:41 +08:00
fish 5ca5df72b6 合约管理改为Tab切换品种展示
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-07-26 14:54:52 +08:00
3 changed files with 11 additions and 5 deletions
+10 -4
View File
@@ -10,7 +10,7 @@
.tab-btn { .tab-btn {
padding: 10px 20px; border: none; background: none; padding: 10px 20px; border: none; background: none;
font-size: 0.88rem; font-weight: 500; color: var(--sub); font-size: 0.88rem; font-weight: 500; color: var(--sub);
cursor: pointer; border-bottom: 2px solid transparent; cursor: pointer; text-decoration: none; border-bottom: 2px solid transparent;
margin-bottom: -2px; transition: color .12s, border-color .12s; margin-bottom: -2px; transition: color .12s, border-color .12s;
} }
.tab-btn:hover { color: var(--fg); } .tab-btn:hover { color: var(--fg); }
@@ -157,10 +157,16 @@
</form> </form>
</div> </div>
{# ── Contract tables per product ── #} {# ── Product tabs for contract list ── #}
{% set ctab = request.query_params.get('ctab', products[0].code if products else '') %}
<div class="tabs" style="margin-top:24px;">
{% for p in products %} {% for p in products %}
{% if p.contracts %} <a href="/admin/?tab=contract&ctab={{ p.code }}" class="tab-btn{% if ctab == p.code %} active{% endif %}">{{ p.code }} · {{ p.name }}</a>
<div class="section-title" style="margin-top:{% if not loop.first %}24px{% else %}0{% endif %};">{{ p.code }} · {{ p.name }}</div> {% endfor %}
</div>
{% for p in products %}
{% if p.code == ctab and p.contracts %}
<div class="table-wrap" style="margin-bottom:20px;"> <div class="table-wrap" style="margin-bottom:20px;">
<table> <table>
<tr><th>合约代码</th><th>月份</th><th>状态</th><th>操作</th></tr> <tr><th>合约代码</th><th>月份</th><th>状态</th><th>操作</th></tr>
+1 -1
View File
@@ -87,7 +87,7 @@
<td style="color:var(--sub);">{{ row.rank }}</td> <td style="color:var(--sub);">{{ row.rank }}</td>
<td style="text-align:left;">{{ row.institution }}</td> <td style="text-align:left;">{{ row.institution }}</td>
<td>{{ row.value }}</td> <td>{{ row.value }}</td>
<td style="color:{% if row.change > 0 %}var(--success-fg){% elif row.change < 0 %}var(--danger-fg){% else %}var(--sub){% endif %};"> <td style="color:{% if row.change > 0 %}var(--danger-fg){% elif row.change < 0 %}var(--success-fg){% else %}var(--sub){% endif %};">
{% if row.change > 0 %}+{% endif %}{{ row.change }} {% if row.change > 0 %}+{% endif %}{{ row.change }}
</td> </td>
</tr> </tr>
BIN
View File
Binary file not shown.