Commit Graph

1132 Commits

Author SHA1 Message Date
zdl
4aa4cdc550 fix(Pagination): 优化中间页码显示,调整跳转文案格式
- 中间页码:显示当前页前后各1个页码 (如 1...4,5,6...10)
- 跳转文案:从"跳转到 [页]"改为"第 [  ] 页"格式

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-15 15:20:16 +08:00
zdl
3f24900cc1 fix(UI): Profile 取消按钮样式、HotEvents 轮播箭头、Dashboard 按钮优化
- Profile: 取消按钮添加深色主题样式 (color, borderColor, hover)
- HotEvents: 轮播箭头添加 user-select: none 防止连续点击选中文本
- Dashboard: "查看更多"按钮改为图标按钮 (IconButton + FiPlus)

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-15 15:20:02 +08:00
zdl
18631381cf fix(StockChart): 图表组件使用 aspect-ratio 保持宽高比,统一弹窗大小
- KLineChartModal: 日K线图使用 aspectRatio 替代固定高度
- StockChartKLineModal: K线图高度改为响应式 min(400px, 60vh)
- TimelineChartModal: 分时图弹窗大小与日K线统一,maxWidth: 1400px

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-15 15:19:51 +08:00
zdl
e2c9aa20de fix: 修复热门概念滚动动画暂停时跳跃问题
- 使用 animation-play-state 代替移除动画
- 暂停时保持在当前位置而不是跳回初始位置

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-15 14:54:13 +08:00
zdl
4e09c2e586 fix: 添加热门概念静态数据的 mock handler
- 拦截 /data/concept/latest.json 请求
- 返回 mock 生成的热门概念数据
- 修复 HeroPanel 热门概念模块无数据问题

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-15 14:52:31 +08:00
zdl
20952da3b5 ui: 移除热门概念模块的"点击查看详情"提示
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-15 14:49:33 +08:00
zdl
2704ea505b fix: 桑基图标题位置调整,避免被图表遮挡
- 标题 top 调整为 5
- 桑基图 series 添加 top: 50 给标题留出空间
- 添加 bottom, left, right 边距配置

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-15 14:22:09 +08:00
zdl
716f193756 fix: 桑基图样式优化 2025-12-15 14:17:28 +08:00
zdl
62d3cb7527 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
24b8b930c8 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
0f940a25b9 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
b8347ae72a 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
816314248a update pay ui 2025-12-15 11:54:50 +08:00
zdl
ca97cb4ea2 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
0b3044f78a 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
012d0b22a2 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
93eaa0802b 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
0be64befa0 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
354d2f9e2f update pay ui 2025-12-14 17:15:29 +08:00
cd0b52596f update pay ui 2025-12-14 16:43:45 +08:00
4f85ba4cbc update pay ui 2025-12-14 16:29:01 +08:00
379ff99698 update pay ui 2025-12-14 16:25:27 +08:00
d7f4c79da5 update pay ui 2025-12-14 16:20:49 +08:00
3d89cbef2b update pay ui 2025-12-14 16:06:06 +08:00
35254fb0df update pay ui 2025-12-14 15:02:38 +08:00
39ed5562f1 update pay ui 2025-12-14 14:26:01 +08:00
1862e26baf update pay ui 2025-12-14 14:16:37 +08:00
6bde8dd8f0 update pay ui 2025-12-14 10:01:48 +08:00
5da7976ef8 update pay ui 2025-12-14 08:46:12 +08:00
2f12f37c39 update pay ui 2025-12-14 08:17:42 +08:00
a700b69341 update pay ui 2025-12-13 18:20:48 +08:00
40995bcd80 update pay ui 2025-12-13 18:14:47 +08:00
cf846b7167 update pay ui 2025-12-13 18:08:48 +08:00
6f0ea5576d update pay ui 2025-12-13 17:24:23 +08:00
a2b45855cc update pay ui 2025-12-13 17:13:15 +08:00
20d23d879a update pay ui 2025-12-13 17:03:48 +08:00
fed393baa1 update pay ui 2025-12-13 16:30:50 +08:00
fb818d943b update pay ui 2025-12-13 15:44:31 +08:00
0bb8dd683f update pay ui 2025-12-13 11:38:19 +08:00
066fbba7b8 update pay ui 2025-12-13 10:46:00 +08:00
f75bafa0dd update pay ui 2025-12-13 10:31:46 +08:00
zdl
ada21a0206 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
9ba2b7d424 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
44cc3304a4 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
154bb76212 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
c858b89591 update pay ui 2025-12-12 14:04:11 +08:00
5d65e3989b update pay ui 2025-12-12 13:38:54 +08:00
4fa519a207 update pay ui 2025-12-12 13:34:37 +08:00
0d1343f330 update pay ui 2025-12-12 13:30:55 +08:00
9f96c0c502 update pay ui 2025-12-12 12:38:43 +08:00