筛选组件选择一级区域优化

This commit is contained in:
2023-08-04 17:43:04 +08:00
parent d6dfd87fc2
commit e4ebbe1d82
4 changed files with 31 additions and 14 deletions

View File

@@ -90,7 +90,7 @@
<!-- -->
<div
v-if="routePath === '/personHousing' || routePath === '/intermediaryHousing' || routePath === '/needHousing'">
<selectTabBox :setSeachCondition="setSeachConditions"></selectTabBox>
<selectTabBox :setSeachCondition="setSeachConditions" :setLocation="setLocation"></selectTabBox>
</div>
</div>
</div>
@@ -186,6 +186,12 @@ let seachList = (item) => {
})
}
//设置点击一级区域
let setLocation=(type,data)=>{
seachAllType[type] = data
seachAllType['school']=''
}
//设置搜索数据
let setSeachConditions = (type, data, second = null) => {
if (type === 'rent') {