首页跳转个人房源设置
This commit is contained in:
@@ -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)
|
||||
// }
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user