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 @@ + + + + + \ 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 @@ @@ -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