From 987129ebffad90511fe3dd94e0ea924011310576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A5=8F?= <1978476055@qq.com> Date: Mon, 2 Dec 2024 10:12:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BD=AC=E7=9B=98=E5=8A=A9=E5=8A=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/marketing/lottery/addGoods.vue | 92 +++++-- .../lottery/components/couponList.vue | 248 ++++++++++++++++++ src/views/marketing/lottery/create.vue | 10 + src/views/user/list/userDetails.vue | 2 +- 4 files changed, 333 insertions(+), 19 deletions(-) create mode 100644 src/views/marketing/lottery/components/couponList.vue diff --git a/src/views/marketing/lottery/addGoods.vue b/src/views/marketing/lottery/addGoods.vue index f54c23c..874457c 100644 --- a/src/views/marketing/lottery/addGoods.vue +++ b/src/views/marketing/lottery/addGoods.vue @@ -11,36 +11,40 @@ 未中奖 免单 实物 - - + 优惠券 + 铸源星 - - + + + {{ + this.formValidate.coupon_name + }} - 添加优惠券 --> + > @@ -124,6 +128,21 @@ style="width: 300px" > + + + --> + + + + +   + + + + + + + {{ row.type | couponTypeFilter }} + + + + + + {{ + scope.row.use_min_price === 0 ? "不限制" : scope.row.use_min_price + }} + + + + + {{ + scope.row.coupon_type === 1 + ? scope.row.use_start_time + "-" + scope.row.use_end_time + : scope.row.coupon_time + "天" + }} + + + + + {{ + scope.row.is_limited === 0 ? "不限量" : scope.row.remain_count + }} + + + + + + + + + + + + + + + + + diff --git a/src/views/marketing/lottery/create.vue b/src/views/marketing/lottery/create.vue index 9cc20e8..445f706 100644 --- a/src/views/marketing/lottery/create.vue +++ b/src/views/marketing/lottery/create.vue @@ -593,6 +593,14 @@ export default { name: "大转盘", type: "1", }, + { + name: "好友助力", + type: "2", + }, + { + name: "新人礼", + type: "3", + }, // { // name: "订单支付", // type: "3", @@ -855,6 +863,8 @@ export default { if (valid) { this.submitOpen = true; + console.log(this.formValidate.id); + if (this.formValidate.id) { lotteryEdit(this.formValidate.id, this.formValidate) .then(async (res) => { diff --git a/src/views/user/list/userDetails.vue b/src/views/user/list/userDetails.vue index 521938d..d405c8a 100644 --- a/src/views/user/list/userDetails.vue +++ b/src/views/user/list/userDetails.vue @@ -840,7 +840,7 @@ min-width="100" />