首页跳转个人房源设置

This commit is contained in:
2023-07-20 12:21:39 +08:00
parent 7d2ac77df4
commit daf15376e9
6 changed files with 116 additions and 50 deletions

View File

@@ -356,12 +356,18 @@ let indexWaterfallBoxCheck = (res) => {
}
//跳转个人房源
let personHouseingInfo = (type, data) => {
let personHouseingInfo = (type, data,areaItem) => {
router.push({
path: '/personHousing',
path: `/personHousing`,
query: {
[type]: data
type,
data:JSON.stringify(data),
areaItem
},
// params:{
// type,
// data:JSON.stringify(data)
// }
})
}

View File

@@ -136,10 +136,14 @@ let downLoadMore = () => {
//listImg
onMounted(() => {
console.log(router.params)
console.log(router.currentRoute.value.query)
if(Object.keys(router.currentRoute.value.query).length>0){
seachSelectData.data={...router.currentRoute.value.query}
let {type,data}=router.currentRoute.value.query
let typeData=JSON.parse(data)
if(Object.keys(data).length>0){
if(type!=='location'){
seachSelectData.data={[type]:typeData.id}
}else{
seachSelectData.data={[type]:typeData}
}
}
getDataList(seachSelectData.data)
window.addEventListener('scroll', downLoadMore, true);