Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
何博文
/
hro_prd_dock
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
454b974a
authored
Jul 08, 2026
by
刘铭阳
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
20260708 feat my_product_detail添加字段返参
parent
97c37550
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
2 deletions
亲亲创客二期/文档/后端/api-doc-第四点新增接口.md
亲亲创客二期/文档/后端/api-doc-第四点新增接口.md
View file @
454b974a
# par
tner-mp 第四点接口文档(介绍人视图 03 + 对接人视图 04)
# par
tner-mp 第四点接口文档(介绍人视图 03 + 对接人视图 04)
...
@@ -288,7 +288,15 @@ sdk.domainServicePost(
...
@@ -288,7 +288,15 @@ sdk.domainServicePost(
-
**页面/位置**
:04 · P11 产品详情(P10 点击进入)。
-
**页面/位置**
:04 · P11 产品详情(P10 点击进入)。
-
**用途效果**
:产品信息 + 我的业务四宫格 + 跟进中商机预览(点击进 ③ 商机详情)+ 对接人佣金规则。
-
**用途效果**
:产品信息 + 我的业务四宫格 + 跟进中商机预览(点击进 ③ 商机详情)+ 对接人佣金规则。
-
**入参**
:
`{ product_id: long }`
-
**入参**
:
`{ product_id: long }`
-
**反参**
:
`product_id, name, category, price_desc, intro, rate_desc`
;
`stat:{following_count, done_count, month_commission, total_commission}`
;
`following_opportunities[]`
(同 ② 列表项,最多 20 条)。
-
**反参**
:
`product_id, name, category, price_desc, intro, rate_desc`
;
`fee_type, fee_per, fee_amount`
(对接人返佣规则结构化字段,
**2026-07-08 新增**
,见下);
`stat:{following_count, done_count, month_commission, total_commission}`
;
`following_opportunities[]`
(同 ② 列表项,最多 20 条)。
| 字段 | 类型 | 说明 |
|------|------|------|
| fee_type | int | 返佣计费方式:1按服务费百分比 / 2固定返佣金额(= 产品
`customer_fee_type`
) |
| fee_per | number | 服务费百分比(fee_type=1 时用,=
`customer_fee_per`
) |
| fee_amount | number | 固定返佣金额(fee_type=2 时用,=
`customer_fee_amount`
) |
> 三字段与 `rate_desc` 同口径,均取**对接人**(`customer_` 前缀)那套返佣配置。
## ⑫ others_product_list — 其他产品 / 转介绍
## ⑫ others_product_list — 其他产品 / 转介绍
...
@@ -624,6 +632,31 @@ sdk.domainServicePost(
...
@@ -624,6 +632,31 @@ sdk.domainServicePost(
}}
}}
```
```
## ③ 修改接口:my_product_detail — 响应新增 fee_type / fee_per / fee_amount
-
**需求来源**
:王雷 2026-07-08(前端
`my-product-detail.vue`
头部 fee 分区对齐
`product-detail.vue`
「服务费/业绩规则 + 返佣规则」双栏结构,🔴阻塞展示)。
-
**改动**
:响应体(⑪ 反参)
**新增**
三个返佣规则结构化字段,原有字段不变:
| 字段 | 类型 | 说明 |
|------|------|------|
| fee_type | int | 返佣计费方式:1按服务费百分比 / 2固定返佣金额(= 产品
`customer_fee_type`
) |
| fee_per | number | 服务费百分比(fee_type=1 时用,=
`customer_fee_per`
;无值返回 0) |
| fee_amount | number | 固定返佣金额(fee_type=2 时用,=
`customer_fee_amount`
;无值返回 0) |
-
**口径**
:与同响应的
`rate_desc`
一致,取
**对接人**
(
`customer_`
前缀)那套返佣配置。
-
**说明**
:视觉稿头部「我是主负责人」角标对应的
`is_main_manager`
字段
**本次不做**
——王雷 2026-07-08「本次更新汇总」未列为需求,前端暂固定展示,待明确后再补。
-
**示例**
:
```
jsonc
// 请求 data: { "product_id": 101 }
// 响应(片段)
{ "product_id": 101, "name": "岗位外包", "rate_desc": "比例 2%(成交额) 续费",
"fee_type": 1, "fee_per": 2, "fee_amount": 0,
"stat": { "following_count": 5, "done_count": 3, "month_commission": "600.00", "total_commission": "1800.00" },
"following_opportunities": [ /* ... */ ] }
```
---
---
# 附:数据来源与依赖(供排查)
# 附:数据来源与依赖(供排查)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment