首页瀑布流

This commit is contained in:
luJianJun 2023-07-27 15:46:59 +08:00
parent a20164b8fe
commit a5e6ebc76f
5 changed files with 17 additions and 15 deletions

View File

@ -34,7 +34,7 @@
</div>
<div class="breadcrumb-box">
<el-breadcrumb :separator-icon="ArrowRight">
<el-breadcrumb-item v-for="(item, i) in storeData" :key="i" :to="{ path: item.path }">
<el-breadcrumb-item v-for="(item, i) in storeData" :key="i" :to="{ path: item.path,query:item.query }">
<span class="breadcrumb-text">
{{ item.title }}
</span>

View File

@ -47,7 +47,8 @@
年轻有活力且超有玩趣的公寓
</div> -->
<div class="suite-box" v-if="itemData.type === 'apartment'">
<div class="dis-f al-item jus-bet">
<div class="dis-f al-item jus-bet" v-if="itemData.specifications &&
itemData.specifications[0] && itemData.specifications[0].value">
<div class="suite-type">
{{ itemData.specifications && itemData.specifications[0] && itemData.specifications[0].title }}
</div>
@ -58,8 +59,10 @@
<span class="date">/</span>
</div>
</div>
<div class="line"></div>
<div class="dis-f al-item jus-bet">
<div class="line" v-if="itemData.specifications &&
itemData.specifications[1] && itemData.specifications[1].value"></div>
<div class="dis-f al-item jus-bet" v-if="itemData.specifications &&
itemData.specifications[1] && itemData.specifications[1].value">
<div class="suite-type">
{{ itemData.specifications && itemData.specifications[1] && itemData.specifications[1].title }}
</div>

View File

@ -239,7 +239,7 @@ isNeedHousing.value = route.currentRoute.value.query.isNeedHousing === 'true'
//
let houseingPageType = route.currentRoute.value.query.houseingPageType
console.log('houseingPageType',houseingPageType)
console.log('houseingPageType',route.currentRoute.value.query)
let type = houseingPageType === '0' ? 'person' : houseingPageType === '1' ? 'intermediary' : houseingPageType === '6' ? 'need' : 'apartment'
tabType.value = type

View File

@ -1140,7 +1140,13 @@ let setNavigation = () => {
// type=location&data=["2.2"]&areaItem={"id":2,"name":""}
// console.log(`${store.state.routeList['secondaryIndex'].path}/location/${JSON.stringify([housingInfo['data']['info'].location.substring(0, 1)])}`)
store.state.routeList['thirdIndex'] = {
path: `${store.state.routeList['secondaryIndex'].path}/location/${JSON.stringify([housingInfo['data']['info'].location.substring(0, 1)])}/${JSON.stringify({ id: housingInfo['data']['info'].location.substring(0, 1), name: location[housingInfo['data']['info'].location.substring(0, 1)] })}/${JSON.stringify({ type: 'types', data: { name: type[housingInfo['data']['info'].type.substring(0, 1)], id: housingInfo['data']['info'].type } })}`,
path: `${store.state.routeList['secondaryIndex'].path}`,
query:{
type:'location',
name: location[housingInfo['data']['info'].location.substring(0, 1)],
id: housingInfo['data']['info'].location.substring(0, 1),
types:`${type[housingInfo['data']['info'].type.substring(0, 1)]},${housingInfo['data']['info'].type}`
},
title: `${location[housingInfo['data']['info'].location.substring(0, 1)]}${type[housingInfo['data']['info'].type.substring(0, 1)]}房源`
}
if (housingInfo['data']['info'].location.length > 0)

View File

@ -143,15 +143,8 @@ let downLoadMore = () => {
//listImg
onMounted(() => {
let type=null,data=null
console.log(router.currentRoute.value.params)
if (router.currentRoute.value.params.type) {
type=router.currentRoute.value.params.type
data=router.currentRoute.value.params.data
} else {
type=router.currentRoute.value.query.type
data=router.currentRoute.value.query.data
}
console.log(router.currentRoute.value.query)
let {type,data}=router.currentRoute.value.query
let typeData = null
if (data) typeData = JSON.parse(data)
if (data && Object.keys(data).length > 0) {