diff --git a/src/components/detail/breadcrumb.vue b/src/components/detail/breadcrumb.vue index 959d33d..37a672f 100644 --- a/src/components/detail/breadcrumb.vue +++ b/src/components/detail/breadcrumb.vue @@ -28,7 +28,7 @@ -
+
diff --git a/src/components/indexWaterfallBox/indexWaterfallBox.vue b/src/components/indexWaterfallBox/indexWaterfallBox.vue index a0b960e..434e08a 100644 --- a/src/components/indexWaterfallBox/indexWaterfallBox.vue +++ b/src/components/indexWaterfallBox/indexWaterfallBox.vue @@ -94,7 +94,7 @@
- @@ -431,6 +431,7 @@ let watchAdv = () => { .live-img { width: 285px; /* height: 349px; */ + min-height:370px; border-radius: 16px; margin-bottom: 20px; cursor: pointer; diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 0e0334a..40a7877 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -256,11 +256,9 @@ let getRecommendList = () => { loadText.value = '到底了' } nextTick(() => { - setTimeout(() => { + console.log(listMasonryInstance) listMasonryInstance.reloadItems(); listMasonryInstance.layout(); - }) - }) } else { ElMessage({ @@ -336,8 +334,7 @@ const list = ref(null) onMounted(() => { listMasonryInstance = new Masonry(list.value, { itemSelector: '.item', - gutter: 20, - percentPosition: true + gutter: 20 }); document.documentElement.scrollTop = 0 currentInstance = getCurrentInstance() diff --git a/src/views/detail.vue b/src/views/detail.vue index 6e8e92f..ee75a79 100644 --- a/src/views/detail.vue +++ b/src/views/detail.vue @@ -359,7 +359,7 @@ + v-if="housingInfo['data'] && housingInfo['data'].info.elevator&&housingInfo['data'].info.elevator!=-1"> | {{ indexData['data'] && @@ -547,30 +547,32 @@
-
+
房源ID :  {{ housingInfo['data'] && - housingInfo['data'].info.uid }} + housingInfo['data'].info.uid)">{{ housingInfo['data'] &&housingInfo['data'].info.uid }} 浏览 : {{ housingInfo['data'] && housingInfo['data'].info.count_view }}
-
+
+
收藏 :   {{ housingInfo['data'] && housingInfo['data'].info.count_fav }}
-
+
+
发布 :   {{ housingInfo['data'] && housingInfo['data'].info.timestamp }}
-
+
+
更新 :   {{ housingInfo['data'] && housingInfo['data'].info.updatetime }} @@ -1332,7 +1334,7 @@ const onPageSrcoll = (e) => { if (loadMore.value) { loadMore.value = false pages.value += 1 - if (housingInfo['data'].isintermediary) { + if (housingInfo['data']&&housingInfo['data'].isintermediary) { getPublisherList() } else { recommendList() @@ -1359,6 +1361,7 @@ let recommendList = () => { }).then(res => { console.log(res) if (res.code === 200) { + console.log(res.data.data && res.data.data.length >= 30) if (res.data.data && res.data.data.length >= 30) { loadMore.value = true loadText.value = '下拉加载更多' @@ -1400,6 +1403,7 @@ let getPublisherList = () => { }).then(res => { console.log(res) if (res.code === 200) { + console.log(res.data.length >= 30) if (res.data.length >= 30) { loadMore.value = true } else { @@ -1441,10 +1445,8 @@ onMounted(() => { gutter: 10 }); if (pageType.value != 3) { - setTimeout(() => { - window.addEventListener('scroll', onPageSrcoll); - document.body.scrollTop = 0 - }, 1000) + window.addEventListener('scroll', onPageSrcoll); + document.body.scrollTop = 0 } }) @@ -2041,6 +2043,7 @@ img { margin-top: 30px; box-sizing: border-box; line-height: 20px; + word-wrap: break-word; .business-card-btn { width: 100px; @@ -2539,7 +2542,7 @@ img { border-color: rgba(235, 235, 235, 1); border-radius: 10px; margin-top: 45px; - padding: 10px 0px; + padding: 10px 15px; font-family: 'PingFangSC-Regular', 'PingFang SC', sans-serif; font-weight: 400; font-style: normal; @@ -2547,12 +2550,13 @@ img { font-size: 13px; .houseing-info-box-s { - padding: 0 15px; + height: 17px; + width:1px; border-right: 1px dashed #d7d7d7; } .browse-box { - margin-left: 160px; + margin-left: 130px; .text { margin-left: 10px;