From 797f6e6ed49f28291a79901c9b39b6b3ca400d04 Mon Sep 17 00:00:00 2001 From: "pikachu1995@126.com" Date: Thu, 12 Nov 2026 16:25:23 +0800 Subject: [PATCH] =?UTF-8?q?feat(promotion):=20=E6=96=B0=E5=A2=9E=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8=E7=AB=AF=E4=BC=98=E6=83=A0=E5=88=B8=E7=A4=BC=E5=8C=85?= =?UTF-8?q?=E4=B8=93=E5=B1=9E=E8=90=BD=E5=9C=B0=E9=A1=B5=E5=8F=8A=E4=B8=80?= =?UTF-8?q?=E9=94=AE=E9=A2=86=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 +- api/promotions.js | 26 ++ pages.json | 8 + pages/promotion/coupon-pack.vue | 500 ++++++++++++++++++++++++++++++++ 4 files changed, 537 insertions(+), 1 deletion(-) create mode 100644 pages/promotion/coupon-pack.vue diff --git a/README.md b/README.md index a45d783..0d7e550 100644 --- a/README.md +++ b/README.md @@ -160,7 +160,7 @@ lilishop-uniapp ## 8. 升级计划 -> 更新日期:2026-11-05,依据各端提交记录及当前代码实现同步。 +> 更新日期:2026-11-12,依据各端提交记录及当前代码实现同步。 ### ✅ 已完成功能 @@ -168,6 +168,8 @@ lilishop-uniapp | 时间 | 功能模块 | 完成内容 | | :--- | :--- | :--- | +| 2026-11-12 | 优惠券礼包 | 新增移动端优惠券礼包专属落地页,支持总立省金额展示、子券清单、一键全部领取。 | +| 2026-11-12 | 出库单 / 库存流水 | 支持商家端出库单管理(录入、审核与作废)及商品库存流水台账。 | | 2026-11-06 | 提货卡 | 支持提货卡活动与候选商品配置、制卡发卡、兑换核销及使用记录管理。 | | 2026-11-05 | 付费会员 | 单一付费会员、开通与续费、有效期、关联权益、商家与商品折扣、平台补贴及付费记录。 | | 2026-11-04 | 客户等级体系 / 客户权益 | 等级配置、权益介绍、经验值任务与明细、权益发放及重试,提供默认等级与权益数据。 | diff --git a/api/promotions.js b/api/promotions.js index 2724ea0..d275b1a 100644 --- a/api/promotions.js +++ b/api/promotions.js @@ -239,3 +239,29 @@ export function activateGiftCardCashMemberCard(memberCardId) { } + +/** + * 获取优惠券礼包详情 + * @param {string} id 券礼包活动ID + * @author Bulbasaur + * @since 2026-11-12 + */ +export function getCouponPackageDetail(id) { + return http.request({ + url: /buyer/promotion/coupon/package/, + method: Method.GET, + }); +} + +/** + * 买家一键领取优惠券礼包 + * @param {string} id 券礼包活动ID + * @author Bulbasaur + * @since 2026-11-12 + */ +export function receiveCouponPackage(id) { + return http.request({ + url: /buyer/promotion/coupon/package/receive/, + method: Method.POST, + }); +} \ No newline at end of file diff --git a/pages.json b/pages.json index b83795a..1d188a4 100644 --- a/pages.json +++ b/pages.json @@ -732,6 +732,14 @@ { "root": "pages/promotion", "pages": [ { + "path": "coupon-pack", + "style": { + "navigationBarTitleText": "专属优惠券礼包", + "navigationBarTextStyle": "white", + "navigationBarBackgroundColor": "#ff4142" + } + }, + { "path": "seckill", "style": { "navigationBarTitleText": "限时抢购", diff --git a/pages/promotion/coupon-pack.vue b/pages/promotion/coupon-pack.vue new file mode 100644 index 0000000..6925b61 --- /dev/null +++ b/pages/promotion/coupon-pack.vue @@ -0,0 +1,500 @@ + + + + + +