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