lizhilun and Claude Opus 4.6
3d8d03a66e
fix: 修复老板/陪玩排行榜预览数据不显示
...
API 直接返回数组,前端错误地使用了 data.rows 导致数据为空。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-18 10:06:33 +08:00
lizhilun and Claude Opus 4.6
a0466fda3b
fix: 修复 renderDispatchItem 除零问题
...
当 r.quantity 为 0 时,原代码 r.amount / r.quantity 会导致除零错误。
修复:优先使用 r.unit_price,仅在 unit_price 不存在时才计算,并添加防护。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-18 09:58:33 +08:00
lizhilun and Claude Opus 4.6
2ebac98f07
refactor: 重构代码减少重复并添加分页
...
后端 (records.js):
- 提取通用分页查询函数 queryPagedRecords
- 5个列表接口 (orders/other-income/red-envelope/milk-tea/dispatches) 复用同一函数
后端 (stats.js):
- 为 monthly-records, boss-records, partner-records, daily-detail 添加分页支持
- 新增 page, limit, totalCount 返回字段
前端 (order-list.js):
- 提取通用列表配置 listConfig
- 统一渲染函数 renderOrderItem/renderOtherIncomeItem 等
- 大幅减少代码重复
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-18 09:53:48 +08:00
lizhilun and Claude Opus 4.6
a03e92d437
perf: 并行加载首页统计数据
...
将原来顺序执行的4个API调用改为并行执行(Promise.all),
显著减少首页加载时间。同时提取了渲染函数 renderWeeklyChart、
renderBossRankingPreview、renderPartnerRankingPreview,提高代码复用性。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-18 09:45:36 +08:00
lizhilun and Claude Opus 4.6
4656f3f9ca
fix: 移除接单列表页面的自动滚动行为
...
移除了进入接单列表页面时自动滚动到今天的逻辑,避免界面
在加载后自动往上滚动的问题。
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-18 09:37:49 +08:00
lizhilun and Claude Opus 4.6
a0d7bfdc3d
Initial commit: gamer project
...
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com >
2026-03-12 11:23:10 +08:00