From a67035e2efeabef4e39d7f66747615dad5aa127d Mon Sep 17 00:00:00 2001
From: GaoHao <1210693421@qq.com>
Date: Thu, 24 Oct 2024 15:46:44 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BC=98=E6=83=A0=E5=88=B8?=
=?UTF-8?q?=E7=9B=B8=E5=85=B3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pageCoupon/components/select-goods.vue | 183 ++++++++
pageCoupon/discountCoupons.vue | 390 +++++++----------
pageCoupon/editCertificate.vue | 160 +++++++
pageCoupon/index.vue | 580 +++++++++----------------
pages.json | 9 +-
pages/index/index.vue | 5 +
static/coupon/icon_coupon.svg | 1 +
static/coupon/qrcode.svg | 1 +
8 files changed, 706 insertions(+), 623 deletions(-)
create mode 100644 pageCoupon/components/select-goods.vue
create mode 100644 pageCoupon/editCertificate.vue
create mode 100644 static/coupon/icon_coupon.svg
create mode 100644 static/coupon/qrcode.svg
diff --git a/pageCoupon/components/select-goods.vue b/pageCoupon/components/select-goods.vue
new file mode 100644
index 0000000..feab79a
--- /dev/null
+++ b/pageCoupon/components/select-goods.vue
@@ -0,0 +1,183 @@
+
+
+
+
+ 请选择
+
+
+
+
+ {{item.name}}
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+
+ 确定
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pageCoupon/discountCoupons.vue b/pageCoupon/discountCoupons.vue
index 73816ad..6d7384c 100644
--- a/pageCoupon/discountCoupons.vue
+++ b/pageCoupon/discountCoupons.vue
@@ -1,150 +1,81 @@
-
-
-
- 基础设置
-
-
- 赠送设置
-
-
-
-
- 折扣名称
+
+
+ 优惠券名称
+
+
+
-
-
-
-
-
- 折扣(%)
-
-
-
-
-
-
- 使用门槛
-
-
-
-
-
-
- 优惠券类型
-
-
- 单次折扣券
- 储值折扣券
-
-
- 最大抵扣金额
-
-
-
-
-
-
- 抵扣规则
-
- 从最高价开始抵扣
-
- 可抵扣件数
-
-
-
-
-
-
- 有效期类型
-
- 领券后有效期内可用
-
- 有效期(天)
-
-
-
-
-
-
- 隔天生效
-
-
-
-
-
-
- 总发放数量
-
-
-
-
-
-
- 可用门店
-
-
- 进本店可用
- >
+
+ 使用门槛
+
+ 满元,减元
+
-
-
- 可用商品
+
+
+ 有效期类型
+
+
+
+
+
+
-
- 指定商品可用
- >
+
+ 有效期(天)
+
+
+
-
-
-
-
- 选择商品
-
- >
-
+
+ 隔天生效
+
+ 隔天生效
+
+
+
+ 可用日期
+
+
+
+
+
+
+
+
+ 指定时间段可用
+
+
+
+
+
+
-
-
-
-
-
- 更多设置
- >
+
+
+ 总发放数量
+
+
+
+
+
-
-
- 指定时间段可用
-
-
- 全时段可用
- 指定时段可用
-
-
-
-
- 发放方式
-
-
- 用户不可自行领取
- >
-
-
-
-
- 每人领取限量
-
- 不限量
-
-
- 不限量
-
-
+
+
+
+
\ No newline at end of file
diff --git a/pageCoupon/index.vue b/pageCoupon/index.vue
index ccf5b16..357d8b0 100644
--- a/pageCoupon/index.vue
+++ b/pageCoupon/index.vue
@@ -1,311 +1,82 @@
-
- {{item}}
+ {{item}}(0)
-
+
+
搜索
-
-
+
+
+
-
- 充值20元优惠券
-
-
- ID:258792
-
+ 充值20元优惠券
+ ID:258792
-
- 使用门槛
-
-
- 满200.00元减20.00元
-
+ 使用门槛
+ 满200.00元减20.00元
-
- 券类型
-
-
- 店铺领取可用
-
+ 领取方式
+ 店铺领取可用
-
- 使用门槛
-
-
- 满200.00元减20.00元
-
-
-
-
- 使用门槛
-
-
- 满200.00元减20.00元
-
-
-
-
- 使用门槛门槛
-
-
- 满200.00元减20.00元
-
+ 有效期
+ 满200.00元减20.00元
-
+
-
- 1000
-
-
- 发放数量
-
+ 1000
+ 发放数量
-
- 1000
-
-
- 发放数量
-
+ 0
+ 发放数量
-
- 1000
-
-
- 发放数量
-
+ 1000
+ 发放数量
-
- 1000
-
-
- 发放数量
-
+ 0
+ 发放数量
-
+
-
-
-
-
-
-
-
-
- 充值20元优惠券
-
-
- ID:258792
-
-
-
-
-
- 使用门槛
-
-
- 满200.00元减20.00元
-
-
-
-
- 券类型
-
-
- 店铺领取可用
-
-
-
-
- 使用门槛
-
-
- 满200.00元减20.00元
-
-
-
-
- 使用门槛
-
-
- 满200.00元减20.00元
-
-
-
-
- 使用门槛门槛
-
-
- 满200.00元减20.00元
-
-
-
-
-
-
-
-
-
- 1000
-
-
- 发放数量
-
-
-
-
- 1000
-
-
- 发放数量
-
-
-
-
- 1000
-
-
- 发放数量
-
-
-
-
- 1000
-
-
- 发放数量
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 充值20元优惠券
-
-
- ID:258792
-
-
-
-
-
- 使用门槛
-
-
- 满200.00元减20.00元
-
-
-
-
- 券类型
-
-
- 店铺领取可用
-
-
-
-
- 使用门槛
-
-
- 满200.00元减20.00元
-
-
-
-
- 使用门槛
-
-
- 满200.00元减20.00元
-
-
-
-
- 使用门槛门槛
-
-
- 满200.00元减20.00元
-
-
-
-
-
-
-
-
-
- 1000
-
-
- 发放数量
-
-
-
-
- 1000
-
-
- 发放数量
-
-
-
-
- 1000
-
-
- 发放数量
-
-
-
-
- 1000
-
-
- 发放数量
-
-
-
-
-
-
-
+
+
-
+
@@ -317,37 +88,72 @@
toRef,
watch
} from 'vue';
+
const pageData = reactive({
status: {
- list: ['全部', '储存中储存中', '已取完', '已过期', '储存中', '已取完', '已过期', ],
+ list: ['优惠券', '商品兑换券', ],
+ tagName: "优惠券",
active: 0,
}
})
- const adddiscount = ()=>{
- go.to('PAGES_COUPON_DISCOUNTCOUPONS')
+
+ /**
+ * tag切换
+ */
+ let tagClick = ( name,index ) => {
+ pageData.status.active = index;
+ pageData.status.tagName = name;
+ }
+
+ /**
+ * 添加
+ */
+ let addCoupon = ()=>{
+ if ( pageData.status.active == 0 ) {
+ go.to('PAGES_COUPON_DISCOUNTCOUPONS')
+ } else {
+ go.to('PAGES_COUPON_CERTIFICATE')
+ }
+ }
+
+ /**
+ * 添加
+ */
+ let editCoupon = ()=>{
+ if ( pageData.status.active == 0 ) {
+ go.to('PAGES_COUPON_DISCOUNTCOUPONS')
+ } else {
+ go.to('PAGES_COUPON_CERTIFICATE')
+ }
}
\ No newline at end of file
diff --git a/static/coupon/qrcode.svg b/static/coupon/qrcode.svg
new file mode 100644
index 0000000..b6ea4c2
--- /dev/null
+++ b/static/coupon/qrcode.svg
@@ -0,0 +1 @@
+
\ No newline at end of file