求房源页面+接口修改

This commit is contained in:
2023-07-28 18:50:22 +08:00
parent 902fd71ce2
commit 088e684466
9 changed files with 4101 additions and 4157 deletions

View File

@@ -265,5 +265,4 @@ img {
::-webkit-scrollbar {
display: none;
}
</style>
</style>

View File

@@ -185,7 +185,8 @@ let seachList = (item) => {
}
//设置搜索数据
let setSeachConditions = (type, data,second) => {
let setSeachConditions = (type, data,second=null) => {
console.log(type,data,second)
if (type === 'rent') {
seachAllType['rent_min'] = data.min
seachAllType['rent_max'] = data.max
@@ -203,7 +204,11 @@ let setSeachConditions = (type, data,second) => {
if (type === 'location') {
seachAllType.school = ''
}
if(second){
seachAllType[second.type]=second.id
}
// console.log('seachAllType', seachAllType)
// return
getDataList(seachAllType)
}

View File

@@ -656,6 +656,7 @@ let routerQuerySet = () => {
selectPosition.value = 'school'
schoolSelectObj.id = deconstructionSeachData.selectData.id
schoolSelectObj.title = deconstructionSeachData.selectData.name
setSeachCondition('school', schoolSelectObj.id )
} else if (deconstructionSeachData.type === 'types') {
@@ -663,6 +664,7 @@ let routerQuerySet = () => {
hireTypeObj.id = deconstructionSeachData.selectData.id
hireTypeObj.title = deconstructionSeachData.selectData.title
hireTypeObj.hireId = type == 1 ? '合租' : type == 2 ? '整租' : '不限'
setSeachCondition('types', hireTypeObj.id )
} else if (deconstructionSeachData.type === 'location') {
@@ -677,6 +679,9 @@ let routerQuerySet = () => {
hireTypeObj.title = deconstructionSeachData.cotenancyData.title
hireTypeObj.hireId = type == 1 ? '合租' : type == 2 ? '整租' : '不限'
}
console.log(deconstructionSeachData)
setSeachCondition('location', deconstructionSeachData.selectData[0]?deconstructionSeachData.selectData:[deconstructionSeachData.areaItem.id],{type:'types',id:hireTypeObj.id} )
if(deconstructionSeachData.selectData[0])
nextTick(() => {
setCheckBoxData(deconstructionSeachData.selectData)//设置地区选项