zdl
|
d37cc720ef
|
fix: 添加删除帖子的 mock handler
- 支持 DELETE /api/posts/:postId 请求
- 从内存存储中正确删除评论
- 修复 mock 模式下删除评论失败的问题
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-15 14:10:44 +08:00 |
|
zdl
|
0775409c9f
|
fix: 添加删除帖子的 mock handler
- 支持 DELETE /api/posts/:postId 请求
- 从内存存储中正确删除评论
- 修复 mock 模式下删除评论失败的问题
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-15 14:10:44 +08:00 |
|
zdl
|
a89489ba46
|
feat: 支持用户删除自己的评论
- CommentItem: 添加删除按钮(仅显示在自己的评论上)
- CommentItem: 添加删除确认对话框,防止误删
- CommentList: 传递 currentUserId 和 onDelete 到 CommentItem
- EventCommentSection: 添加 handleDeleteComment 处理函数
- mock handler: 使用真实登录用户信息创建评论
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-15 14:10:44 +08:00 |
|
zdl
|
e493ae5ad1
|
fix: 前端兼容 phone 字段可能为非字符串的情况
- 在所有显示 user.phone 的地方添加类型检查
- 使用 typeof user.phone === 'string' && user.phone 确保只有字符串才显示
- 修复微信登录后 phone 为对象时显示 [object Object] 的问题
涉及文件:
- TabletUserMenu.js
- MobileDrawer.js
- UserAvatar.js
- PersonalCenterMenu.js
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-15 14:10:44 +08:00 |
|
|
|
71e0826244
|
update pay ui
|
2025-12-15 11:54:50 +08:00 |
|
zdl
|
9ba180a3ee
|
revert: 小程序入口按钮恢复到右上角
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-15 11:45:22 +08:00 |
|
zdl
|
5d83532b61
|
style: 小程序入口按钮移到左下角
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-15 11:29:50 +08:00 |
|
zdl
|
464cca5ace
|
feat: 强制使用 URL Scheme 跳转小程序
- HomePage 添加 forceLaunchMethod="urlScheme"
- 跳过环境检测,直接显示跳转按钮,避免"初始化"状态
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-15 11:09:54 +08:00 |
|
zdl
|
fcdf135bd8
|
fix: 修复微信内浏览器移动端检测问题
- isMobileDevice() 添加微信浏览器检测(micromessenger)
- 确保微信内浏览器使用 URL Scheme 跳转小程序
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-15 10:53:36 +08:00 |
|
zdl
|
2449619f43
|
feat: 微信内浏览器统一使用 URL Scheme 跳转小程序
- 移动端(包括微信内浏览器)统一使用明文 URL Scheme
- 简化跳转逻辑,无需 JS-SDK 签名配置
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-15 10:15:12 +08:00 |
|
|
|
72e72833ab
|
update pay ui
|
2025-12-14 17:15:29 +08:00 |
|
|
|
77f1643a58
|
update pay ui
|
2025-12-14 16:43:45 +08:00 |
|
|
|
8971cebaa3
|
update pay ui
|
2025-12-14 16:29:01 +08:00 |
|
|
|
3967a06f1c
|
update pay ui
|
2025-12-14 16:25:27 +08:00 |
|
|
|
424c5ecb3e
|
update pay ui
|
2025-12-14 16:20:49 +08:00 |
|
|
|
024a34cdd0
|
update pay ui
|
2025-12-14 16:06:06 +08:00 |
|
|
|
6910866b05
|
update pay ui
|
2025-12-14 15:02:38 +08:00 |
|
|
|
a2b734368b
|
update pay ui
|
2025-12-14 14:26:01 +08:00 |
|
|
|
da81c4f8aa
|
update pay ui
|
2025-12-14 14:16:37 +08:00 |
|
|
|
b2ef7963fd
|
update pay ui
|
2025-12-14 10:01:48 +08:00 |
|
|
|
426ec44027
|
update pay ui
|
2025-12-14 08:46:12 +08:00 |
|
|
|
dd963f297c
|
update pay ui
|
2025-12-14 08:17:42 +08:00 |
|
|
|
648d672a35
|
update pay ui
|
2025-12-13 18:20:48 +08:00 |
|
|
|
ba0656fad3
|
update pay ui
|
2025-12-13 18:14:47 +08:00 |
|
|
|
4ccbb09067
|
update pay ui
|
2025-12-13 18:08:48 +08:00 |
|
|
|
0060911e41
|
update pay ui
|
2025-12-13 17:24:23 +08:00 |
|
|
|
dc03fad2a5
|
update pay ui
|
2025-12-13 17:13:15 +08:00 |
|
|
|
d44f8d8fa8
|
update pay ui
|
2025-12-13 17:03:48 +08:00 |
|
|
|
4ccd43f025
|
update pay ui
|
2025-12-13 16:30:50 +08:00 |
|
|
|
ed9d49da01
|
update pay ui
|
2025-12-13 15:44:31 +08:00 |
|
|
|
235cbf48a8
|
update pay ui
|
2025-12-13 11:38:19 +08:00 |
|
|
|
646bc25b4f
|
update pay ui
|
2025-12-13 10:46:00 +08:00 |
|
|
|
5e8c2400a3
|
update pay ui
|
2025-12-13 10:31:46 +08:00 |
|
zdl
|
cc33dd29eb
|
fix: 修复明文 URL Scheme path 编码问题
- path 参数不再进行 URL encode,微信要求原始路径格式
- 修复跳转微信后提示"当前页面无法访问"的问题
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 19:20:45 +08:00 |
|
zdl
|
f990b0a142
|
feat: 小程序跳转改用明文 URL Scheme
- UrlSchemeLauncher: 使用明文 Scheme 格式,无需后端 API 生成
- HomePage: 修复 path 格式,去掉开头斜杠以匹配小程序后台配置
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 19:06:21 +08:00 |
|
zdl
|
276b280cb9
|
docs: 更新 STRUCTURE.md 和 mock 数据
- STRUCTURE.md 添加 MarketDataView Panel 拆分记录
- 更新目录结构说明,包含 panels/ 子目录
- 更新 company.js 和 market.js mock 数据
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 18:11:03 +08:00 |
|
zdl
|
adfc0bd478
|
refactor(MarketDataView): 使用 Panel 组件重构主组件
- 主组件从 1049 行精简至 285 行(减少 73%)
- 添加 panels/index.ts 统一导出
- Tab 容器和状态管理保留在主组件
- 各面板内容拆分到独立组件
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 18:08:40 +08:00 |
|
zdl
|
85a857dc19
|
feat(MarketDataView): 新增 5 个 Panel 组件
- TradeDataPanel: 交易数据面板(K线图、分钟图、表格)
- FundingPanel: 融资融券面板
- BigDealPanel: 大宗交易面板
- UnusualPanel: 龙虎榜面板
- PledgePanel: 股权质押面板
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 18:07:58 +08:00 |
|
zdl
|
f38b8b7f16
|
feat: 首页添加小程序入口按钮(仅移动端显示)
- 右上角固定定位,导航栏下方
- 微信绿色圆角按钮
- PC 端自动隐藏
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 17:09:24 +08:00 |
|
zdl
|
9f99ea7aee
|
feat: 添加 H5 跳转小程序功能
- 后端: 新增 JS-SDK 签名接口和 URL Scheme 生成接口
- 前端: 创建 MiniProgramLauncher 组件,支持环境自适应
- 微信内 H5: 使用 wx-open-launch-weapp 开放标签
- 外部浏览器: 使用 URL Scheme 拉起微信
- PC 端: 显示小程序码引导扫码
- 引入微信 JS-SDK (jweixin-1.6.0.js)
- 新增 miniprogramService 服务层封装 API 调用
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 16:56:04 +08:00 |
|
zdl
|
b89837d22e
|
feat(DeepAnalysis): 实现 Tab 懒加载,按需请求数据
- DeepAnalysis/index.js: 重构为懒加载模式
- 添加 TAB_API_MAP 映射 Tab 与接口关系
- 战略分析/业务结构共享 comprehensive-analysis 接口
- 产业链/发展历程按需加载对应接口
- 使用 loadedApisRef 缓存已加载状态,避免重复请求
- 各接口独立 loading 状态管理
- 添加 stockCode 竞态条件保护
- DeepAnalysisTab/index.tsx: 支持受控模式
- 新增 activeTab/onTabChange props
- loading 状态下保持 Tab 导航可切换
- types.ts: 新增 DeepAnalysisTabKey 类型和相关 props
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 15:20:37 +08:00 |
|
zdl
|
942dd16800
|
docs(Company): 更新 STRUCTURE.md 添加 FinancialPanorama 模块结构
- 添加 FinancialPanorama 完整目录结构说明
- 记录18个文件的职责和功能
- 更新模块化重构后的架构文档
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 15:02:21 +08:00 |
|
zdl
|
35e3b66684
|
refactor(FinancialPanorama): 重构主组件为模块化结构
从 2,150 行单文件重构为模块化 TypeScript 组件:
- 使用 useFinancialData Hook 管理数据加载
- 组合9个子组件渲染9个Tab面板
- 保留指标图表弹窗功能
- 保留期数选择器功能
- 删除旧的 index.js(2,150行)
- 新增 index.tsx(454行,精简79%)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 15:02:05 +08:00 |
|
zdl
|
b9ea08e601
|
refactor(FinancialPanorama): 添加9个子组件
财务报表组件:
- BalanceSheetTable: 资产负债表(可折叠分类)
- IncomeStatementTable: 利润表(支持负向指标反色)
- CashflowTable: 现金流量表
- FinancialMetricsTable: 财务指标(7分类切换 + 关键指标速览)
业务分析组件:
- StockInfoHeader: 股票信息头部
- MainBusinessAnalysis: 主营业务分析(饼图 + 表格)
- IndustryRankingView: 行业排名展示
- StockComparison: 股票对比(多维度)
- ComparisonAnalysis: 综合对比分析(双轴图)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 15:01:47 +08:00 |
|
zdl
|
d9106bf9f7
|
refactor(FinancialPanorama): 添加数据加载 Hook
useFinancialData Hook 功能:
- 9个财务API并行加载(Promise.all)
- 股票信息、资产负债表、利润表、现金流量表
- 财务指标、主营业务、业绩预告
- 行业排名、期间对比
- 支持期数选择(4/8/12/16期)
- 自动响应 stockCode 变化重新加载
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 15:01:26 +08:00 |
|
zdl
|
fb42ef566b
|
refactor(FinancialPanorama): 添加工具函数模块
计算工具 (calculations.ts):
- calculateYoYChange: 同比变化率计算
- getCellBackground: 单元格背景色(红涨绿跌)
- getValueByPath: 嵌套路径取值
- isNegativeIndicator: 负向指标判断
图表配置 (chartOptions.ts):
- getMetricChartOption: 指标趋势柱状图
- getComparisonChartOption: 营收利润双轴图
- getMainBusinessPieOption: 主营业务饼图
- getCompareBarChartOption: 股票对比柱状图
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 15:01:09 +08:00 |
|
zdl
|
a424b3338d
|
refactor(FinancialPanorama): 添加常量配置模块
- 颜色配置:中国市场红涨绿跌
- 资产负债表指标:7个分类(流动/非流动资产、负债、权益)
- 利润表指标:6个分类(营收、成本、其他收益、利润、EPS、综合收益)
- 现金流量表指标:8个核心指标
- 财务指标分类:7大类(盈利、每股、成长、运营、偿债、费用、现金流)
- 行业排名和对比指标配置
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 15:00:51 +08:00 |
|
zdl
|
9e6e3ae322
|
refactor(FinancialPanorama): 添加 TypeScript 类型定义
- 定义基础类型:StockInfo、财务报表数据结构
- 定义业务类型:主营业务、行业排名、业绩预告
- 定义组件 Props 类型:9个子组件的 Props 接口
- 定义指标配置类型:MetricConfig、MetricSectionConfig
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 15:00:34 +08:00 |
|
zdl
|
e92cc09e06
|
style: DeepAnalysisTab 黑金主题样式优化
- ProcessNavigation: Tab 未选中状态字体白色,数量Badge与边框颜色统一(gray.600)
- KeyFactorCard: 适配黑金主题(cardBg #252D3A, 文字颜色调整)
- KeyFactorsCard: 黑金主题重构,移除免责声明组件
- TimelineCard: 黑金主题重构,移除免责声明组件
- ValueChainCard: 调整 CardHeader 和 CardBody padding
- ValueChainFilterBar: 暂时注释筛选下拉框
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
|
2025-12-12 14:25:48 +08:00 |
|
|
|
39c6eacb58
|
update pay ui
|
2025-12-12 14:04:11 +08:00 |
|