Commit aea4f8d4 authored by youjie's avatar youjie

优化默认地址

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