提交
This commit is contained in:
@@ -161,9 +161,7 @@ historyArr.data = JSON.parse(localStorage.getItem('historyArr')) || []
|
||||
|
||||
//搜索数据
|
||||
let seachList = (item) => {
|
||||
// console.log(123)
|
||||
let string = seachAllType.keyword
|
||||
|
||||
if (historyArr.data.indexOf(seachAllType.keyword) === -1) {
|
||||
historyArr.data.push(seachAllType.keyword)
|
||||
}
|
||||
@@ -186,6 +184,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
|
||||
@@ -196,7 +195,7 @@ let setSeachConditions = (type, data) => {
|
||||
if (type === 'location') {
|
||||
seachAllType.school = ''
|
||||
}
|
||||
console.log('seachAllType', seachAllType)
|
||||
// console.log('seachAllType', seachAllType)
|
||||
getDataList(seachAllType)
|
||||
}
|
||||
|
||||
@@ -212,7 +211,7 @@ let setHotSeach = (item) => {
|
||||
seachAllType.keyword = item
|
||||
if (historyArr.data.indexOf(item) === -1) historyArr.data.push(item)
|
||||
localStorage.setItem('historyArr', JSON.stringify(historyArr.data));
|
||||
getDataList(seachAllType)
|
||||
seachList()
|
||||
}
|
||||
|
||||
//点击选项
|
||||
|
||||
Reference in New Issue
Block a user