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 },