Commit a85d1d12 authored by youjie's avatar youjie

优化

parent 1bc97980
...@@ -443,7 +443,7 @@ ...@@ -443,7 +443,7 @@
:key="i" :key="i"
> >
<q-img <q-img
:src="x.images[0]" :src="x.images[0]?x.images[0]:'../../assets/img/errImg.png'"
:ratio="1" :ratio="1"
spinner-color="grey" spinner-color="grey"
spinner-size="20px" spinner-size="20px"
......
...@@ -344,12 +344,12 @@ export default { ...@@ -344,12 +344,12 @@ export default {
clearHandler(type){ clearHandler(type){
this.showKeyWordsList = false this.showKeyWordsList = false
this.showSplitPannel = false this.showSplitPannel = false
this.HotalMsg.CityCode = '' // this.HotalMsg.CityCode = ''
this.HotalMsg.CityCode2 = '' this.HotalMsg.CityCode2 = ''
this.HotalMsg.CityName = '' // this.HotalMsg.CityName = ''
this.HotalMsg.KeyWords = '' if(!type)this.HotalMsg.KeyWords = ''
this.HotalMsg.KeyWords2 = '' else 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")
this.$emit('clear',this.HotalMsg) this.$emit('clear',this.HotalMsg)
...@@ -401,8 +401,12 @@ export default { ...@@ -401,8 +401,12 @@ export default {
this.lastKeyword = type?this.HotalMsg.KeyWords2:this.HotalMsg.KeyWords this.lastKeyword = type?this.HotalMsg.KeyWords2:this.HotalMsg.KeyWords
this.loadingIndex = 0 this.loadingIndex = 0
if(!type) { if(!type) {
this.loading = true if(!this.Type){
this.getHotalList() this.loading = true
this.getHotalList()
}else{
this.$emit('change', this.HotalMsg)
}
} }
else { else {
this.loading2 = true this.loading2 = true
...@@ -411,7 +415,6 @@ export default { ...@@ -411,7 +415,6 @@ export default {
},200) },200)
}, },
changeCity(y){ changeCity(y){
console.log(y)
this.HotalMsg.CityName = y.CityName this.HotalMsg.CityName = y.CityName
this.HotalMsg.CityCode = y.CityCode this.HotalMsg.CityCode = y.CityCode
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")
......
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