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,