Commit e14b8265 authored by youjie's avatar youjie

优化搜索

parent 79e59685
......@@ -270,7 +270,7 @@ export default {
// });
}else if(y.Type==2){
this.HotalMsg.KeyWords2 = ''
this.HotalMsg.KeyWords = ''
// this.HotalMsg.KeyWords = ''
this.HotalMsg.hotelId = y.Id
this.$emit('change', this.HotalMsg,{hotelId:y.Id,Price:y.Price})
......@@ -409,13 +409,13 @@ export default {
},
searchChangeHandler(type,cit){
setTimeout(()=>{
if(!type&&(!this.HotalMsg.KeyWords||this.HotalMsg.KeyWords=='')&&(!this.KeyWords3||this.KeyWords3=='')) {
if(!cit&&!type&&(!this.HotalMsg.KeyWords||this.HotalMsg.KeyWords=='')&&(!this.KeyWords3||this.KeyWords3=='')) {
this.loading = false
this.showKeyWordsList = false
this.showSplitPannel = false
if(this.Type>0) this.$emit('change', this.HotalMsg)
return
}else if(type&&(!this.HotalMsg.KeyWords2||this.HotalMsg.KeyWords2=='')&&(!this.HotalMsg.CityCode||this.HotalMsg.CityCode=='')){
}else if(!cit&&type&&(!this.HotalMsg.KeyWords2||this.HotalMsg.KeyWords2=='')&&(!this.HotalMsg.CityCode||this.HotalMsg.CityCode=='')){
this.loading = false
this.showKeyWordsList = false
if(this.Type>0) this.$emit('change', this.HotalMsg)
......@@ -423,6 +423,7 @@ export default {
}
this.lastKeyword = type?this.HotalMsg.KeyWords2:this.HotalMsg.KeyWords
this.loadingIndex = 0
if(!type) {
if(!this.Type){
this.loading = true
......
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