From 7bcc0c07a68103c4eb35baa532edd6fc9196edfb Mon Sep 17 00:00:00 2001 From: API Changelog Bot Date: Sun, 19 Apr 2026 01:23:19 +0800 Subject: [PATCH] =?UTF-8?q?docs(mp):=20banner=20changelog=20=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3=20seasons=20=E4=B8=BA=E5=B0=8F=E5=86=99=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E5=80=BC=20(spring/summer/autumn/winter)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.7 (1M context) --- .../2026-04-19_mp-banner-active-link-target.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/changelogs/2026-04/2026-04-19_mp-banner-active-link-target.md b/changelogs/2026-04/2026-04-19_mp-banner-active-link-target.md index 775726a..8db655c 100644 --- a/changelogs/2026-04/2026-04-19_mp-banner-active-link-target.md +++ b/changelogs/2026-04/2026-04-19_mp-banner-active-link-target.md @@ -42,7 +42,7 @@ Banner 列表每个元素在原有字段基础上新增: "subtitle": null, "coverImageUrl": "https://cdn.example.com/line-cover.jpg", "productType": "GROUP", - "seasons": ["SPRING", "SUMMER"], + "seasons": ["spring", "summer"], "lineId": null } } @@ -58,7 +58,7 @@ Banner 列表每个元素在原有字段基础上新增: | `subtitle` | string \| null | 副标题 | null | ✅ | | `coverImageUrl` | string \| null | 封面图 URL | ✅ | ✅ | | `productType` | string | `CORE` / `GROUP` / `CUSTOM` | ✅ | ✅ | -| `seasons` | string[] | 适用季节,字典 `season`:`SPRING` / `SUMMER` / `AUTUMN` / `WINTER` | ✅ | ✅ | +| `seasons` | string[] | 适用季节,字典 `product_season`:`spring` / `summer` / `autumn` / `winter`(**小写**) | ✅ | ✅ | | `lineId` | long \| null | 所属产品线 ID | null | ✅ | ### `linkTarget=null` 的情况 @@ -97,10 +97,10 @@ banners.forEach(banner => { ```js const SEASON_LABEL = { - SPRING: '春季', - SUMMER: '夏季', - AUTUMN: '秋季', - WINTER: '冬季', + spring: '春季', + summer: '夏季', + autumn: '秋季', + winter: '冬季', }; // target.seasons.map(s => SEASON_LABEL[s]) → ['春季', '夏季'] ```