From 5eb259e56fd0a078299549a1e595b831d9d0d14d Mon Sep 17 00:00:00 2001 From: Wik-T <812952667@qq.com> Date: Tue, 8 Nov 2022 09:53:14 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95=E7=A1=AE?= =?UTF-8?q?=E8=AE=A4=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- high-unionPay/pages/order/confirmation.vue | 13 +- high-unionPay/pages/user/coupon/coupon.vue | 353 +++++++++++++++------ high-unionPay/uni.scss | 3 + 3 files changed, 263 insertions(+), 106 deletions(-) diff --git a/high-unionPay/pages/order/confirmation.vue b/high-unionPay/pages/order/confirmation.vue index 97991e2..b4c61a0 100644 --- a/high-unionPay/pages/order/confirmation.vue +++ b/high-unionPay/pages/order/confirmation.vue @@ -159,13 +159,13 @@ 优惠券选择 - + - + - {{items.highDiscount.discountName}} - 有效期至:{{items.highDiscount.salesEndTime | formatDate('-')}} + {{items.discountName}} + 有效期至:{{items.salesEndTime | formatDate('-')}} @@ -727,11 +727,10 @@ this.isDiscount = 1; if (this.deductionPrice == 0) { this.paytheprice = parseFloat(this.saveprice - parseFloat(this.priceValue[1] / 100).toFixed(2)) - .toFixed( - 2); + .toFixed(2); } else { this.paytheprice = parseFloat(this.orderPrice - parseFloat(this.priceValue[1] / 100).toFixed(2) - this - .deductionPrice).toFixed(2); + .deductionPrice).toFixed(2); } if (this.paytheprice == 0) { this.isUse = false; diff --git a/high-unionPay/pages/user/coupon/coupon.vue b/high-unionPay/pages/user/coupon/coupon.vue index 9d9ecc0..3efbc78 100644 --- a/high-unionPay/pages/user/coupon/coupon.vue +++ b/high-unionPay/pages/user/coupon/coupon.vue @@ -7,9 +7,9 @@ 已过期 - - {{item}} + + {{item.codeName}} @@ -23,31 +23,43 @@ - + + + 满减券 + + - + + + 抵扣券 + + + 折扣券 话费券 - {{row.highDiscount.discountName}} + style="width: 50px;background-color: #347edd;border-radius: 20px;">{{orderTyplist | msgFormat(row.discountUseScope)}} + {{row.discountName}} 有效期:{{row.useEndTime | formatDate('-')}} - - - {{row.highDiscount.discountPrice * 10}} + + + {{row.discountPrice * 10}} - {{row.highDiscount.discountPrice}} + {{row.discountPrice}} - + @@ -55,7 +67,7 @@ 去使用 @@ -73,28 +85,52 @@ - - {{row.highDiscount.discountName}} + + + + + 满减券 + + + + + 抵扣券 + + + + + 折扣券 + + + + {{orderTyplist | msgFormat(row.discountUseScope)}} + {{row.discountName}} - 使用时间:{{row.useTime | formatDate('-')}} + 有效期:{{row.useEndTime | formatDate('-')}} + - - - - {{row.highDiscount.discountPrice}} + + + + {{row.discountPrice * 10}} + + + {{row.discountPrice}} + + + 折 - + - - {{row.highDiscount.discountName}} - - - 已使用 - @@ -108,28 +144,52 @@ - - {{row.highDiscount.discountName}} + + + + + 满减券 + + + + + 抵扣券 + + + + + 折扣券 + + + + {{orderTyplist | msgFormat(row.discountUseScope)}} + {{row.discountName}} - 过期时间:{{row.useEndTime | formatDate('-')}} + 有效期:{{row.useEndTime | formatDate('-')}} + - - - - {{row.highDiscount.discountPrice}} + + + + {{row.discountPrice * 10}} + + + {{row.discountPrice}} - + + 折 + + - - {{row.highDiscount.discountName}} - - - 已过期 - @@ -142,7 +202,8 @@