From d14b303899b794e3da4d1a435e7e7c7b9400c13d Mon Sep 17 00:00:00 2001 From: 18650502300 <18650502300@163.com> Date: Thu, 5 Sep 2024 09:03:39 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=B4=BE=E5=8F=91=E4=BC=98=E6=83=A0=E5=88=B8?= =?UTF-8?q?=E7=BB=99=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/coupon.js | 9 ++ src/views/system/coupon/index.vue | 204 +++++++++++++++++++++++++++--- src/views/user/user/index.vue | 54 ++++---- 3 files changed, 229 insertions(+), 38 deletions(-) diff --git a/src/api/system/coupon.js b/src/api/system/coupon.js index 9b81337..2a6ef03 100644 --- a/src/api/system/coupon.js +++ b/src/api/system/coupon.js @@ -42,3 +42,12 @@ export function delCoupon(couponId) { method: 'delete' }) } + +// 派发优惠券 +export function issueCoupon(data) { + return request({ + url: '/system/coupon/issue', + method: 'post', + data: data + }) +} diff --git a/src/views/system/coupon/index.vue b/src/views/system/coupon/index.vue index 7fea81b..2689b55 100644 --- a/src/views/system/coupon/index.vue +++ b/src/views/system/coupon/index.vue @@ -84,6 +84,7 @@ + - + + + + - +