Commit 6b2c6efa authored by youjie's avatar youjie

修复bug

parent 55ac818c
......@@ -154,10 +154,10 @@
style="background-color: #FCFCFC">
<view class="hotelComprehensiv row items-center"
v-for="(item,index) in qRoomTypeList" :key="index"
:class="[qMsg.RoomTypeName==item.RoomName_CN||(qMsg.RoomTypeName==''&&index==0)?'active':'']"
:class="[qMsg.RoomType==item.RoomTypeID?'active':'']"
@click="changeType(item,1)">
<text>{{ item.RoomName_CN }}</text>
<view v-if="qMsg.RoomTypeName==item.RoomName_CN||(qMsg.RoomTypeName==''&&index==0)">
<view v-if="qMsg.RoomType==item.RoomTypeID">
<img
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638760948784111958.png" />
</view>
......@@ -171,10 +171,10 @@
style="background-color: #FCFCFC">
<view class="hotelComprehensiv row items-center"
v-for="(item,index) in qBedTypeList" :key="index"
:class="[qMsg.BedTypeName==item.BedTypeName||(qMsg.BedTypeName==''&&index==0)?'active':'']"
:class="[qMsg.BedType==item.BedType?'active':'']"
@click="changeType(item,2)">
<text>{{ item.BedTypeName?item.BedTypeName:'-' }}</text>
<view v-if="qMsg.BedTypeName==item.BedTypeName||(qMsg.BedTypeName==''&&index==0)">
<view v-if="qMsg.BedType==item.BedType">
<img
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638760948784111958.png" />
</view>
......@@ -188,10 +188,10 @@
style="background-color: #FCFCFC">
<view class="hotelComprehensiv row items-center"
v-for="(item,index) in qMealTypeList" :key="index"
:class="[qMsg.MTypeName==item.MTypeName||(qMsg.MTypeName==''&&index==0)?'active':'']"
:class="[qMsg.MType==item.MealType?'active':'']"
@click="changeType(item)">
<text>{{ item.MTypeName?item.MTypeName:'-' }}</text>
<view v-if="qMsg.MTypeName==item.MTypeName||(qMsg.MTypeName==''&&index==0)">
<view v-if="qMsg.MType==item.MealType">
<img
src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638760948784111958.png" />
</view>
......@@ -386,7 +386,9 @@
HotelMealTypes: [],
qMsg: {
RoomTypeName: "", //房型筛选
RoomType: 0,
MTypeName: "", //早餐筛选
MType: 0,
BedTypeName: "",//床型筛选
BedType: "",
},
......@@ -621,6 +623,7 @@
if (type==1) {
this.optionsTitle[0] = item.RoomName_CN != '房型(全部)' ? item.RoomName_CN : '房型'
this.qMsg.RoomTypeName = item.RoomName_CN != '房型(全部)' ? item.RoomName_CN : '';
this.qMsg.RoomType = item.RoomTypeID
}else if(type==2){
this.optionsTitle[2] = item.BedTypeName != '床型(全部)' ? item.BedTypeName : '床型'
this.qMsg.BedTypeName = item.BedTypeName != '床型(全部)' ? item.BedTypeName : '';
......@@ -628,11 +631,15 @@
} else {
this.optionsTitle[1] = item.MTypeName != '餐型(全部)' ? item.MTypeName : '餐型'
this.qMsg.MTypeName = item.MTypeName != '餐型(全部)' ? item.MTypeName : '';
this.qMsg.MType = item.MealType
}
this.$refs.uDropdown.close();
},
// 获取房间价格
getHotelPrices() {
uni.showLoading({
title: '加载中',
});
this.loading = true
this.apipost('dmc_post_GetDiDaPriceSearchList', {
hotelId: this.roomMsg.hotelid,
......@@ -657,6 +664,7 @@
})
}
this.qBedTypeList = tempData.qBedTypeList;
console.log(this.qRoomTypeList,'-----')
if (this.qBedTypeList && this.qBedTypeList.length > 0) {
this.qBedTypeList.unshift({
BedType: 0,
......@@ -671,8 +679,16 @@
MealType: 0,
})
}
uni.hideLoading()
}
})
},err=> {
this.loading = false
uni.hideLoading()
uni.showToast({
title: err.message,
icon: 'none',
})
} )
},
//获取道旅餐食类型
getdidaMealType() {
......
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