|
|
|
@ -191,6 +191,7 @@ |
|
|
|
if(this.$isRight(arr)){ |
|
|
|
let price = arr[0].adjustmentTotal; |
|
|
|
let adjustmentTotal = new Bigc(price).div(100); |
|
|
|
adjustmentTotal = adjustmentTotal.round(2, 0); |
|
|
|
return Math.abs(adjustmentTotal); |
|
|
|
}else{ |
|
|
|
return 0 |
|
|
|
@ -251,7 +252,7 @@ |
|
|
|
}, |
|
|
|
// 单位转换金额 |
|
|
|
unitConversion(price){ |
|
|
|
let newPrice = new Bigc(price).div(100); |
|
|
|
let newPrice = new Bigc(price).div(100).round(2, 0); |
|
|
|
return Math.abs(newPrice); |
|
|
|
}, |
|
|
|
// 计算金额 |
|
|
|
@ -265,7 +266,7 @@ |
|
|
|
let itemP = price.times(item.quantity); |
|
|
|
itemsPrice = itemsPrice.plus(itemP); |
|
|
|
}) |
|
|
|
this.itemsPrice = itemsPrice; |
|
|
|
this.itemsPrice = itemsPrice.round(2, 0); |
|
|
|
// 减去优惠券的价格 |
|
|
|
if(this.coupon_index != null){ |
|
|
|
let coupon = detail.coupons[this.coupon_index]; |
|
|
|
@ -283,7 +284,7 @@ |
|
|
|
let payable_freight = new Bigc(detail.order.payable_freight).div(100); |
|
|
|
itemsPrice = itemsPrice.plus(payable_freight); |
|
|
|
} |
|
|
|
this.totalPrice = itemsPrice; // 合计价格 |
|
|
|
this.totalPrice = itemsPrice.round(2, 0); // 合计价格 |
|
|
|
}, |
|
|
|
// 切换订单是邮寄还是自提 |
|
|
|
switchMode(mode){ |
|
|
|
|