Commit 55ac818c authored by youjie's avatar youjie

修复bug

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