From 882e222c5ad25e2c9aa4c74427ecd485c74b9c7a Mon Sep 17 00:00:00 2001 From: mabo Date: Mon, 24 May 2021 18:14:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E9=80=89=E6=8B=A9=E5=99=A8?= =?UTF-8?q?=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buyer/src/assets/images/geted.png | Bin 1550 -> 4495 bytes buyer/src/pages/payment/Pay.vue | 52 ++++++++++--- seller/src/views/lili-dialog/goods-dialog.vue | 37 ++++++--- seller/src/views/lili-dialog/index.vue | 28 ++----- seller/src/views/promotion/coupon/coupon.vue | 6 +- .../views/promotion/coupon/couponPublish.vue | 22 +++--- .../src/views/promotion/fullCut/fullCut.vue | 4 +- .../views/promotion/fullCut/newFullCut.vue | 38 ++++----- .../src/views/promotion/pintuan/pintuan.vue | 4 +- .../views/promotion/pintuan/pintuanGoods.vue | 33 ++++---- .../src/views/promotion/seckill/seckill.vue | 1 + .../views/promotion/seckill/seckillGoods.vue | 73 +++++++++--------- 12 files changed, 164 insertions(+), 134 deletions(-) diff --git a/buyer/src/assets/images/geted.png b/buyer/src/assets/images/geted.png index 9bab88c61c80e3631ab34ce4f8ac879870db3582..0dc683c07e105e82df11d7f0ef60d8b7d97ef961 100644 GIT binary patch literal 4495 zcmbVQc|4SB`yY&wC}c~~n2|V)S*$ZmVTQ&s8f*5-t{zbzOhVIik&BaZv?P z001CvfydeL-=>?7$QJ(Z9}a-G{MR-X-h~4IY~Qu{2mrEjrAjlQ<#BT zBr20k(+Uk_@zDT)(VG%_Dn*9kI z2g(V53W^FobP!||islmp(zqm0XkY+?gAT=jzwx5^!T<(0fFZP@2tBk89F0VRzF%OzH8#~7ZHF`e zZj1kg0sC^fEHn%j5)z^nqOHYb`@j$=6bc4M!jMQP9|7frF}S2qD1!s}!GNQ2C~P{5 zOJ_1bn~WqfGl+`;^F94bLLloWErattO#FbsLP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+plkz_7X1+U`zNAz{Iy`F>k7%n`13bX zfQ9*=U+dD9iL~_jrOV6Uj~^IGS&A}hqZD?Uq&#JRZ<`)Jv*h3Xs~12uFi4}O3Hx&k uDOc?4vcmRPfd4bU0Oh8Z$ujE$OWkY diff --git a/buyer/src/pages/payment/Pay.vue b/buyer/src/pages/payment/Pay.vue index 79dcbc9a..0ae2f84d 100644 --- a/buyer/src/pages/payment/Pay.vue +++ b/buyer/src/pages/payment/Pay.vue @@ -116,11 +116,13 @@ {{item.couponDiscount}} 满{{item.consumeThreshold}}元可用 -

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

-

有效期:{{item.endTime}}

+

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

+

有效期:{{item.endTime}}

+ - 立即使用 + 立即使用 + 放弃优惠 @@ -207,7 +209,9 @@ export default { moreAddr: false, // 更多地址 canUseCouponNum: 0, // 可用优惠券数量 couponList: [], // 可用优惠券列表 - logoImg: '' // 平台logo + logoImg: '', // 平台logo + usedCouponId: [], // 已使用优惠券id + selectedCoupon: {} // 已选优惠券对象 }; }, mounted () { @@ -250,7 +254,10 @@ export default { this.goodsList = res.result.cartList; this.priceDetailDTO = res.result.priceDetailDTO; this.skuList = res.result.skuList; - let notSupArea = res.result.notSupportFreight + let notSupArea = res.result.notSupportFreight; + this.selectedCoupon = {} + if (res.result.platformCoupon) this.selectedCoupon.platformCoupon = res.result.platformCoupon + Object.assign(this.selectedCoupon, res.result.storeCoupons) if (notSupArea) { let content = []; let title = '' @@ -295,8 +302,22 @@ export default { storeId: storeArr.toString(), totalPrice: this.priceDetailDTO.goodsPrice } - canUseCouponList(params).then(res => { + canUseCouponList(params).then(res => { // 可用优惠券列表 if (res.success) this.couponList = res.result.records + const couponKeys = Object.keys(this.selectedCoupon) + this.usedCouponId = [] + if (couponKeys.length) { + this.couponList.forEach(e => { + if (e.id === this.selectedCoupon[couponKeys].memberCoupon.id) { + this.usedCouponId.push(e.id) + } + }) + this.$nextTick(() => { + this.$forceUpdate() + }) + } + + }) } }) @@ -361,16 +382,14 @@ export default { }); }, - useCoupon (id) { // 使用优惠券 + useCoupon (id, used) { // 使用优惠券 let params = { way: this.$route.query.way, memberCouponId: id, - used: true + used: used // true 为使用, false为弃用 } selectCoupon(params).then(res => { - if (res.success) { - this.init() - } + if (res.success) this.init() }) }, editInvoice () { // 编辑发票信息 @@ -774,5 +793,16 @@ export default { .circle-top,.circle-bottom{ right: 22px; } + .used { + position: absolute; + top: 60px; + right: 40px; + width: 50px; + height: 50px; + } +} +.coupon-list { + max-height: 260px; + overflow: scroll; } diff --git a/seller/src/views/lili-dialog/goods-dialog.vue b/seller/src/views/lili-dialog/goods-dialog.vue index b3064aa1..9703e8c5 100644 --- a/seller/src/views/lili-dialog/goods-dialog.vue +++ b/seller/src/views/lili-dialog/goods-dialog.vue @@ -41,12 +41,17 @@