修改筛选名称 性别-性别要求

This commit is contained in:
luJianJun 2023-08-11 15:13:06 +08:00
parent a1cdc4a41b
commit dba7973ea5
2 changed files with 8 additions and 4 deletions

View File

@ -283,7 +283,7 @@ if(tabType.value=='apartment'){
seachAllType['tabType']='apartment'
}
//
//-
let checkPageType = () => {
// houseingPageType 0 1 6
let type = houseingPageType === '0' ? 'person' : houseingPageType === '1' ? 'intermediary' : houseingPageType === '6' ? 'need' : 'apartment'
@ -401,6 +401,8 @@ let searchInit = (data) => {
seachInfoData.data=JSON.parse(JSON.stringify(res.data))
let seachObj=checkSearckInit(setSeachId())
seachAllType.searchid = seachObj.searchid
seachAllType['intermediary']=tabType.value==='person'?1:tabType.value==='intermediary'?1:tabType.value==='need'?6:''
seachAllType['tabType']=tabType.value
getDataList(seachAllType,seachObj.count==0?false:true)
} else {
ElMessage({
@ -413,19 +415,21 @@ let searchInit = (data) => {
//
let checkSearckInit=(data)=>{
console.log(tabType.value,data)
if(data.count) return data
let obj={}
if(seachInfoData.data.personal.count>0){
obj=seachInfoData.data.personal
tabType.value = 'person'
seachAllType['intermediary']=0
}else if(seachInfoData.data.intermediary.count>0){
obj=seachInfoData.data.intermediary
tabType.value = 'intermediary'
seachAllType['intermediary']=1
}else if(seachInfoData.data.studentapartment.count>0){
obj=seachInfoData.data.studentapartment
tabType.value = 'apartment'
}else setSeachId()
seachAllType['intermediary']=''
}else obj=setSeachId()
return obj
}

View File

@ -180,7 +180,7 @@
<div class="bor-b-das"></div>
<div class="dis-f pd-t-20">
<div class="tab-title">{{ routePath === '/needHousing' || routeQuery.data && routeQuery.data.houseingPageType
=== '6' ? '求租者性别' : '性别' }}</div>
=== '6' ? '求租者性别' : '性别要求' }}</div>
<div class="select-btn-box">
<div class="dis-f">
<div class="btn jus-x al-item dis-f" v-for="(item, i) in genderData" :key="i"