总览页增加北京时间实时显示。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-10-03 03:26:45 +08:00
parent e62e0579de
commit 6d750d0e3f
3 changed files with 91 additions and 14 deletions
+18 -14
View File
@@ -1,14 +1,18 @@
{% extends "base.html" %}
{% block title %}总览 · 期权中控{% endblock %}
{% block body %}
<section class="page-head">
<h1>期权持仓总览</h1>
<button type="button" class="btn" id="btn-refresh">刷新</button>
</section>
<p class="muted" id="overview-status">加载中…</p>
<div id="overview-grid"></div>
{% endblock %}
{% block scripts %}
<script src="{{ url_for('static', filename='hub.js') }}"></script>
<script>HubOverview.boot();</script>
{% endblock %}
{% extends "base.html" %}
{% block title %}总览 · 期权中控{% endblock %}
{% block body %}
<section class="page-head">
<h1>期权持仓总览</h1>
<div class="overview-bj-clock" id="overview-bj-clock" title="北京时间">
<span class="overview-bj-label">北京时间</span>
<span class="overview-bj-time" id="overview-bj-time">--:--:--</span>
</div>
<button type="button" class="btn" id="btn-refresh">刷新</button>
</section>
<p class="muted" id="overview-status">加载中…</p>
<div id="overview-grid"></div>
{% endblock %}
{% block scripts %}
<script src="{{ url_for('static', filename='hub.js') }}?v=2"></script>
<script>HubOverview.boot();</script>
{% endblock %}