Commit 6b2c6efa authored by youjie's avatar youjie

修复bug

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