Commit 21d4a5b5 authored by youjie's avatar youjie

优化

parent a8547f44
......@@ -1136,14 +1136,23 @@ export default {
},
'$route': {
handler(newVal, oldVal) {
if (this.$route.params && this.$route.params.orderKey) {
let key = this.$route.params.orderKey;
let pickuporderHotal = localStorage.getItem("pickuporderHotalDida");
pickuporderHotal = pickuporderHotal ? JSON.parse(pickuporderHotal) : [];
if (this.$route.params && this.$route.params.orderKey) {
let key = this.$route.params.orderKey;
if (pickuporderHotal.length > 0) {
this.order = pickuporderHotal.find((x) => x.key == key);
if (this.order) {
this.msg.searchroomGroup = this.order.order.msg.searchroomGroup
this.CountPeople()
}
}
}else{
if (pickuporderHotal.length > 0) {
this.order = pickuporderHotal[pickuporderHotal.length-1]
if (this.order) {
this.msg.searchroomGroup = this.order.order.msg.searchroomGroup
this.CountPeople()
}
}
}
......@@ -1366,6 +1375,9 @@ export default {
else x['ChildAgeDetails'] = 0
}
}
setTimeout(()=>{
this.getDiDaPriceSearchList()
},1000)
this.CountPeople()
},
CountPeople(){
......@@ -1376,9 +1388,6 @@ export default {
this.numberOfAdults += x.numberOfAdults
this.numberOfChildren += x.numberOfChildren
})
setTimeout(()=>{
this.getDiDaPriceSearchList()
},1000)
},
optionsFn(cd) {
return cd >= date.formatDate(date.addToDate(new Date(), { days: 8 }), 'YYYY/MM/DD')
......
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