个人/中介 搜索 求房源 首页更新
This commit is contained in:
@@ -119,7 +119,7 @@ let listId = props.listId
|
||||
let imgRef = null
|
||||
let loadFinish = () => {
|
||||
let height = imgRef.ctx.$refs&&imgRef.ctx.$refs.list&&imgRef.ctx.$refs.list.offsetHeight
|
||||
console.log(data.id, listId, height)
|
||||
// console.log(data.id, listId, height)
|
||||
props.imgLoad(data.id, listId, height)
|
||||
}
|
||||
|
||||
|
||||
@@ -159,16 +159,24 @@ historyArr.data = JSON.parse(localStorage.getItem('historyArr')) || []
|
||||
|
||||
//搜索数据
|
||||
let seachList = (item) => {
|
||||
console.log(123)
|
||||
let string=seachAllType.keyword
|
||||
if (!string.replace(/\s/g, "")) return
|
||||
if (historyArr.data.indexOf(seachAllType.keyword) === -1) {
|
||||
historyArr.data.push(seachAllType.keyword)
|
||||
}
|
||||
localStorage.setItem('historyArr', JSON.stringify(historyArr.data));
|
||||
route.push({
|
||||
path: '/seachPage',
|
||||
query: {
|
||||
keyword:seachAllType.keyword
|
||||
}
|
||||
})
|
||||
if (routePath.value === '/') {
|
||||
route.push({
|
||||
path: '/seachPage',
|
||||
query: {
|
||||
keyword: seachAllType.keyword
|
||||
}
|
||||
})
|
||||
}else{
|
||||
setSeachConditions()
|
||||
}
|
||||
|
||||
// getDataList(seachAllType)
|
||||
}
|
||||
|
||||
@@ -450,5 +458,6 @@ defineExpose({
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
}
|
||||
}</style>
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -238,6 +238,9 @@ let setSeachConditions = (type, data) => {
|
||||
...data
|
||||
}
|
||||
}
|
||||
if(!seachVal.value){
|
||||
seachAllType.searchid=''
|
||||
}
|
||||
// console.log('seachAllType', seachAllType)
|
||||
// return
|
||||
getDataList(seachAllType, tabType.value)
|
||||
@@ -266,7 +269,7 @@ let searchInit = (data) => {
|
||||
}
|
||||
//搜索数据
|
||||
let seachList = (item) => {
|
||||
console.log(seachVal.value)
|
||||
if(seachVal.value.replace(/\s/g,""))return
|
||||
if (!seachVal.value) {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -953,8 +953,14 @@ img {
|
||||
margin-right: 10px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
border:1px solid transparent;
|
||||
}
|
||||
.btn:hover{
|
||||
border:1px solid rgba(235,235,235,1)
|
||||
}
|
||||
.dropdown-btn:hover{
|
||||
border:1px solid rgba(235,235,235,1);
|
||||
}
|
||||
|
||||
.dropdown-btn {
|
||||
height: 30px;
|
||||
display: flex;
|
||||
@@ -969,6 +975,7 @@ img {
|
||||
text-align: center;
|
||||
padding: 5px 10px;
|
||||
cursor: pointer;
|
||||
border:1px solid transparent;
|
||||
|
||||
.mg-l-30 {
|
||||
margin-left: 30px !important;
|
||||
@@ -987,7 +994,7 @@ img {
|
||||
|
||||
.btn-check {
|
||||
color: #50E3C2 !important;
|
||||
border: 1px solid #50E3C2;
|
||||
border: 1px solid #50E3C2 !important;
|
||||
background: #eefcf9;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user