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,130 @@
|
||||
# Conversation - 2026-03-10 18:01:02
|
||||
|
||||
## Prompt
|
||||
|
||||
创建文件 view/uniapp/components/HjfRefundNotice.vue,内容为公排退款通知弹窗组件:
|
||||
|
||||
参照以下规范创建 Vue 2 组件:
|
||||
- 使用 <style scoped lang=scss>
|
||||
- 技术栈: uni-app Vue 2 Options API
|
||||
- 功能: 公排退款成功后的弹窗通知(退款金额、已入账到现金余额)
|
||||
|
||||
Props:
|
||||
- visible: Boolean — 是否显示
|
||||
- amount: Number — 退款金额
|
||||
- orderId: String — 订单号
|
||||
|
||||
组件要求:
|
||||
- 使用 uni.showModal 或自定义弹窗样式
|
||||
- 显示退款成功信息
|
||||
- 显示退款金额(单位:元,保留两位小数)
|
||||
- 显示订单号
|
||||
- 有点击确定按钮关闭弹窗
|
||||
|
||||
请创建完整可用的 Vue 组件文件。
|
||||
|
||||
## Response
|
||||
|
||||
|
||||
[SYSTEM:init] Session: 63ec6d3e-796e-41dc-ab24-da00fe950753
|
||||
Model: Auto
|
||||
CWD: /Users/apple/scott2026/huangjingfen/pro_v3.5.1
|
||||
Permission: default
|
||||
|
||||
[USER] 创建文件 view/uniapp/components/HjfRefundNotice.vue,内容为公排退款通知弹窗组件:
|
||||
|
||||
参照以下规范创建 Vue 2 组件:
|
||||
- 使用 <style scoped lang=scss>
|
||||
- 技术栈: uni-app Vue 2 Options API
|
||||
- 功能: 公排退款成功后的弹窗通知(退款金额、已入账到现金余额)
|
||||
|
||||
Props:
|
||||
- visible: Boolean — 是否显示
|
||||
- amount: Number — 退款金额
|
||||
- orderId: String — 订单号
|
||||
|
||||
组件要求:
|
||||
- 使用 uni.showModal 或自定义弹窗样式
|
||||
- 显示退款成功信息
|
||||
- 显示退款金额(单位:元,保留两位小数)
|
||||
- 显示订单号
|
||||
- 有点击确定按钮关闭弹窗
|
||||
|
||||
请创建完整可用的 Vue 组件文件。
|
||||
|
||||
[THINKING]
|
||||
The user wants me to create a Vue 2 component file at `view/uniapp/components/HjfRefundNotice.vue` for a "公排退款通知弹窗" (public queue refund notice popup). Let me summarize the requirements:
|
||||
|
||||
1. Vue 2 Options API, uni-app
|
||||
2. `<style scoped lang=scss>`
|
||||
3. Props: visible (Boolean), amount (Number), orderId (String)
|
||||
4. Function: Show refund success notification after public queue refund (refund amount, credited to cash balance)
|
||||
5. Use uni.showModal or custom modal style
|
||||
6. Show refund success message
|
||||
7. Show refund amount (yuan, 2 decimal places)
|
||||
8. Show order ID
|
||||
9. Have a confirm button to close the popup
|
||||
|
||||
I'll create a custom modal component (not uni.showModal) since they want a component with props like visible, amount, orderId - that fits a custom modal better. I'll make it a proper Vue component that emits close and shows the required info.
|
||||
|
||||
Let me create the file.
|
||||
|
||||
|
||||
[ASSISTANT]
|
||||
正在创建公排退款通知弹窗组件。
|
||||
|
||||
|
||||
[TOOL_CALL:started] ✏️ Tool #1: Editing /Users/apple/scott2026/huangjingfen/pro_v3.5.1/view/uniapp/components/HjfRefundNotice.vue
|
||||
|
||||
[TOOL_CALL:completed] ✓ Edit applied
|
||||
|
||||
[THINKING]
|
||||
File created. Let me check for linter errors.
|
||||
|
||||
|
||||
[ASSISTANT]
|
||||
|
||||
|
||||
|
||||
[TOOL_CALL:started] 🔧 Tool #2: [readLintsToolCall]
|
||||
|
||||
[TOOL_CALL:completed] Completed
|
||||
|
||||
[THINKING]
|
||||
No linter errors. The component is complete. Let me summarize what I created for the user.
|
||||
|
||||
|
||||
[ASSISTANT]
|
||||
已创建公排退款通知弹窗组件,路径:`view/uniapp/components/HjfRefundNotice.vue`,功能与用法如下。
|
||||
|
||||
### 组件说明
|
||||
|
||||
- **技术栈**:Vue 2 Options API,`<style scoped lang="scss">`。
|
||||
- **Props**:
|
||||
- `visible`:Boolean,控制显示/隐藏
|
||||
- `amount`:Number,退款金额(元)
|
||||
- `orderId`:String,订单号(可选,有则显示)
|
||||
|
||||
### 功能与展示
|
||||
|
||||
- 自定义弹窗(非 `uni.showModal`),带半透明遮罩。
|
||||
- 显示「退款成功」标题和「已入账到现金余额」说明。
|
||||
- 退款金额用 `computed` 格式化为两位小数(单位:元),并单独高亮显示。
|
||||
- 若有 `orderId`,在下方展示订单号(过长会省略显示)。
|
||||
- 「确定」按钮:点击后关闭弹窗并支持 `.sync` 与事件。
|
||||
|
||||
### 事件
|
||||
|
||||
- `@confirm`:点击「确定」时触发。
|
||||
- `@close`:点击遮罩关闭时触发。
|
||||
- 支持 `v-model:visible` 或 `:visible.sync` 的写法(通过 `$emit('update:visible', false)` 关闭)。
|
||||
|
||||
### 使用示例
|
||||
|
||||
```vue
|
||||
<template>
|
||||
<view>
|
||||
<HjfRefundNotice
|
||||
:visible.sync="refundVisible"
|
||||
:amount="99.5"
|
||||
|
||||
Reference in New Issue
Block a user