顶部跳转判断
This commit is contained in:
@@ -86,7 +86,7 @@ let closeBtn=()=>{
|
||||
|
||||
//设置参数
|
||||
let setCheckData=(data)=>{
|
||||
console.log(checkList.list)
|
||||
console.log(123,checkList.list)
|
||||
checkList.list=data
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="btm-seach-btn-box dis-f al-item jus-x"
|
||||
v-if="routePath !== '/seachPage' && routePath !== '/detail' && routePath !== '/apartmentDetail' && routePath !== '/edit'">
|
||||
v-if="pageTopBarShow">
|
||||
<div class="body-maxWidth dis-f" style="height:48px;">
|
||||
<div class="tab-btn dis-f al-item jus-x" :class="{ 'tab-btn-click': item.path === tabBtnType }"
|
||||
v-for="(item, i) in seachTab.data" :key="i" @click="changeTabBtnType(item)">
|
||||
@@ -119,6 +119,8 @@ let topTabSelect = (type, item) => {
|
||||
//页面跳转
|
||||
const router = useRouter()
|
||||
let tabBtnType = ref('/')
|
||||
|
||||
let pageTopBarShow= router.currentRoute.value.meta.topBarShow
|
||||
let changeTabBtnType = (item) => {
|
||||
tabBtnType.value = item.path
|
||||
router.push({
|
||||
|
||||
@@ -486,7 +486,6 @@ let setHireTypeArr = (type, id) => {
|
||||
let hireTypeObj = reactive({ id: '', title: '', hireId: '不限' })//出租方式所选
|
||||
|
||||
let setHireId = (item) => {
|
||||
console.log(item)
|
||||
if (hireTypeObj.hireId != item.title) {
|
||||
hireTypeObj.id = ''
|
||||
hireTypeObj.title = ''
|
||||
@@ -579,14 +578,11 @@ let cleanSelect = () => {
|
||||
|
||||
//查找数据
|
||||
let getAddressListId=(id,type)=>{
|
||||
console.log(store.state.seachTypeData[0].where)
|
||||
let data=null
|
||||
let checkList= type==='location'?list:type==='types'?hireTypeArr:type==='school'?store.state.seachTypeData[0].where:''
|
||||
let dataId=type==='types'?id.substring(0,1):id
|
||||
checkList.map(res=>{
|
||||
console.log(res,id)
|
||||
if(res.id==dataId){
|
||||
console.log(res)
|
||||
if(type==='types'){
|
||||
data=getHireType(res.hireType,id)
|
||||
}else{
|
||||
@@ -594,7 +590,6 @@ let getAddressListId=(id,type)=>{
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(data)
|
||||
return data
|
||||
}
|
||||
|
||||
@@ -635,7 +630,6 @@ let deconstructionSeachData=null
|
||||
//根据路由设置参数
|
||||
let setRouterQuerySet = ref(true)
|
||||
let routerQuerySet = () => {
|
||||
console.log(123, routeQuery)
|
||||
deconstructionSeachData=deconstructionData(routeQuery.data)
|
||||
console.log(deconstructionSeachData)
|
||||
if (!setRouterQuerySet.value) return
|
||||
@@ -678,7 +672,9 @@ let routerQuerySet = () => {
|
||||
hireTypeObj.title = selectData.data.length == 0 ? '' : data.name
|
||||
hireTypeObj.hireId = type == 1 ? '合租' : type == 2 ? '整租' : '不限'
|
||||
}
|
||||
setCheckBoxData(deconstructionSeachData.selectData)//设置地区选项
|
||||
nextTick(()=>{
|
||||
setCheckBoxData(deconstructionSeachData.selectData)//设置地区选项
|
||||
})
|
||||
}
|
||||
}
|
||||
setRouterQuerySet.value = false
|
||||
|
||||
Reference in New Issue
Block a user