筛选框其他选项优化
This commit is contained in:
parent
e4c51b8153
commit
243b7bf298
@ -216,17 +216,21 @@ let selectPage = (type) => {
|
||||
seachAllType['searchid'] = setPageKey()
|
||||
if (type === 'person') {
|
||||
seachAllType['intermediary'] = 0
|
||||
seachAllType['isintermediary'] = 0
|
||||
houseingPageType = '0'
|
||||
sessionStorage.setItem('houseingPageType', 0)
|
||||
selectTabBoxInfo.value.routerQuerySet()
|
||||
} else if (type === 'intermediary') {
|
||||
seachAllType['intermediary'] = 1
|
||||
seachAllType['isverified'] = 0
|
||||
houseingPageType = '1'
|
||||
sessionStorage.setItem('houseingPageType', 1)
|
||||
// route.currentRoute.value.query.houseingPageType='1'
|
||||
selectTabBoxInfo.value.routerQuerySet()
|
||||
} else {
|
||||
seachAllType['intermediary'] = ''
|
||||
seachAllType['isverified'] = 0
|
||||
seachAllType['isintermediary'] = 0
|
||||
}
|
||||
getDataList(seachAllType)
|
||||
}
|
||||
@ -295,7 +299,7 @@ if (isNeedHousing.value) {
|
||||
//设置搜索数据
|
||||
let setSeachConditions = (type, data) => {
|
||||
// console.log(1,seachAllType)
|
||||
// console.log(type.value)
|
||||
console.log(data)
|
||||
if (seachAllType['tabType'] !== 'apartment') {
|
||||
if (type === 'rent') {
|
||||
seachAllType['rent_min'] = data.min
|
||||
@ -303,6 +307,7 @@ let setSeachConditions = (type, data) => {
|
||||
} else if (type !== '') {
|
||||
seachAllType[type] = data
|
||||
} else if (type === '') {
|
||||
data.indexOf('isintermediary') !== -1 ? seachAllType['isintermediary'] = 1 : seachAllType['isintermediary'] = 0
|
||||
data.indexOf('isverified') !== -1 ? seachAllType['isverified'] = 1 : seachAllType['isverified'] = 0
|
||||
data.indexOf('iselevator') !== -1 ? seachAllType['iselevator'] = 1 : seachAllType['iselevator'] = 0
|
||||
data.indexOf('issunshinearea') !== -1 ? seachAllType['issunshinearea'] = 1 : seachAllType['issunshinearea'] = 0
|
||||
@ -324,6 +329,15 @@ let setSeachConditions = (type, data) => {
|
||||
if (!seachVal.value) {
|
||||
seachAllType.searchid = ''
|
||||
}
|
||||
//设置其他选项
|
||||
if (seachAllType['tabType'] === 'person') {
|
||||
seachAllType['isintermediary'] = 0
|
||||
} else if (seachAllType['tabType'] === 'intermediary') {
|
||||
seachAllType['isverified'] = 0
|
||||
} else {
|
||||
seachAllType['isverified'] = 0
|
||||
seachAllType['isintermediary'] = 0
|
||||
}
|
||||
// console.log('seachAllType', seachAllType)
|
||||
// return
|
||||
getDataList(seachAllType)
|
||||
|
Loading…
x
Reference in New Issue
Block a user