增加加载提示语 添加搜索同步url 修改搜索页搜索类型显示

This commit is contained in:
2023-07-31 16:11:05 +08:00
parent 323e153967
commit 0b3643e04d
10 changed files with 80 additions and 68 deletions

View File

@@ -175,19 +175,18 @@ let seachList = (item) => {
historyArr.data.push(seachAllType.keyword)
}
localStorage.setItem('historyArr', JSON.stringify(historyArr.data));
sessionStorage.setItem('houseingPageType',routePath.value === '/needHousing' ? '6' : routePath.value === '/intermediaryHousing' ? '1' : routePath.value === '/personHousing' ? '0' : '0')
route.push({
path: '/seachPage',
query: {
keyword: seachAllType.keyword,
isNeedHousing: routePath.value === '/needHousing',
houseingPageType: routePath.value === '/needHousing' ? 6 : routePath.value === '/intermediaryHousing' ? 1 : routePath.value === '/personHousing' ? 0 : 0
}
})
}
//设置搜索数据
let setSeachConditions = (type, data,second=null) => {
console.log(type,data,second)
if (type === 'rent') {
seachAllType['rent_min'] = data.min
seachAllType['rent_max'] = data.max