Commit 738b7c2d authored by youjie's avatar youjie

修复bug

parent 6b2c6efa
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
<u-dropdown ref="uDropdown" @open="open" @close="close" active-color="#B99846" <u-dropdown ref="uDropdown" @open="open" @close="close" active-color="#B99846"
inactive-color="#080A09" title-size="28"> inactive-color="#080A09" title-size="28">
<u-dropdown-item :title="optionsTitle[0]" :options="options1"> <u-dropdown-item :title="optionsTitle[0]" :options="options1">
<scroll-view :scroll-y="true" class="hotelScroll" style="height: 200px;"> <scroll-view :scroll-y="true" class="hotelScroll" style="height: 400rpx;">
<view class="slot-content hotelComprehensiveBox column" <view class="slot-content hotelComprehensiveBox column"
style="background-color: #FCFCFC"> style="background-color: #FCFCFC">
<view class="hotelComprehensiv row items-center" <view class="hotelComprehensiv row items-center"
...@@ -166,7 +166,7 @@ ...@@ -166,7 +166,7 @@
</scroll-view> </scroll-view>
</u-dropdown-item> </u-dropdown-item>
<u-dropdown-item :title="optionsTitle[2]" :options="options1"> <u-dropdown-item :title="optionsTitle[2]" :options="options1">
<scroll-view :scroll-y="true" class="hotelScroll" style="height: 200px;"> <scroll-view :scroll-y="true" class="hotelScroll" style="height: 400rpx;">
<view class="slot-content hotelComprehensiveBox column" <view class="slot-content hotelComprehensiveBox column"
style="background-color: #FCFCFC"> style="background-color: #FCFCFC">
<view class="hotelComprehensiv row items-center" <view class="hotelComprehensiv row items-center"
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
</scroll-view> </scroll-view>
</u-dropdown-item> </u-dropdown-item>
<u-dropdown-item :title="optionsTitle[1]" :options="options1"> <u-dropdown-item :title="optionsTitle[1]" :options="options1">
<scroll-view :scroll-y="true" class="hotelScroll" style="height: 200px;"> <scroll-view :scroll-y="true" class="hotelScroll" style="height: 400rpx;">
<view class="slot-content hotelComprehensiveBox column" <view class="slot-content hotelComprehensiveBox column"
style="background-color: #FCFCFC"> style="background-color: #FCFCFC">
<view class="hotelComprehensiv row items-center" <view class="hotelComprehensiv row items-center"
...@@ -422,7 +422,6 @@ ...@@ -422,7 +422,6 @@
} }
arrList(_this.DidaHotelRoomDetails.HotelList) arrList(_this.DidaHotelRoomDetails.HotelList)
tempData = JSON.parse(JSON.stringify(_this.DidaHotelRoomDetails.HotelList)); tempData = JSON.parse(JSON.stringify(_this.DidaHotelRoomDetails.HotelList));
console.log(_this.qMsg.RoomTypeName,'-------',_this.qMsg.BedType,'--',_this.qMsg.MTypeName)
if (_this.qMsg.RoomTypeName && _this.qMsg.RoomTypeName != '') { if (_this.qMsg.RoomTypeName && _this.qMsg.RoomTypeName != '') {
tempData = tempData.filter(qitem => qitem.RoomName_CN == _this.qMsg.RoomTypeName); tempData = tempData.filter(qitem => qitem.RoomName_CN == _this.qMsg.RoomTypeName);
} }
...@@ -654,7 +653,6 @@ ...@@ -654,7 +653,6 @@
}, res => { }, res => {
if (res.resultCode == 1) { if (res.resultCode == 1) {
var tempData = res.data; var tempData = res.data;
console.log("dmc_post_GetDiDaPriceSearchList", tempData);
this.DidaHotelRoomDetails = tempData; this.DidaHotelRoomDetails = tempData;
this.qRoomTypeList = tempData.qRoomTypeList; this.qRoomTypeList = tempData.qRoomTypeList;
if (this.qRoomTypeList && this.qRoomTypeList.length > 0) { if (this.qRoomTypeList && this.qRoomTypeList.length > 0) {
...@@ -664,7 +662,6 @@ ...@@ -664,7 +662,6 @@
}) })
} }
this.qBedTypeList = tempData.qBedTypeList; this.qBedTypeList = tempData.qBedTypeList;
console.log(this.qRoomTypeList,'-----')
if (this.qBedTypeList && this.qBedTypeList.length > 0) { if (this.qBedTypeList && this.qBedTypeList.length > 0) {
this.qBedTypeList.unshift({ this.qBedTypeList.unshift({
BedType: 0, BedType: 0,
...@@ -680,6 +677,14 @@ ...@@ -680,6 +677,14 @@
}) })
} }
uni.hideLoading() uni.hideLoading()
setTimeout(() => {
this.hotelFacilities.forEach((x) => {
const query = uni.createSelectorQuery().select(`#${x.val}`);
query.boundingClientRect((rect) => {
x.top = rect.top;
}).exec();
})
}, 1000);
} }
},err=> { },err=> {
this.loading = false this.loading = false
...@@ -783,6 +788,10 @@ ...@@ -783,6 +788,10 @@
startTime: `${obj.year}-${obj.startDay}`, startTime: `${obj.year}-${obj.startDay}`,
endTime: `${obj.year}-${obj.endDay}` endTime: `${obj.year}-${obj.endDay}`
} }
uni.setStorage({
key: "Time",
data: JSON.stringify(this.dayObj),
});
this.showTimePopup = false; this.showTimePopup = false;
this.getHotelPrices() this.getHotelPrices()
}, },
...@@ -943,14 +952,6 @@ ...@@ -943,14 +952,6 @@
} }
this.hotelData.hotelid = this.dataList.hotelid; this.hotelData.hotelid = this.dataList.hotelid;
this.hotelData.name = this.dataList.name; this.hotelData.name = this.dataList.name;
setTimeout(() => {
this.hotelFacilities.forEach((x) => {
const query = uni.createSelectorQuery().select(`#${x.val}`);
query.boundingClientRect((rect) => {
x.top = rect.top;
}).exec();
})
}, 1000);
} }
}) })
}, },
......
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