Commit aea4f8d4 authored by youjie's avatar youjie

优化默认地址

parent f389c911
......@@ -21,8 +21,9 @@
<destination class="q-pa-sm"
:msg="{
CityCode:msg.CityCode,
CityName:msg.CityName,
KeyWords:msg.KeyWords,
KeyWords2:msg.CityName,
KeyWords2:msg.KeyWords2,
StartDate:msg.CheckInDate,
EndDate:msg.CheckOutDate,
searchroomGroup:msg.searchroomGroup}"
......@@ -207,8 +208,9 @@
<destination class="q-pa-sm"
:msg="{
CityCode:msg.CityCode,
CityName:msg.CityName,
KeyWords:msg.KeyWords,
KeyWords2:msg.CityName,
KeyWords2:msg.KeyWords2,
StartDate:msg.CheckInDate,
EndDate:msg.CheckOutDate,
searchroomGroup:msg.searchroomGroup}"
......
......@@ -1490,8 +1490,8 @@ export default {
QOrderBy: "0", //排序类型
QStarRating: [], //星级
GName: '', //热门
CityCode: '', //目的地代码
CityName: '', //目的地
CityCode: '930', //目的地代码
CityName: '成都', //目的地
CityCode2: '', //目的地代码
regionCode: '', //区域
CityName_CN: '',
......@@ -1511,6 +1511,10 @@ export default {
}
if(newVal.query&&newVal.query.pageIndex){
this.qMsg = newVal.query
if(newVal.query.CityCode == ''||!newVal.query.CityName){
this.qMsg.CityCode = '930'
this.qMsg.CityName = '成都'
}
}else{
var qsearchKey = this.getUrlKey("qsearchKey", window.location.href);
var qsearchDate = this.getUrlKey("qsearchDate", window.location.href);
......
......@@ -193,8 +193,9 @@
<!-- 目的地 -->
<destination class="q-ml-sm" :msg="{
CityCode:CityCode?CityCode:dataList.CityCode,
CityName:CityName?CityName:dataList.CityName,
KeyWords:dataList.Name_CN,
KeyWords2:dataList.CityName,
KeyWords2:msg.KeyWords2,
StartDate:msg.CheckInDate,
EndDate:msg.CheckOutDate,
searchroomGroup:msg.searchroomGroup}"
......@@ -1121,6 +1122,7 @@ export default {
RoomFacilities: [],//房型服务设施
itemsPerRow: 6,
CityCode: '',
CityName: '',
};
},
watch: {
......@@ -1239,6 +1241,7 @@ export default {
this.MinPrice = item.Price
}else{
this.CityCode = msg.CityCode
this.CityName = msg.CityName
}
this.getData();
this.getDiDaPriceSearchList()
......
......@@ -225,7 +225,6 @@ export default {
...JSON.parse(JSON.stringify(newVal)),
StartDate: newVal.StartDate? newVal.StartDate:date.formatDate(date.addToDate(new Date(), { days: 8 }), "YYYY/MM/DD"),
EndDate: newVal.EndDate? newVal.EndDate:date.formatDate(date.addToDate(new Date(), { days: 9}), "YYYY/MM/DD"),
CityName: newVal.KeyWords2? newVal.KeyWords2: ''
}
},
deep: true
......@@ -366,10 +365,15 @@ export default {
this.HotalMsg.CityCode2 = ''
// this.HotalMsg.CityName = ''
if(!type)this.HotalMsg.KeyWords = ''
else this.HotalMsg.KeyWords2 = ''
else {
this.HotalMsg.CityCode = '930'
this.HotalMsg.CityName = '成都'
this.HotalMsg.KeyWords2 = ''
}
// 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")
console.log(this.HotalMsg,'------')
if(!type&&this.Type>0) this.$emit('change',this.HotalMsg)
return
this.showSplitPannel = 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