Commit 70928f4f authored by youjie's avatar youjie

no message

parent 2c8d689a
...@@ -1180,9 +1180,16 @@ export default { ...@@ -1180,9 +1180,16 @@ export default {
this.DataList = []; this.DataList = [];
this.PageCount = 0; this.PageCount = 0;
this.TotalCount = 0; this.TotalCount = 0;
let msg = JSON.parse(JSON.stringify(this.msg));
if(this.msg.KeyWords2){
// msg.CityName = ''
// msg.CityCode = ''
// msg.CityCode2 = this.msg.CityCode
msg.KeyWords = this.msg.KeyWords2
}
this.apipost( this.apipost(
"dmc_post_B2BAndB2CGetDidaHotelPage", "dmc_post_B2BAndB2CGetDidaHotelPage",
this.msg, msg,
(res) => { (res) => {
this.$q.loading.hide(); this.$q.loading.hide();
......
...@@ -257,9 +257,14 @@ export default { ...@@ -257,9 +257,14 @@ export default {
this.HotalMsg.CityName = y.Name.split(' ')[0] this.HotalMsg.CityName = y.Name.split(' ')[0]
this.HotalMsg.KeyWords = '' this.HotalMsg.KeyWords = ''
this.HotalMsg.KeyWords2 = y.Name.split(' ')[0] this.HotalMsg.KeyWords2 = y.Name.split(' ')[0]
this.CommonJump('/searchdida', { if(!this.Type) {
...this.HotalMsg this.HotalMsg.KeyWords = y.Name.split(' ')[0]
}); this.searchChangeHandler(0)
}
else this.$emit('changeCity', this.HotalMsg)
// this.CommonJump('/searchdida', {
// ...this.HotalMsg
// });
}else if(y.Type==2){ }else if(y.Type==2){
this.HotalMsg.KeyWords2 = '' this.HotalMsg.KeyWords2 = ''
this.HotalMsg.hotelId = y.Id this.HotalMsg.hotelId = y.Id
...@@ -304,7 +309,7 @@ export default { ...@@ -304,7 +309,7 @@ export default {
this.dataList[1].list = [] this.dataList[1].list = []
this.dataList[0].list = res.data.data this.dataList[0].list = res.data.data
if(this.dataList[0].list.length) { if(res.data.data&&this.dataList[0].list.length) {
this.showKeyWordsList = true this.showKeyWordsList = true
this.showSplitPannel = false this.showSplitPannel = false
}else { }else {
...@@ -343,7 +348,10 @@ export default { ...@@ -343,7 +348,10 @@ export default {
}, },
clearHandler(type){ clearHandler(type){
this.showKeyWordsList = false this.showKeyWordsList = false
this.showSplitPannel = false if(this.Type>0) {
this.showSplitPannel = false
}
// this.HotalMsg.CityCode = '' // this.HotalMsg.CityCode = ''
this.HotalMsg.CityCode2 = '' this.HotalMsg.CityCode2 = ''
// this.HotalMsg.CityName = '' // this.HotalMsg.CityName = ''
...@@ -372,7 +380,6 @@ export default { ...@@ -372,7 +380,6 @@ export default {
this.showSplitPannel = false this.showSplitPannel = false
}else if(type&&(!this.HotalMsg.KeyWords2||this.HotalMsg.KeyWords2=='')){ }else if(type&&(!this.HotalMsg.KeyWords2||this.HotalMsg.KeyWords2=='')){
this.loading = false this.loading = false
this.HotalMsg.CityName = ''
this.showKeyWordsList = false this.showKeyWordsList = false
}else{ }else{
// this.inList() // this.inList()
...@@ -394,7 +401,6 @@ export default { ...@@ -394,7 +401,6 @@ export default {
}else if(type&&(!this.HotalMsg.KeyWords2||this.HotalMsg.KeyWords2=='')){ }else if(type&&(!this.HotalMsg.KeyWords2||this.HotalMsg.KeyWords2=='')){
this.loading = false this.loading = false
this.showKeyWordsList = false this.showKeyWordsList = false
this.HotalMsg.CityName = ''
if(this.Type>0) this.$emit('change', this.HotalMsg) if(this.Type>0) this.$emit('change', this.HotalMsg)
return return
} }
......
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