Commit 06d9c78f authored by zhengke's avatar zhengke

修改

parent 472b93d5
...@@ -295,9 +295,6 @@ ...@@ -295,9 +295,6 @@
}, },
}); });
this.mainColor = this.$uiConfig.mainColor; this.mainColor = this.$uiConfig.mainColor;
if (this.id > 0) {
this.getHotelDetail(this.id);
}
if (options.dayObj) { if (options.dayObj) {
console.log(options.dayObj,'options.dayObj'); console.log(options.dayObj,'options.dayObj');
var tempDay = JSON.parse(options.dayObj); var tempDay = JSON.parse(options.dayObj);
...@@ -308,6 +305,9 @@ ...@@ -308,6 +305,9 @@
this.day = tempDay.day; this.day = tempDay.day;
this.dayObj = tempDay; this.dayObj = tempDay;
} }
if (this.id > 0) {
this.getHotelDetail(this.id);
}
if(options.searchObj){ if(options.searchObj){
this.searchObj = JSON.parse(options.searchObj); this.searchObj = JSON.parse(options.searchObj);
} }
...@@ -510,7 +510,9 @@ ...@@ -510,7 +510,9 @@
//获取酒店详情 //获取酒店详情
getHotelDetail(id) { getHotelDetail(id) {
let msg = { let msg = {
HotelId: id HotelId: id,
StartDate: this.dayObj.start,
EndDate: this.dayObj.end
} }
this.request2({ this.request2({
url: '/api/Hotel/GetHotelInfo', url: '/api/Hotel/GetHotelInfo',
......
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