|
|
|
@ -640,6 +640,25 @@ |
|
|
|
}, |
|
|
|
chooseTypehotel(index) { |
|
|
|
this.type_index = index; |
|
|
|
this.total_hotel_price = 0; |
|
|
|
this.total_hotel_orginalprice = 0; |
|
|
|
let differrentList = this.goods_detail.spec[this.type_index].list; |
|
|
|
console.log(differrentList) |
|
|
|
differrentList.forEach((item,index) => { |
|
|
|
if(item.date == this.live_date) { |
|
|
|
this.live_index = index; |
|
|
|
}else if(item.date == this.leave_date) { |
|
|
|
this.leave_index = index; |
|
|
|
} |
|
|
|
}) |
|
|
|
let total_date = differrentList.slice(this.live_index,this.leave_index); |
|
|
|
this.hotel_specid = []; |
|
|
|
total_date.reduce((list, item)=>{ |
|
|
|
this.total_hotel_price += parseInt(item.price); |
|
|
|
this.total_hotel_orginalprice += parseInt(item.original_price); |
|
|
|
this.hotel_specid.push(item.id); |
|
|
|
console.log(this.hotel_specid); |
|
|
|
}, []); |
|
|
|
}, |
|
|
|
changePop(type) { |
|
|
|
if(type == 2) { |
|
|
|
|