Commit ec0626bf authored by 黄奎's avatar 黄奎

页面修改

parent 8d9c3759
......@@ -202,10 +202,11 @@
//选择课程切换价格
changePrice() {
let temp = this.CourseList.find(x => x.CourseId == this.OrderMsg.CourseId);
console.log("temp",temp);
if (temp) {
this.courseObj = temp;
if(this.OrderMsg.GuestNum==1){
if(temp.CoursePriceList.length>0){
if(temp.CoursePriceList&&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;
......@@ -217,8 +218,8 @@
}
}
if(this.OrderMsg.GuestNum>1){
if(temp.CoursePriceList.length>0){
if(temp.CoursePriceList[1].PriceType==0){
if(temp.CoursePriceList&&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;
......
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