From 3ae38b662694c5a24bd42bcadea77be755cfbe49 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 29 Jun 2023 20:19:40 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E8=AE=A2=E5=8D=95=E7=A1=AE=E8=AE=A4?= =?UTF-8?q?=E3=80=91=201.=20=E5=B0=86=20coupon=20=E6=8E=A5=E5=85=A5?= =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=8A=B5=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/promotion/coupon.js | 5 +++ components/couponListWindow/index.vue | 12 ++++- pages/users/order_confirm/index.vue | 65 ++++++++++++++++----------- 3 files changed, 54 insertions(+), 28 deletions(-) diff --git a/api/promotion/coupon.js b/api/promotion/coupon.js index 0d2d08bd..c40c9a3d 100644 --- a/api/promotion/coupon.js +++ b/api/promotion/coupon.js @@ -6,6 +6,11 @@ export function takeCoupon(templateId) { }); } +// 获得匹配指定商品的优惠劵列表 +export function getMatchCouponList(data) { + return request.get("app-api/promotion/coupon/match-list", data); +} + export function getCouponPage(data) { return request.get("app-api/promotion/coupon/page", data); } diff --git a/components/couponListWindow/index.vue b/components/couponListWindow/index.vue index 0508cd1b..bdf5d4c8 100644 --- a/components/couponListWindow/index.vue +++ b/components/couponListWindow/index.vue @@ -1,6 +1,6 @@