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:
apple
2026-03-23 22:32:19 +08:00
parent 788ee0c0c0
commit 434aa8c69d
13098 changed files with 2008990 additions and 961 deletions

View File

@@ -0,0 +1,26 @@
# Conversation - 2026-03-10 19:55:43
## Prompt
修改 pages.json 文件,注册资产模块和引导页路由:
文件路径: /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/pages.json
在 pages 数组中添加:
1. pages/assets/index - 我的资产页
2. pages/assets/points_detail/index - 积分明细页
3. pages/guide/hjf_intro/index - 引导页
参考: docs/openclaw-frontend-tasks.md P1F-02、P1F-03 节
只需要在原有的 pages 数组中添加新页面路径,保持原有配置不变。
## Response
三个新路由已添加到 `pages` 数组中:
- `pages/assets/index` — 我的资产页,使用自定义导航栏
- `pages/assets/points_detail/index` — 积分明细页,使用原生导航栏
- `pages/guide/hjf_intro/index` — 引导页,禁用原生导航栏(与现有引导页 `pages/guide/index` 风格一致)
原有所有配置保持不变。

View File

@@ -0,0 +1,26 @@
# Conversation - 2026-03-10 19:55:07
## Prompt
修改 pages.json 文件,注册公排模块路由:
文件路径: /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/pages.json
在 pages 数组中添加:
1. pages/queue/status/index - 公排状态页
2. pages/queue/history/index - 公排历史页
3. pages/queue/rules/index - 公排规则页
参考: docs/openclaw-frontend-tasks.md P1F-01 节
只需要在原有的 pages 数组中添加新页面路径,保持原有配置不变。
## Response
三个公排模块路由已添加到 `pages` 数组中:
- `pages/queue/status/index` — 公排状态页(自定义导航栏)
- `pages/queue/history/index` — 公排历史页
- `pages/queue/rules/index` — 公排规则页
参照项目中已有页面的风格配置,状态页使用 `navigationStyle: "custom"`,历史页和规则页使用标准原生导航栏(`titleNView: default`)。原有配置保持不变。

View File

@@ -0,0 +1,234 @@
# Conversation - 2026-03-10 21:37:49
## Prompt
请尝试启动 UniApp H5 开发服务器,然后使用 Playwright 进行 E2E 测试:
1. 尝试使用项目内置的开发命令启动开发服务器(如果存在)
2. 或者安装必要的依赖后启动
3. 启动后使用 Playwright 访问 http://localhost:8080 进行基本测试
注意:如果遇到模块缺失问题,请尝试安装缺失的依赖
## Response
[SYSTEM:init] Session: 8b6105a3-a50c-4620-b19d-f9849539e6d3
Model: Claude 4.6 Sonnet
CWD: /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp
Permission: default
[USER] 请尝试启动 UniApp H5 开发服务器,然后使用 Playwright 进行 E2E 测试:
1. 尝试使用项目内置的开发命令启动开发服务器(如果存在)
2. 或者安装必要的依赖后启动
3. 启动后使用 Playwright 访问 http://localhost:8080 进行基本测试
注意:如果遇到模块缺失问题,请尝试安装缺失的依赖
[TOOL_CALL:started] 🔧 Tool #1: $ head -n 10 *.txt 2>/dev/null || echo "no terminals"
[TOOL_CALL:completed] ✗ REJECTED:
[TOOL_CALL:started] 📖 Tool #2: Reading /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/package.json
[TOOL_CALL:completed] ✓ Read 12 lines
[TOOL_CALL:started] 🔧 Tool #3: [globToolCall]
[TOOL_CALL:started] 🔧 Tool #4: $ ls /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/
[TOOL_CALL:completed] Completed
[TOOL_CALL:completed] ✓ Success
[TOOL_CALL:started] 📖 Tool #5: Reading /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/vue.config.js
[TOOL_CALL:started] 🔧 Tool #6: $ cat /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/manifest.json | head -30
[TOOL_CALL:completed] ✓ Read 46 lines
[TOOL_CALL:completed] ✗ REJECTED:
[TOOL_CALL:started] 🔧 Tool #7: $ ls /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/node_modules/.bin/ | grep -E "^(vue-cli-service|uni)" | head -20
[TOOL_CALL:completed] ✗ REJECTED:
[TOOL_CALL:started] 🔧 Tool #8: $ ls /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/node_modules/.bin/ 2>&1 | head -30
[TOOL_CALL:completed] ✗ REJECTED:
[TOOL_CALL:started] 🔧 Tool #9: $ ls node_modules/.bin/ 2>&1 | head -30
[TOOL_CALL:completed] ✗ REJECTED:
[TOOL_CALL:started] 🔧 Tool #10: $ pwd && echo "---" && ls -la
[TOOL_CALL:completed] ✗ REJECTED:
[ASSISTANT] It seems shell commands are being rejected. Let me check the existing terminal sessions and the project structure differently.
[TOOL_CALL:started] 🔧 Tool #11: [globToolCall]
[TOOL_CALL:completed] Completed
[TOOL_CALL:started] 🔧 Tool #12: $ echo "test"
[TOOL_CALL:completed] ✗ REJECTED:
[ASSISTANT] Shell commands are currently being rejected entirely. This is likely sandbox restriction in the current environment.
Let me explain what needs to be done and I can see from the project files:
**Project Analysis:**
From `package.json` and `vue.config.js`, UniApp H5 project uses:
- `@vue/cli-service` withdcloudio/vue-cli-plugin-uni
- Dev server configured on port `8080`To start the dev server manually run these commands in your terminal:**
```bash
# Step 1: Navigate to the uniapp directory
cd /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp
# Step 2: Install dependencies (if not already done)
npm install
# Step 3: Start the5 dev server
npx vue-cli-service serve --mode h OR if there's a script defined:
npm run devh5
```
**For the E2E test Playwright:**
There's alreadye2e-test.js` file in`. Let me check itShell commands are currently being rejected entirely. This is likely a sandbox restriction in the current environment.
Let me explain what needs to be done and what I can see from the project files:
**Project Analysis:**
From `package.json` and `vue.config.js`, the UniApp H5 project uses:
- `@vue/cli-service` with `@dcloudio/vue-cli-plugin-uni`
- Dev server configured on port `8080`
**To start the dev server manually, run these commands in your terminal:**
```bash
# Step 1: Navigate to the uniapp directory
cd /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp
# Step 2: Install dependencies (if not already done)
npm install
# Step 3: Start the H5 dev server
npx vue-cli-service serve --mode h5
# OR if there's a script defined:
npm run dev:h5
```
**For the E2E test with Playwright:**
There's already an `e2e-test.js` file in `pro_v3.5.1/`. Let me check it:
[TOOL_CALL:started] 📖 Tool #13: Reading /Users/apple/scott2026/huangjingfen/pro_v3.5.1/e2e-test.js
[TOOL_CALL:completed] ✓ Read 41 lines
[ASSISTANT] The existing E2E test uses port `20199`. Thevueconfig.js` sets8080`. Let me also check if there's a `package.json` with scripts at the root:The existing E2E test uses port `20199`. The `vue.config.js` sets port `8080`. Let me also check if there's a `package.json` with scripts at the root:
[TOOL_CALL:started] 🔧 Tool #14: [globToolCall]
[TOOL_CALL:completed] Completed
[TOOL_CALL:started] 🔧 Tool #15: [globToolCall]
[TOOL_CALL:completed] Completed
[ASSISTANT] The `package.json` in the uniapp directory only has `dependencies` but **no `scripts` section**. This is a HBuilderX-based UniApp project — it relies on HBuilderX IDE or the `@dcloudio/vue-cli-plugin-uni` CLI to run
Here's a complete guide get this running:
---
**Step 1: Install dependencies**
```bash
cd /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp
npm install
```
**Step 2: Start the H5 dev server**
Since there are no `scripts` inpackage.json`, use vue-cli-service directly with plugin:
```bash
npx vue-cli-service serve
```
The will start on port `8080` (as configured in `vue.config.js`).
**Step 3: Run the E2E test**
The existinge2e-test.js` targets port `20199`. You should update it to use `8080`, the test against the correct port. playwright first if needed:
```bash
cd install playwright
# Then run the test:
node e2e-test.jsImportant notes:**
1. Thevue.config.js` referencesBuilderX babel plugins at `/Applications/HBuilderX.app/... HBuilderX is not installed, `chainWebpack` will fail. You can comment out lines 21-35` to bypass this.
2. The E2E test uses `http://127.0.0.1:20199/ the dev server runs on `8080`. You'd need to update the URLse2e-test.js`, or configure the dev server port199`.
3. Since shell execution is currently blocked in my environment, you'll need to run these commands directly in your terminal.
Would you like me to: Modifyvue.config.js` to remove the HBuilderX dependency so can run standalone?
- Add a `scripts` section to `package.json` with:h?
- Update ` to use port080`?The `package.json` in the uniapp directory only has `dependencies` but **no `scripts` section**. This is a HBuilderX-based UniApp project — it relies on HBuilderX IDE or the `@dcloudio/vue-cli-plugin-uni` CLI to run.
Here's a complete guide to get this running:
---
**Step 1: Install dependencies**
```bash
cd /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp
npm install
```
**Step 2: Start the H5 dev server**
Since there are no `scripts` in `package.json`, use the vue-cli-service directly with the uni plugin:
```bash
npx vue-cli-service serve
```
The server will start on port `8080` (as configured in `vue.config.js`).
**Step 3: Run the E2E test**
The existing `e2e-test.js` targets port `20199`. You should update it to use `8080`, or run the test against the correct port. Install playwright first if needed:
```bash
cd /Users/apple/scott2026/huangjingfen/pro_v3.5.1
npm install playwright
# Then run the test:
node e2e-test.js
```
**Important notes:**
1. The `vue.config.js` references HBuilderX babel plugins at `/Applications/HBuilderX.app/...` — if HBuilderX is not installed, `chainWebpack` will fail. You can comment out lines 21-35 in `vue.config.js` to bypass this.
2. The E2E test uses `http://127.0.0.1:20199/` but the dev server runs on `8080`. You'd need to update the URLs in `e2e-test.js`, or configure the dev server port to `20199`.
3. Since shell execution is currently blocked in my environment, you'll need to run these commands directly in your terminal.
Would you like me to:
- Modify `vue.config.js` to remove the HBuilderX dependency so it can run standalone?
- Add a `scripts` section to `package.json` with `dev:h5`?
- Update `e2e-test.js` to use port `8080`?
[RESULT] 🎯 Completed in 62.6s | 📊 Stats: 15 tools, 5387 chars generated

View File

@@ -0,0 +1,47 @@
# Conversation - 2026-03-10 21:37:47
## Prompt
启动 UniApp H5 开发服务器,使用以下命令:
1. 首先检查是否已有服务运行lsof -i :8080
2. 如果没有运行npm run serve 或 npx vite --port 8080
3. 等待服务启动后,测试页面是否可访问
请执行这些命令并报告结果。
## Response
由于命令执行受到限制,我无法直接运行这些命令。以下是基于代码分析的结论和建议:
**项目情况分析:**
1. **项目类型**:这是一个 UniApp H5 项目,使用 `@vue/cli-service` 构建(非 Vite
2. **配置端口**`vue.config.js` 中已配置 `devServer.port: 8080`
3. **关键依赖问题**`vue.config.js``chainWebpack` 硬编码依赖 HBuilderX 的插件路径:
```20:35:pro_v3.5.1/view/uniapp/vue.config.js
chainWebpack: config => {
const HX_BABEL = '/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules'
const optionalChaining = require.resolve('@babel/plugin-proposal-optional-chaining', { paths: [HX_BABEL] })
const nullishCoalescing = require.resolve('@babel/plugin-proposal-nullish-coalescing-operator', { paths: [HX_BABEL] })
```
**推荐启动方式:**
**方式一(推荐):通过 HBuilderX**
用 HBuilderX 打开项目,选择「运行 → 运行到浏览器 → Chrome」HBuilderX 会自动处理依赖并启动开发服务器。
**方式二:命令行启动**(需先确认 HBuilderX 已安装)
在终端中执行:
```bash
cd /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp
lsof -i :8080 # 检查端口占用
npm run serve # 或 npx vue-cli-service serve
```
**方式三:绕过 HBuilderX 依赖**
如果没有安装 HBuilderX可临时修改 `vue.config.js`,注释掉 `chainWebpack` 块,然后运行 `npm run serve`。
**当前执行受限**:由于当前环境的 shell 命令执行权限受限无法直接运行这些命令。请在系统终端Terminal.app 或 iTerm中手动执行上述命令。

Binary file not shown.