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

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

@@ -102,7 +102,7 @@
<div class="seach-select-info" v-show="tabType !== 'apartment'">
<div class="select-box" :class="{ 'seach-select-h': showSelectModule }"
:style="{ 'overflow': showSelectModule ? 'visible' : 'hidden' }">
<selectTabBox :setSeachCondition="setSeachConditions" ref="selectTabBoxInfo"></selectTabBox>
<selectTabBox :setSeachCondition="setSeachConditions" :setLocation="setLocation" ref="selectTabBoxInfo"></selectTabBox>
</div>
<div :class="{ 'show-box-pd': !showSelectModule }">
<div class="box" :class="{ 'show-box': showSelectModule }">
@@ -306,6 +306,12 @@ let setSeachVal = () => {
seachVal.value = seachKey.key.keyword
}
//设置点击一级区域
let setLocation=(type,data)=>{
seachAllType[type] = data
seachAllType['school']=''
}
//设置搜索数据
let setSeachConditions = (type, data) => {
if (seachAllType['tabType'] !== 'apartment') {