Commit cdc5ffad authored by youjie's avatar youjie

no message

parent 100d2252
......@@ -1015,9 +1015,7 @@ export default {
this.detaMsg.hotelId = decodeURIComponent(this.$route.params.id)
this.msg.hotelId = decodeURIComponent(this.$route.params.id)
}
if(this.$route.params.b2CPrice){
this.MinPrice = this.$route.params.b2CPrice
}
},
mounted() {
......@@ -1550,6 +1548,8 @@ export default {
} else {
this.SimilarList = res.data.data.roomRateDetails;
}
console.log(this.SimilarList[0].roomOptions)
let arrList = function(arr){
arr.forEach(item=>{
item.images=[]
......@@ -1577,8 +1577,16 @@ export default {
arr.push(x.roomOptions);
x.roomOptions = arr;
}
});
this.JapanIncrease = res.data.data.JapanIncrease;
if(this.SimilarList.length>0&&this.SimilarList[0].roomOptions.length>0){
this.MinPrice = this.getPrice2(this.SimilarList[0].roomOptions[0].chargeableRateInfoPerPersonForANightBySetCurrency)
}else{
if(this.$route.params.b2CPrice){
this.MinPrice = this.$route.params.b2CPrice
}
}
} else {
this.SimilarList = []
this.$message.error(res.data.message=='No results match your search.'?'當前入住日期未報價,請選擇其他日期看看吧':res.data.message)
......@@ -1589,7 +1597,10 @@ export default {
null
);
},
getPrice2(price){
if(this.JapanIncrease)
return Math.ceil(price / this.JapanIncrease)
},
menu() {
this.scroll =
......
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