From 0f367ed43a67510eb03ad3519efacd4d056bf6bd Mon Sep 17 00:00:00 2001 From: API Changelog Bot Date: Thu, 26 Mar 2026 15:52:12 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E4=BB=B7=E6=A0=BC=E6=A1=A3=E4=BD=8D?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E6=96=B9=E5=BC=8F=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2026-03/26_1530_price_tiers_readonly.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/changelogs/2026-03/26_1530_price_tiers_readonly.md b/changelogs/2026-03/26_1530_price_tiers_readonly.md index 467ac5f..2a0837a 100644 --- a/changelogs/2026-03/26_1530_price_tiers_readonly.md +++ b/changelogs/2026-03/26_1530_price_tiers_readonly.md @@ -87,3 +87,23 @@ - 输入:档位名称(如"1大1小")+ 成人数 + 儿童数 - **不输入价格**(价格由后端从团期combo自动算) - 回显用 `priceTierLabels` 字段 + +--- + +## 补充:价格档位保存方式 + +价格档位没有独立的保存接口,跟产品一起保存。 + +前端在价格档位区域加个"保存"按钮,点击时调 `POST /admin/product/save`(或 `PUT /admin/product/{id}`),body 中带 `priceTierLabels` 字段: + +```json +{ + "productId": "xxx", + "priceTierLabels": [ + { "label": "1大1小", "adultCount": 1, "childCount": 1 }, + { "label": "2大1小", "adultCount": 2, "childCount": 1 } + ] +} +``` + +和产品其他字段一起提交即可,不需要单独接口。