Commit cdc5ffad authored by youjie's avatar youjie

no message

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