求房源页面+接口修改

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

@@ -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)//设置地区选项