Commit 02e79d83 authored by youjie's avatar youjie

检索道旅

parent 2c44dd98
<template> <template>
<!--搜尋輪播淡出 - 中--> <!--搜尋輪播淡出 - 中-->
<div class="banner-style9"> <div class="banner-style9" v-if="!hideSearch">
<div <div
class="search-content column items-center justify-center rounded-borders" class="search-content column items-center justify-center rounded-borders"
style="border-radius: 6px" style="border-radius: 6px"
...@@ -346,6 +346,7 @@ export default { ...@@ -346,6 +346,7 @@ export default {
ful: "", ful: "",
}, },
RB_Group_Id: 0, RB_Group_Id: 0,
hideSearch: false,
}; };
}, },
created() { created() {
...@@ -392,10 +393,12 @@ export default { ...@@ -392,10 +393,12 @@ export default {
handler(to, from) { handler(to, from) {
if(to.path.indexOf('searchdida')!=-1||to.path.indexOf('searchDida')!=-1||to.path.indexOf('detailHotalDida')!=-1){ if(to.path.indexOf('searchdida')!=-1||to.path.indexOf('searchDida')!=-1||to.path.indexOf('detailHotalDida')!=-1){
this.getHotalHotList() this.getHotalHotList()
this.hideSearch = true
}else{ }else{
var jObj = JSON.parse(window.localStorage.getItem('baseifo')); var jObj = JSON.parse(window.localStorage.getItem('baseifo'));
const hotList = this.getHotList(jObj.AreaList) const hotList = this.getHotList(jObj.AreaList)
this.hotList = hotList this.hotList = hotList
this.hideSearch = false
} }
}, },
deep: true, deep: true,
......
...@@ -410,7 +410,8 @@ export default { ...@@ -410,7 +410,8 @@ export default {
// x.CityList.forEach(y => { // x.CityList.forEach(y => {
// if(index) this.CitiesListAll.push(y) // if(index) this.CitiesListAll.push(y)
// }) // })
if(index) this.CitiesList.push(x) // if(index)
this.CitiesList.push(x)
}) })
this.GNameActive = this.CitiesList[0].GName this.GNameActive = this.CitiesList[0].GName
this.CityList = this.CitiesList[0].CityList this.CityList = this.CitiesList[0].CityList
......
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