Commit 55ac818c authored by youjie's avatar youjie

修复bug

parent 8c69c621
......@@ -530,19 +530,7 @@
if (options.searchObj) {
this.searchObj = JSON.parse(options.searchObj);
}
uni.getStorage({
key: "Time",
success: (res) => {
let obj = JSON.parse(res.data);
this.roomMsg.StartDate = obj.start;
this.roomMsg.EndDate = obj.end;
this.startDay = obj.startDay;
this.endDay = obj.endDay;
this.day = obj.day;
this.dayObj = obj;
this.getHotelPrices()
},
});
this.getdidaMealType()
},
onShow() {
......@@ -568,6 +556,21 @@
}
this.getSale()
},
mounted() {
uni.getStorage({
key: "Time",
success: (res) => {
let obj = JSON.parse(res.data);
this.roomMsg.StartDate = obj.start;
this.roomMsg.EndDate = obj.end;
this.startDay = obj.startDay;
this.endDay = obj.endDay;
this.day = obj.day;
this.dayObj = obj;
this.getHotelPrices()
},
});
},
methods: {
getSale(){
if(!this.b2bUser.customerId) return
......@@ -630,19 +633,13 @@
},
// 获取房间价格
getHotelPrices() {
let that = this
this.loading = true
this.apipost('dmc_post_GetDiDaPriceSearchList', {
hotelId: this.roomMsg.hotelid,
sort: 0,
displayFrom: 1,
roomOptionCd: "",
searchroomGroup: [{
roomNum: 1,
numberOfAdults: 2,
numberOfChildren: 0,
ChildAgeDetails: ""
}],
searchroomGroup: this.searchObj.searchroomGroup,
auditNum: this.searchObj.adultsNumber,
childNum: this.searchObj.childrenNumberZC,
CheckInDate: this.dayObj.startTime,
......
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