Commit 57197daf authored by youjie's avatar youjie

no message

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