Commit 573c511e authored by youjie's avatar youjie

no message

parent 37a711a1
......@@ -144,9 +144,9 @@
},
searchClose() {
this.$emit('searchClose')
this.HotelList = []
this.KeyCityList = []
this.parameters.KeyWords = ''
// this.HotelList = []
// this.KeyCityList = []
// this.parameters.KeyWords = ''
},
lower(e) {
// TODO: 滚动到了底部,实现翻页加载
......
......@@ -18,16 +18,16 @@
<view class="days column justify-center">
</view>
<view style="width: 1px; flex: 1;position: relative;">
<u-search placeholder="酒店" v-model="parameters.KeyWords2"
<u-search placeholder="酒店" v-model="parameters.KeyWords"
input-align="left"
:value="parameters.KeyWords2" text-color="#111"
:value="parameters.KeyWords" text-color="#111"
bg-color="rgba(0,0,0,0)"
:show-action="false"
clearabled
:disabled="parameters.KeyWords2==''"
disabled
@clear="clearKeyWords()"
style="font-size: 22rpx;"></u-search>
<view v-if="parameters.KeyWords2==''" class="clickSearch" @click="clickSearchCity()">
<view class="clickSearch" @click="clickSearchCity()">
<view>0</view>
</view>
</view>
......@@ -359,8 +359,15 @@
searchClose() {
this.showSearchCity = false
this.showCityList = false
this.clearKeyWords()
this.research(2)
if(this.parameters.hotelId||(this.parameters.CityCode!=this.PopularCities[0].CityList[0].CityCode)){
if(this.parameters.hotelId)this.parameters.hotelId = ''
else {
this.city = this.parameters.CityName = this.PopularCities[0].CityList[0].CityName
this.parameters.CityCode2 = this.PopularCities[0].CityList[0].CityCode
this.parameters.CityCode = this.PopularCities[0].CityList[0].CityCode
}
this.research(12)
}
},
searchKey(type, key, City) {
if (type == 1) {
......@@ -371,14 +378,14 @@
} else if (type == 2) {
this.parameters.KeyWords = null
this.parameters.CityCode = null
// this.parameters.KeyWords2 = City
this.parameters.KeyWords2 = City
if (this.parameters.hotelId != key) {
this.parameters.hotelId = key
}
} else if (type == 3) {
this.parameters.KeyWords = null
this.parameters.hotelId = null
// this.parameters.KeyWords2 = City
this.parameters.KeyWords2 = City
if (this.parameters.CityCode != key) {
this.city = this.parameters.CityName = City
this.parameters.CityCode2 = key
......@@ -387,10 +394,10 @@
}
this.showSearchCity = false
this.showCityList = false
this.parameters.pageIndex = 1
this.research(11)
if(type==3){
this.getRegion()
}
},
// 关键字搜索弹出层
clickSearchCity(type) {
......
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