Commit 57197daf authored by youjie's avatar youjie

no message

parent 13fcd35d
......@@ -214,6 +214,7 @@ export default {
loading: false,
lastKeyword: '',
loading2: false,
KeyWords3: '',
};
},
watch: {
......@@ -255,10 +256,11 @@ export default {
this.HotalMsg.CityCode = y.Id
this.HotalMsg.CityCode2 = ''//y.Id
this.HotalMsg.CityName = y.Name.split(' ')[0]
this.HotalMsg.KeyWords = ''
if(this.Type>0)this.HotalMsg.KeyWords = ''
this.HotalMsg.KeyWords2 = y.Name.split(' ')[0]
this.KeyWords3 = ''
if(!this.Type) {
this.HotalMsg.KeyWords = y.Name.split(' ')[0]
this.KeyWords3 = y.Name.split(' ')[0]
this.searchChangeHandler(0)
}
else this.$emit('changeCity', this.HotalMsg)
......@@ -321,8 +323,10 @@ export default {
})
},
getHotalList(type){
let msg = JSON.parse(JSON.stringify(this.HotalMsg))
if(this.KeyWords3) msg.KeyWords = this.KeyWords3
this.apipost(
"dmc_post_B2BAndB2CGetDidaHotelPage",this.HotalMsg,
"dmc_post_B2BAndB2CGetDidaHotelPage",msg,
res => {
if (res.data.resultCode == 1) {
res.data.data.pageData.forEach(x => {
......@@ -364,7 +368,7 @@ export default {
// this.HotalMsg.hotelId = ''
this.HotalMsg.StartDate = this.HotalMsg.StartDate?this.HotalMsg.StartDate:date.formatDate(date.addToDate(new Date(), { days: 8 }), "YYYY/MM/DD")
this.HotalMsg.EndDate = this.HotalMsg.EndDate?this.HotalMsg.EndDate:date.formatDate(date.addToDate(new Date(), { days: 9}), "YYYY/MM/DD")
this.$emit('clear',this.HotalMsg)
if(!type) this.$emit('clear',this.HotalMsg)
return
this.showSplitPannel = true
this.showKeyWordsList = false
......@@ -396,7 +400,7 @@ export default {
},
searchChangeHandler(type){
setTimeout(()=>{
if(!type&&(!this.HotalMsg.KeyWords||this.HotalMsg.KeyWords=='')) {
if(!type&&(!this.HotalMsg.KeyWords||this.HotalMsg.KeyWords=='')&&(!this.KeyWords3||this.KeyWords3=='')) {
this.loading = false
this.showKeyWordsList = false
this.showSplitPannel = false
......@@ -436,7 +440,7 @@ export default {
this.showSplitPannel = false
// this.searchChangeHandler(1)
}else{
this.HotalMsg.KeyWords = ''
// this.HotalMsg.KeyWords = ''
this.searchChangeHandler(1)
// this.CommonJump('/searchdida', {
// ...this.HotalMsg
......
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