From 06658209eb6b3a6e393548f5248bcb54e14f4e8c Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Wed, 11 Sep 2024 23:11:51 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20JS=E8=AE=A1=E6=95=B0=E8=AE=A1=E7=AE=97?= =?UTF-8?q?=E7=B2=BE=E7=A1=AE=E5=BA=A6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CouponsPopup.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/CouponsPopup.vue b/components/CouponsPopup.vue index 427b3db..eee1be7 100644 --- a/components/CouponsPopup.vue +++ b/components/CouponsPopup.vue @@ -148,7 +148,7 @@ export default { return this.twoList['unusable'].length }, computePrice() { - return this.currentPrice - this.selectItem.couponPrice + return this.force2Decimal(this.currentPrice - this.selectItem.couponPrice) }, maxIndex() { const maxIndex = this.list.reduce((a, b, c) => { @@ -163,6 +163,9 @@ export default { }, methods: { + force2Decimal(value) { + return this.$force2Decimal(value); + }, changeNav(index) { this.current = index },