Commit 70928f4f authored by youjie's avatar youjie

no message

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