From c7283a493c9e5de0dd159c911a671f66e21c4b04 Mon Sep 17 00:00:00 2001 From: YeMingfei666 <1619116647@qq.com> Date: Wed, 20 Nov 2024 16:36:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=95=B4=E5=8D=95=E6=94=B9?= =?UTF-8?q?=E4=BB=B7=E6=97=B6=E4=BB=B7=E6=A0=BC=E4=B8=8D=E5=AF=B9=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/tool/Instead/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/tool/Instead/index.vue b/src/views/tool/Instead/index.vue index 457e69a..7510105 100644 --- a/src/views/tool/Instead/index.vue +++ b/src/views/tool/Instead/index.vue @@ -1757,11 +1757,12 @@ export default { const amount = this.createOrder.data.amount || 0; const discount = this.createOrder.discount || 1; // const total=((amount - this.coupdiscount) * this.createOrder.discount - this.points.toMoney) - const total = (amount - this.coupdiscount) * this.createOrder.discount; + const total = (amount) * this.createOrder.discount - this.coupdiscount; return total <= 0 ? 0 : total; }, yinFuJinE() { const total = this.currentPayMoney - (this.points.toMoney || 0); + console.log(total) if (this.isCreateOrder) { return total.toFixed(2); } else { @@ -2676,7 +2677,7 @@ export default { if (!canDiscount) { return; } - const amount = this.createOrder.data.amount - this.coupdiscount; + const amount = this.createOrder.data.amount; this.refToggle("refDiscount", true, { amount, discount: this.createOrder.discount * 100,