修改筛选名称 性别-性别要求
This commit is contained in:
parent
a1cdc4a41b
commit
dba7973ea5
@ -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
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user