This commit is contained in:
YeMingfei666 2024-11-20 16:42:53 +08:00
commit e00213be32
1 changed files with 3 additions and 2 deletions

View File

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