Commit Graph

57 Commits

Author SHA1 Message Date
zdl
ae445ee234 refactor(StockOverview): 迁移毛玻璃效果到统一配置 - 批次4
- index.js: 使用 GLASS_BLUR.lg 替代 blur(20px)
- glassTheme.js: 从全局 glassConfig 导入配置
- FlexScreen/index.tsx: 使用 GLASS_BLUR.lg
- QuoteTile.tsx: 使用 GLASS_BLUR.sm
- AlertDetailDrawer.js: 使用 GLASS_BLUR.xs/lg

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 16:33:45 +08:00
1ecd6e2858 添加用户的看多/看空逻辑 2025-12-25 14:58:04 +08:00
zdl
2207a680b5 refactor(icons): 迁移其他 views 目录图标到 lucide-react
- views/Center, views/Community, views/DataBrowser 等
- views/EventDetail, views/LimitAnalyse, views/StockOverview
- views/TradingSimulation, views/Pages, views/Authentication
- views/Profile, views/Settings
- 处理 Tag/TagIcon 命名冲突
- 涉及 52 个组件文件

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-25 13:00:41 +08:00
zdl
d10a8c3321 refactor(layout): 统一页面边距管理,移除 Container 限制
- layoutConfig.js: 新增 LAYOUT_PADDING 常量 { base: 4, md: 6, lg: '80px' }
- MainLayout.js: 在 Outlet 容器上统一应用 px={LAYOUT_PADDING.x}
- HomeNavbar.js: 边距从 lg:8 改为 lg:'80px',与内容区对齐
- AppFooter.js: 移除 Container,边距改为 lg:'80px'

页面组件清理(移除冗余的 px/Container):
- Company, Community, Center, Profile, Settings
- ValueForum, DataBrowser, LimitAnalyse, StockOverview, Concept

特殊处理:
- CompanyHeader: 使用负边距实现全宽背景
- Concept Hero: 使用负边距实现全宽背景

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-24 18:34:42 +08:00
zdl
b610a7dc9d perf: 优化各 Tab 数据加载为按需请求
MarketDataView (股票行情):
- 初始只加载 summary + tradeData(2个接口)
- funding/bigDeal/unusual/pledge 数据在切换 Tab 时按需加载
- 新增 loadDataByType 方法支持懒加载

FinancialPanorama (财务全景):
- 初始只加载 stockInfo + metrics + comparison + mainBusiness(4个接口)
- 从9个接口优化到4个接口

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-18 18:32:14 +08:00
zdl
de078bd789 fix(UI): 优化市值热力图和概念统计列表交互
- StockOverview: 启用热力图面包屑导航,支持返回上一级
- ConceptStatsPanel: 移除统计列表 400px 高度限制,改为自适应高度

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-15 17:21:53 +08:00
cf846b7167 update pay ui 2025-12-13 18:08:48 +08:00
fed393baa1 update pay ui 2025-12-13 16:30:50 +08:00
ed9e795079 update pay ui 2025-12-11 16:41:13 +08:00
300ce4e2dd update pay ui 2025-12-11 15:01:54 +08:00
bb20d4c7fa update pay ui 2025-12-11 14:40:54 +08:00
b589e39c57 update pay ui 2025-12-11 14:23:25 +08:00
cb64548058 update pay ui 2025-12-11 14:10:59 +08:00
164b048e75 update pay ui 2025-12-11 13:53:23 +08:00
e1e12540d2 update pay ui 2025-12-11 13:39:45 +08:00
0df6df45cb update pay ui 2025-12-11 13:16:03 +08:00
f9fc810ccd update pay ui 2025-12-11 11:56:24 +08:00
59e55a5501 update pay ui 2025-12-11 11:31:14 +08:00
628cc47ef7 update pay ui 2025-12-11 11:18:12 +08:00
811a0eab23 update pay ui 2025-12-11 10:07:17 +08:00
3c1c9e2ff0 update pay ui 2025-12-11 08:46:09 +08:00
32b24d45ad update pay ui 2025-12-11 08:33:56 +08:00
7affc5ed0e update pay ui 2025-12-11 07:48:19 +08:00
8d56714da8 update pay ui 2025-12-11 07:39:34 +08:00
4433bc411d update pay ui 2025-12-11 07:32:30 +08:00
a330c344e7 update pay ui 2025-12-10 17:18:58 +08:00
7f1219b714 update pay ui 2025-12-10 16:50:13 +08:00
da079bfb2c update pay ui 2025-12-10 16:26:36 +08:00
f9e40a48b1 update pay ui 2025-12-10 16:05:53 +08:00
61b657c5db update pay ui 2025-12-10 15:37:22 +08:00
f8ef8588fe update pay ui 2025-12-10 15:24:29 +08:00
75a20c2a94 update pay ui 2025-12-10 14:40:35 +08:00
7379533ebd update pay ui 2025-12-10 13:23:49 +08:00
ad97b5e769 update pay ui 2025-12-10 12:22:40 +08:00
3f7d0e597e update pay ui 2025-12-10 12:06:13 +08:00
794542eeee update pay ui 2025-12-10 11:43:56 +08:00
2a492a9491 update pay ui 2025-12-10 11:42:34 +08:00
3c18605988 update pay ui 2025-12-10 11:19:02 +08:00
e56f62506d update pay ui 2025-12-10 11:02:09 +08:00
ceb537e944 update pay ui 2025-12-09 16:27:56 +08:00
zdl
bc7f00473a Merge branch 'feature_bugfix/251201_vf_h5_ui' into feature_bugfix/251201_py_h5_ui
* feature_bugfix/251201_vf_h5_ui:
  refactor: 重构 StockDetailPanel 目录结构,清理未使用代码
  chore: 清理 Community 目录下未使用的文件
  fix: 修复 remeasure 依赖数组缺少 pageType
  refactor: 使用 performanceMonitor 替换 useFirstScreenMetrics 中的 performance.now()
  fix: 文案修改
  fix: 修复个股搜索下拉弹窗被遮挡的问题
  feat: 添加 React 性能追踪 Hooks (usePerformanceTracker)
  feat: 替换公众号文件
2025-12-09 10:01:07 +08:00
04f5307e62 update pay ui 2025-12-09 08:31:18 +08:00
zdl
3ebb7745bc fix: 修复个股搜索下拉弹窗被遮挡的问题
Hero Section 的 overflow: hidden 会裁剪超出边界的搜索下拉框,
改为 overflow: visible 解决此问题。

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-08 19:03:14 +08:00
c060ce2111 update pay ui 2025-12-08 14:54:35 +08:00
zdl
a56eed07fb feat: 个股中心复用 TradeDatePicker 日期选择器组件
- StockOverview: 替换 Popover 日期选择器为 TradeDatePicker
- StockOverview: 修复 selectedDate 类型从字符串改为 Date 对象
- StockOverview: 隐藏"最新交易日期"提示
- TradeDatePicker: 新增 minDate 属性支持日期范围限制
- 日期选择器可选范围限制为 tradingDays 数据范围

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 16:47:44 +08:00
zdl
5207b9f392 refactor: 提取 ConceptStocksModal 为通用组件,统一概念中心和个股中心弹窗
- 将 ConceptStocksModal 从 StockOverview/components 移到 components 目录
- 概念中心复用 ConceptStocksModal,删除冗余的 renderStockTable 函数(约100行)
- 统一 H5 端弹窗体验:响应式尺寸、高度限制(70vh)、左右滑动、垂直居中
- 移除重复的底部关闭按钮,只保留右上角关闭按钮
- 添加"板块原因"列,表头改为中文
- 使用 @components 路径别名

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 15:57:32 +08:00
zdl
0a2fff0ffc feat: 个股添加个股列表弹窗 2025-12-04 11:51:21 +08:00
zdl
289ec3fe2f fix: 个股中心页面日期数据源统一
- fetchTopConcepts: 始终设置 selectedDate 和 availableDates
- fetchHeatmapData: 移除 setSelectedDate
- fetchMarketStats: 移除 setSelectedDate 和 setAvailableDates
- 新增 src/data/tradingDays.json: 交易日历数据(从 tdays.csv 转换)
- availableDates 基于交易日历生成,确保日期列表完整且包含最新日期

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 10:57:03 +08:00
zdl
f4157d3e4f fix: 去除个股中心动画,添加mock数据 2025-12-03 17:28:23 +08:00
zdl
b3a9c832a0 fix: 修复 StockOverview prevStats 未定义错误
## 问题
控制台报错:
```
ReferenceError: prevStats is not defined
    at fetchMarketStats (index.js:247:1)
```

## 根本原因
`fetchMarketStats` 函数中引用了不存在的变量 `prevStats`:
```javascript
//  错误代码
const newStats = {
  ...data.summary,
  rising_count: prevStats?.rising_count,
  falling_count: prevStats?.falling_count,
  date: data.trade_date
};
```

这里的 `prevStats` 变量从未定义或声明。

## 解决方案
使用状态变量 `marketStats` 来获取之前的值:
```javascript
//  正确代码
const newStats = {
  ...data.summary,
  rising_count: marketStats?.rising_count,
  falling_count: marketStats?.falling_count,
  date: data.trade_date
};
```

## 影响
-  修复市场统计数据加载错误
-  正确保留上涨/下跌家数
-  消除控制台 ReferenceError

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-30 18:59:49 +08:00