feat(fsgx): 完成全部24项开发任务 Phase1-7
Phase1 后端核心:
- 新增 fsgx_v1.sql 迁移脚本(is_queue_goods/frozen_points/available_points/no_assess)
- SystemConfigServices 返佣设置扩展(周期人数/分档比例/范围/时机)
- StoreOrderCreateServices 周期循环佣金计算
- StoreOrderTakeServices 佣金发放后同步冻结积分
- StoreProductServices/StoreProduct 保存 is_queue_goods
Phase2 后端接口:
- GET /api/hjf/brokerage/progress 佣金周期进度
- GET /api/hjf/assets/overview 资产总览
- HjfPointsServices 每日 frozen_points 0.4‰ 释放定时任务
- PUT /adminapi/hjf/member/{uid}/no_assess 不考核接口
- GET /adminapi/hjf/points/release_log 积分日志接口
Phase3 前端清理:
- hjfCustom.js 路由精简(仅保留 points/log)
- hjfQueue.js/hjfMember.js API 清理/重定向至 CRMEB 原生接口
- pages.json 公排→推荐佣金/佣金记录/佣金规则
Phase4-5 前端改造:
- queue/status.vue 推荐佣金进度页整体重写
- 商品详情/订单确认/支付结果页文案与逻辑改造
- 个人中心/资产页/引导页/规则页文案改造
- HjfQueueProgress/HjfRefundNotice/HjfAssetCard 组件改造
- 推广中心嵌入佣金进度摘要
- hjfMockData.js 全量更新(公排字段→佣金字段)
Phase6 Admin 增强:
- 用户列表新增 frozen_points/available_points 列及不考核操作按钮
- hjfPoints.js USE_MOCK=false 对接真实积分日志接口
Phase7 配置文档:
- docs/fsgx-phase7-config-checklist.md 后台配置与全链路验收清单
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,114 @@
|
||||
# Conversation - 2026-03-10 18:38:31
|
||||
|
||||
## Prompt
|
||||
|
||||
创建页面 view/uniapp/pages/assets/index.vue(我的资产页):
|
||||
|
||||
技术栈: uni-app Vue 2 Options API
|
||||
样式: <style scoped lang=scss
|
||||
|
||||
页面结构:
|
||||
1. 顶部渐变卡片: 显示资产信息(引入 HjfAssetCard 组件)
|
||||
2. 功能入口: 积分明细、现金明细、提现
|
||||
3. 今日释放预告
|
||||
|
||||
数据来源: import { getAssetsOverview } from '@/api/hjfAssets.js'
|
||||
|
||||
参考: pages/users/user_money/index.vue 的渐变卡片模式
|
||||
|
||||
请创建完整页面。
|
||||
|
||||
## Response
|
||||
|
||||
|
||||
[SYSTEM:init] Session: 6285cdd8-8dc1-4208-8702-877af819fffc
|
||||
Model: Claude 4.6 Sonnet
|
||||
CWD: /Users/apple/scott2026/huangjingfen/pro_v3.5.1
|
||||
Permission: default
|
||||
|
||||
[USER] 创建页面 view/uniapp/pages/assets/index.vue(我的资产页):
|
||||
|
||||
技术栈: uni-app Vue 2 Options API
|
||||
样式: <style scoped lang=scss
|
||||
|
||||
页面结构:
|
||||
1. 顶部渐变卡片: 显示资产信息(引入 HjfAssetCard 组件)
|
||||
2. 功能入口: 积分明细、现金明细、提现
|
||||
3. 今日释放预告
|
||||
|
||||
数据来源: import { getAssetsOverview } from '@/api/hjfAssets.js'
|
||||
|
||||
参考: pages/users/user_money/index.vue 的渐变卡片模式
|
||||
|
||||
请创建完整页面。
|
||||
|
||||
[ASSISTANT] Let me first read the reference files to understand the patterns used.
|
||||
|
||||
[TOOL_CALL:started] 📖 Tool #1: Reading /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/pages/users/user_money/index.vue
|
||||
|
||||
[TOOL_CALL:completed] ✓ Read 498 lines
|
||||
|
||||
[TOOL_CALL:started] 📖 Tool #2: Reading /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/components/HjfAssetCard.vue
|
||||
|
||||
[TOOL_CALL:completed] ✓ Read 148 lines
|
||||
|
||||
[TOOL_CALL:started] 📖 Tool #3: Reading /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/api/hjfAssets.js
|
||||
|
||||
[TOOL_CALL:completed] ✓ Read 79 lines
|
||||
|
||||
[ASSISTANT] Now let me check the mock data and existing pages structure for more context.
|
||||
|
||||
[TOOL_CALL:started] 📖 Tool #4: Reading /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/utils/hjfMockData.js
|
||||
|
||||
[TOOL_CALL:completed] ✓ Read 322 lines
|
||||
|
||||
[TOOL_CALL:started] 🔧 Tool #5: [globToolCall]
|
||||
|
||||
[TOOL_CALL:completed] Completed
|
||||
|
||||
[ASSISTANT] The file already exists. Let me read it first.
|
||||
|
||||
[TOOL_CALL:started] 📖 Tool #6: Reading /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/pages/assets/index.vue
|
||||
|
||||
[TOOL_CALL:completed] ✓ Read 389 lines
|
||||
|
||||
[ASSISTANT] The file already exists but doesn't exactly match the requirements: it has 4 nav items (积分明细、现金明细、提现、公排记录) and includes a stats row, but the requirement specifies only 3 entries细、提现) and a "今日释放预告" section. The current page also lacks the gradient card wrapper pattern matching `user_money/index.vue with `background linear-gradient(180deg, var(--view-minorColorT) 0%, #f5f5f5 100%)apping. Let me rewrite the page to precisely match the specThe file already exists but doesn't exactly match the requirements: it has 4 nav items (积分明细、现金明细、提现、公排记录) and includes a stats row, but the requirement specifies only 3 entries (积分明细、现金明细、提现) and a "今日释放预告" section. The current page also lacks the gradient card wrapper pattern matching `user_money/index.vue` with `background: linear-gradient(180deg, var(--view-minorColorT) 0%, #f5f5f5 100%)` wrapping. Let me rewrite the page to precisely match the spec.
|
||||
|
||||
[TOOL_CALL:started] ✏️ Tool #7: Editing /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/pages/assets/index.vue
|
||||
|
||||
[TOOL_CALL:completed] ✓ Edit applied
|
||||
|
||||
[ASSISTANT] 页面已创建完成。以下是结构说明:
|
||||
|
||||
**面结构(共4个区块)**
|
||||
|
||||
1. **顶部渐变区域** (`assets-wrapper`) — 完全沿用 `user_money/index.vue` 的 `background: linear-gradient(180deg, var(--view-minorColorT) 0%, #f5f5f5 100%)` 模式,内含:
|
||||
- 标题行+HjfMemberBge` 会员等级徽章
|
||||
- 骨架屏(加载中时显示)
|
||||
- `jfAssetCard` 组件(传入 `now / frozenPoints availablePoints / todayRelease`)
|
||||
|
||||
2. **功能入口**(三列横排)— 积分明细 现金明细 / 申请提现,每项带彩色渐变图标,风格参考 `user_money` `.nav .item
|
||||
|
||||
3. **今日释放预告卡片** — 展示今日预计释放积分(主色高亮)、待释放总分、已释放积分三底部带文案
|
||||
|
||||
4. **汇总统计行** — 公累计退款 / 累计获得积
|
||||
|
||||
**数据流:`Load` 调用 `getetsOverview()`,`onShow刷新(首次加载后),载失败弹 toast提示。页面已创建完成。以下是结构说明:
|
||||
|
||||
**页面结构(共4个区块)**
|
||||
|
||||
1. **顶部渐变区域** (`assets-wrapper`) — 完全沿用 `user_money/index.vue` 的 `background: linear-gradient(180deg, var(--view-minorColorT) 0%, #f5f5f5 100%)` 模式,内含:
|
||||
- 标题行 + `HjfMemberBadge` 会员等级徽章
|
||||
- 骨架屏(加载中时显示)
|
||||
- `HjfAssetCard` 组件(传入 `nowMoney / frozenPoints / availablePoints / todayRelease`)
|
||||
|
||||
2. **功能入口**(三列横排)— 积分明细 / 现金明细 / 申请提现,每项带彩色渐变图标,风格参考 `user_money` 的 `.nav .item`
|
||||
|
||||
3. **今日释放预告卡片** — 展示今日预计释放积分(主题色高亮)、待释放总积分、已释放积分三列,底部带提示文案
|
||||
|
||||
4. **汇总统计行** — 公排累计退款 / 累计获得积分
|
||||
|
||||
**数据流**:`onLoad` 调用 `getAssetsOverview()`,`onShow` 刷新(首次加载后),加载失败弹 toast 提示。
|
||||
|
||||
[RESULT] 🎯 Completed in 71.0s | 📊 Stats: 7 tools, 2207 chars generated
|
||||
|
||||
Reference in New Issue
Block a user