From 9236b54c87bc3b9bcbf5581d9aa7345bcbe7402f Mon Sep 17 00:00:00 2001 From: aaron <> Date: Fri, 19 Sep 2025 08:53:03 +0800 Subject: [PATCH] 1 --- start_web.py | 4 +- web/app.py | 2 +- web/static/css/style.css | 75 +++++++++++++++++++++++++++++------- web/static/js/main.js | 2 +- web/templates/base.html | 6 +-- web/templates/pullbacks.html | 10 +++-- web/templates/signals.html | 30 ++++++++------- 7 files changed, 91 insertions(+), 38 deletions(-) diff --git a/start_web.py b/start_web.py index 8a2728e..1f5d3f5 100644 --- a/start_web.py +++ b/start_web.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 """ -启动A股量化交易系统Web界面 +启动AI 智能选股大师Web界面 """ import sys @@ -11,7 +11,7 @@ import time def main(): """启动Web服务""" - print("🌐 A股量化交易系统") + print("🌐 AI 智能选股大师") print("=" * 50) # 检查web目录 diff --git a/web/app.py b/web/app.py index 776ab87..74be1fd 100644 --- a/web/app.py +++ b/web/app.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 """ -A股量化交易系统 Web 展示界面 +AI 智能选股大师 Web 展示界面 使用Flask框架展示策略筛选结果 """ diff --git a/web/static/css/style.css b/web/static/css/style.css index 805eb2a..72b1175 100644 --- a/web/static/css/style.css +++ b/web/static/css/style.css @@ -1,4 +1,4 @@ -/* A股量化交易系统 - 简洁清爽浅色调设计 */ +/* AI 智能选股大师 - 简洁清爽浅色调设计 */ /* ========== 全局样式 ========== */ :root { @@ -177,12 +177,12 @@ body { .table { margin-bottom: 0; font-size: 0.875rem; + border-collapse: collapse; } .table thead th { background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%); - border-bottom: 2px solid var(--border-color); - border-top: none; + border: none !important; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; @@ -192,23 +192,29 @@ body { } .table tbody tr { - border-bottom: 1px solid var(--border-light); + border: none !important; transition: all 0.2s ease; } +.table tbody td { + border: none !important; + padding: 0.875rem 0.75rem; + vertical-align: middle; + color: var(--text-primary); +} + +.table th, +.table td { + border-top: none !important; + border-bottom: none !important; + border-left: none !important; + border-right: none !important; +} + .table tbody tr:hover { background-color: var(--bg-secondary); } -.table tbody tr:last-child { - border-bottom: none; -} - -.table tbody td { - padding: 0.875rem 0.75rem; - vertical-align: middle; - color: var(--text-primary); -} .table-active { background-color: var(--primary-lighter) !important; @@ -517,6 +523,49 @@ footer .text-muted { transform: translateY(-2px); } +/* ========== 股票信息样式 ========== */ +.stock-code-link { + text-decoration: none; + transition: all 0.2s ease; +} + +.stock-code-link:hover { + transform: translateY(-1px); + filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2)); +} + +.stock-code-badge { + font-size: 0.75rem; + font-weight: 600; + color: var(--primary-color); + background: linear-gradient(135deg, var(--primary-lighter) 0%, rgba(37, 99, 235, 0.1) 100%); + padding: 0.25rem 0.5rem; + border-radius: var(--radius-sm); + border: 1px solid rgba(37, 99, 235, 0.2); + display: inline-block; + letter-spacing: 0.02em; + font-family: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', monospace; + cursor: pointer; + transition: all 0.2s ease; +} + +.stock-code-link:hover .stock-code-badge { + background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%); + color: white; + border-color: var(--primary-color); +} + +.stock-name { + font-size: 0.8rem; + font-weight: 400; + line-height: 1.2; + max-width: 100px; + color: var(--text-secondary); + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + /* ========== 滚动条美化 ========== */ ::-webkit-scrollbar { width: 6px; diff --git a/web/static/js/main.js b/web/static/js/main.js index bd371d5..f27e4e5 100644 --- a/web/static/js/main.js +++ b/web/static/js/main.js @@ -1,5 +1,5 @@ /** - * A股量化交易系统 主要JavaScript功能 + * AI 智能选股大师 主要JavaScript功能 */ $(document).ready(function() { diff --git a/web/templates/base.html b/web/templates/base.html index 87a6314..3b558e4 100644 --- a/web/templates/base.html +++ b/web/templates/base.html @@ -3,7 +3,7 @@ - {% block title %}A股量化交易系统{% endblock %} + {% block title %}AI 智能选股大师{% endblock %} @@ -19,7 +19,7 @@