Commit 8d9c3759 authored by zhengke's avatar zhengke

修改

parent 8ed44b14
......@@ -203,9 +203,31 @@
changePrice() {
let temp = this.CourseList.find(x => x.CourseId == this.OrderMsg.CourseId);
if (temp) {
this.OrderMsg.Unit_Price = temp.SellPrice;
this.UnitPrice = temp.SellPrice;
this.courseObj = temp;
if(this.OrderMsg.GuestNum==1){
if(temp.CoursePriceList.length>0){
if(temp.CoursePriceList[0].PriceType==0){
let DisCount = (100-temp.CoursePriceList[0].PriceMoney)/100;
this.OrderMsg.Unit_Price = temp.SellPrice*DisCount;
this.UnitPrice = temp.SellPrice*DisCount;
}else{
this.OrderMsg.Unit_Price = temp.SellPrice-item.CoursePriceList[0].PriceMoney;
this.UnitPrice = temp.SellPrice-item.CoursePriceList[0].PriceMoney;
}
}
}
if(this.OrderMsg.GuestNum>1){
if(temp.CoursePriceList.length>0){
if(temp.CoursePriceList[1].PriceType==0){
let DisCount = (100-temp.CoursePriceList[1].PriceMoney)/100;
this.OrderMsg.Unit_Price = temp.SellPrice*DisCount;
this.UnitPrice = temp.SellPrice*DisCount;
}else{
this.OrderMsg.Unit_Price = temp.SellPrice-item.CoursePriceList[1].PriceMoney;
this.UnitPrice = temp.SellPrice-item.CoursePriceList[1].PriceMoney;
}
}
}
} else {
this.OrderMsg.Unit_Price = 0;
this.UnitPrice = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment