修改几个问题

This commit is contained in:
A1300399510
2025-02-25 19:18:25 +08:00
parent 6e511ab2ef
commit 68706050a0
10 changed files with 53 additions and 20 deletions

View File

@@ -8,7 +8,7 @@
<biserialItem v-for="(item, i) in pageList" :key="i" :item="item"></biserialItem>
</div>
<div class="body-maxWidth" v-show="seachSelectData.data && seachSelectData.data.tabType === 'apartment' && dataList.data && dataList.data.length > 0" ref="gridContainer">
<apartment-item v-for="(item, index) in listApartment" :key="index" :item="item"></apartment-item>
<apartment-item v-for="(item, index) in listApartment" :key="index" :item="item" :masonryInstance="masonryInstance"></apartment-item>
</div>
<div class="dis-f jus-x no-list-box al-item" v-show="dataList.data && dataList.data.length === 0">
<noList hintText="暂无搜索结果" hintTextTwo="建议更换搜索关键词,或放宽筛选条件"></noList>
@@ -77,9 +77,9 @@ let setInitial = () => {
//获取搜索数据
let getDataList = (data, type = true) => {
console.log("11414");
// console.log("11414");
// console.log(data,type)
console.log(type);
// console.log(type);
if (!type) {
//是否继续搜索
seachSelectData.data.tabType !== "apartment" ? (pageList.value = []) : (listApartment.value = [])
@@ -102,7 +102,7 @@ let getDataList = (data, type = true) => {
} else {
seachApi = api.apartment(postData)
}
console.log("555");
// console.log("555");
seachApi.then(res => {
if (res.code === 200) {
// console.log(res.data)
@@ -174,7 +174,7 @@ onMounted(() => {
})
masonryInstance = new Masonry(gridContainer.value, {
itemSelector: ".item",
gutter: 20,
gutter: 15,
})
routeQuery.data = route.currentRoute.value.query
if (routeQuery.data.keyword && routeQuery.data.keyword.replace(/\s/g, "") && routeQuery.data.houseingPageType != 6) {