求房源页面+接口修改
This commit is contained in:
@@ -265,5 +265,4 @@ img {
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
</style>
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)//设置地区选项
|
||||
|
||||
Reference in New Issue
Block a user