From db33b34f18ac061ec1a52ba936316594d0ca3448 Mon Sep 17 00:00:00 2001 From: paulGao Date: Wed, 11 Jan 2023 11:28:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E4=BC=98=E6=83=A0?= =?UTF-8?q?=E5=88=B8=E9=A2=86=E5=8F=96=E8=AF=A6=E6=83=85=E5=92=8C=E4=BC=98?= =?UTF-8?q?=E5=8C=96pc=E7=AB=AF=E8=B7=B3=E8=BD=AC=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/pages/CouponCenter.vue | 221 ++++++------ buyer/src/pages/GoodsList.vue | 29 +- buyer/src/pages/home/userCenter/Coupons.vue | 151 ++++---- manager/src/api/promotion.js | 15 + manager/src/router/router.js | 6 + manager/src/utils/promotions.js | 29 +- .../promotions/coupon/coupon-receive.vue | 321 ++++++++++++++++++ .../src/views/promotions/coupon/coupon.vue | 50 ++- seller/src/api/promotion.js | 51 +-- seller/src/router/router.js | 6 + seller/src/utils/promotions.js | 29 +- .../views/promotion/coupon/coupon-receive.vue | 285 ++++++++++++++++ seller/src/views/promotion/coupon/coupon.vue | 22 +- 13 files changed, 1004 insertions(+), 211 deletions(-) create mode 100644 manager/src/views/promotions/coupon/coupon-receive.vue create mode 100644 seller/src/views/promotion/coupon/coupon-receive.vue diff --git a/buyer/src/pages/CouponCenter.vue b/buyer/src/pages/CouponCenter.vue index e3f589f2..959e0329 100644 --- a/buyer/src/pages/CouponCenter.vue +++ b/buyer/src/pages/CouponCenter.vue @@ -5,25 +5,44 @@
- +

领券中心

- +
推荐好券
- +
  • - {{item.price | unitPrice}} - {{item.couponDiscount}} - 满{{item.consumeThreshold}}元可用 + {{ + item.price | unitPrice + }} + {{ item.couponDiscount }} + 满{{ item.consumeThreshold }}元可用
    -

    使用范围:{{useScope(item.scopeType, item.storeName)}}

    -

    有效期:{{item.endTime}}

    +

    使用范围:{{ useScope(item.scopeType, item.storeName) }}

    +

    有效期:{{ item.endTime }}

    立即领取 @@ -31,12 +50,15 @@
- + show-sizer + >
@@ -44,135 +66,136 @@ diff --git a/buyer/src/pages/GoodsList.vue b/buyer/src/pages/GoodsList.vue index 94038860..0d454c22 100644 --- a/buyer/src/pages/GoodsList.vue +++ b/buyer/src/pages/GoodsList.vue @@ -82,20 +82,24 @@
- + 自营 虚拟 实物 @@ -155,13 +159,21 @@ export default { watch: { $route() { const keyword = this.$route.query.keyword; - this.handleSearch(keyword); + if (keyword) { + this.handleSearch(keyword); + } if (this.$route.query.categoryId) { let cateId = this.$route.query.categoryId.split(","); Object.assign(this.params, this.$route.query); this.params.categoryId = cateId[cateId.length - 1]; - this.getGoodsList(); } + if (this.$route.query.promotionType) { + this.params.promotionType = this.$route.query.promotionType; + } + if (this.$route.query.promotionsId) { + this.params.promotionsId = this.$route.query.promotionsId; + } + this.getGoodsList(); }, }, methods: { @@ -301,7 +313,6 @@ export default { margin-top: 5px; } - .goods-show-self { float: left; height: 16px; diff --git a/buyer/src/pages/home/userCenter/Coupons.vue b/buyer/src/pages/home/userCenter/Coupons.vue index b1b2ed0c..8da1314d 100644 --- a/buyer/src/pages/home/userCenter/Coupons.vue +++ b/buyer/src/pages/home/userCenter/Coupons.vue @@ -1,136 +1,155 @@