Commit 573c511e authored by youjie's avatar youjie

no message

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