|
@@ -817,7 +817,15 @@ export default {
|
|
|
} else {
|
|
} else {
|
|
|
this.totalPrice1 = parseFloat(parseFloat(this.totalPrice) + parseFloat(this.dabaoMoney)).toFixed(2)
|
|
this.totalPrice1 = parseFloat(parseFloat(this.totalPrice) + parseFloat(this.dabaoMoney)).toFixed(2)
|
|
|
}
|
|
}
|
|
|
|
|
+ console.log(this.totalPrice1,'切换')
|
|
|
if (this.coupon) {
|
|
if (this.coupon) {
|
|
|
|
|
+ if (this.orderType == 2) {
|
|
|
|
|
+ this.totalPrice1 = parseFloat(
|
|
|
|
|
+ parseFloat(this.totalPrice) + parseFloat(this.paotuiMoney) + parseFloat(this.dabaoMoney) + parseFloat(this.address.insideDeliveryFee)
|
|
|
|
|
+ ).toFixed(2)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.totalPrice1 = parseFloat(parseFloat(this.totalPrice) + parseFloat(this.dabaoMoney)).toFixed(2)
|
|
|
|
|
+ }
|
|
|
let totalMoney = parseFloat(
|
|
let totalMoney = parseFloat(
|
|
|
this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0).toFixed(2)
|
|
this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0).toFixed(2)
|
|
|
)
|
|
)
|
|
@@ -829,6 +837,13 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (this.huodong) {
|
|
if (this.huodong) {
|
|
|
|
|
+ if (this.orderType == 2) {
|
|
|
|
|
+ this.totalPrice1 = parseFloat(
|
|
|
|
|
+ parseFloat(this.totalPrice) + parseFloat(this.paotuiMoney) + parseFloat(this.dabaoMoney) + parseFloat(this.address.insideDeliveryFee)
|
|
|
|
|
+ ).toFixed(2)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.totalPrice1 = parseFloat(parseFloat(this.totalPrice) + parseFloat(this.dabaoMoney)).toFixed(2)
|
|
|
|
|
+ }
|
|
|
let totalMoney = parseFloat(
|
|
let totalMoney = parseFloat(
|
|
|
this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0).toFixed(2)
|
|
this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0).toFixed(2)
|
|
|
)
|
|
)
|
|
@@ -838,9 +853,17 @@ export default {
|
|
|
this.totalPrice1 = totalMoney
|
|
this.totalPrice1 = totalMoney
|
|
|
}
|
|
}
|
|
|
}if (this.Vipmoney.canReduceFlag=='1') {
|
|
}if (this.Vipmoney.canReduceFlag=='1') {
|
|
|
|
|
+ if (this.orderType == 2) {
|
|
|
|
|
+ this.totalPrice1 = parseFloat(
|
|
|
|
|
+ parseFloat(this.totalPrice) + parseFloat(this.paotuiMoney) + parseFloat(this.dabaoMoney) + parseFloat(this.address.insideDeliveryFee)
|
|
|
|
|
+ ).toFixed(2)
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.totalPrice1 = parseFloat(parseFloat(this.totalPrice) + parseFloat(this.dabaoMoney)).toFixed(2)
|
|
|
|
|
+ }
|
|
|
let totalMoney = parseFloat(
|
|
let totalMoney = parseFloat(
|
|
|
this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0).toFixed(2)
|
|
this.totalPrice1 - (this.coupon.money ? this.coupon.money : 0) - (this.huodong.discountAmount ? this.huodong.discountAmount : 0)-(this.Vipmoney.reduceAmount?this.Vipmoney.reduceAmount:0).toFixed(2)
|
|
|
)
|
|
)
|
|
|
|
|
+ console.log(this.totalPrice1,this.coupon.money,this.Vipmoney.reduceAmount,totalMoney,'totalMoney')
|
|
|
if (totalMoney <= 0) {
|
|
if (totalMoney <= 0) {
|
|
|
this.totalPrice1 = 0.01
|
|
this.totalPrice1 = 0.01
|
|
|
} else {
|
|
} else {
|