修改个人-详情-附近房源
This commit is contained in:
@@ -464,7 +464,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="dis-f jus-x al-item">
|
<div class="dis-f jus-x al-item">
|
||||||
<div class="body-maxWidth" ref="gridContainer" style="margin-top:15px;">
|
<div class="body-maxWidth" ref="gridContainer" style="margin-top:15px;display: flex;flex-wrap: wrap; margin-bottom: 50px;">
|
||||||
<indexWaterfallBox v-for="(items, i) in recommendListData" :data="items" :key="items.id">
|
<indexWaterfallBox v-for="(items, i) in recommendListData" :data="items" :key="items.id">
|
||||||
</indexWaterfallBox>
|
</indexWaterfallBox>
|
||||||
</div>
|
</div>
|
||||||
@@ -917,8 +917,14 @@ let recommendList = () => {
|
|||||||
}
|
}
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
console.log(recommendListData.value)
|
console.log(recommendListData.value)
|
||||||
|
|
||||||
masonryInstance.reloadItems();
|
masonryInstance.reloadItems();
|
||||||
masonryInstance.layout();
|
masonryInstance.layout();
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
masonryInstance.reloadItems();
|
||||||
|
masonryInstance.layout();
|
||||||
|
}, 3000)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
ElMessage({
|
ElMessage({
|
||||||
@@ -935,7 +941,7 @@ let masonryInstance = null
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
getHousingInfo()
|
getHousingInfo()
|
||||||
masonryInstance = new Masonry(gridContainer.value, {
|
masonryInstance = new Masonry(gridContainer.value, {
|
||||||
itemSelector: '.item',
|
itemSelector: '.waterfall-box',
|
||||||
gutter: 20
|
gutter: 20
|
||||||
});
|
});
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user