详情增加电梯隐藏条件 学校距离隐藏

This commit is contained in:
luJianJun 2023-07-31 17:36:09 +08:00
parent 6083a9fde9
commit d024db53f4
4 changed files with 24 additions and 22 deletions

View File

@ -28,7 +28,7 @@
</div>
</div>
</div>
<div class="title-top-box pos-r" style="z-index:666;">
<div class="title-top-box pos-r">
<div class="top-round" v-if="data['data'] && data['data'].info && data['data'].info.verified === 1||data['data'].isintermediary">
<div class="top-round-s" :class="[pageType==2?'intermediary-bg':'']"></div>
</div>

View File

@ -94,7 +94,7 @@
<!-- 广告 -->
</div>
<img :src="itemData.imageLocal || itemData.image" class="live-img" v-if="itemData.type === 'adv'" alt=""
<img :src="itemData.imageLocal || itemData.image" class="live-img item" v-if="itemData.type === 'adv'" alt=""
@click="watchAdv">
</template>
@ -431,6 +431,7 @@ let watchAdv = () => {
.live-img {
width: 285px;
/* height: 349px; */
min-height:370px;
border-radius: 16px;
margin-bottom: 20px;
cursor: pointer;

View File

@ -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()

View File

@ -359,7 +359,7 @@
</span>
<span class="text" style="margin-left:0;"
v-if="housingInfo['data'] && housingInfo['data'].info.elevator">
v-if="housingInfo['data'] && housingInfo['data'].info.elevator&&housingInfo['data'].info.elevator!=-1">
<span style="color: #D7D7D7;">|</span>
{{
indexData['data'] &&
@ -547,30 +547,32 @@
</div>
</div>
<div class="houseing-info-box dis-f al-item jus-bet">
<div class="dis-f al-item houseing-info-box-s">
<div class="dis-f al-item">
房源ID : &nbsp<span class="houseing-id" @click="clone(housingInfo['data'] &&
housingInfo['data'].info.uid)">{{ housingInfo['data'] &&
housingInfo['data'].info.uid }}</span>
housingInfo['data'].info.uid)">{{ housingInfo['data'] &&housingInfo['data'].info.uid }}</span>
<span class="browse-box">
浏览 : <span class="text">{{ housingInfo['data'] && housingInfo['data'].info.count_view
}}</span>
</span>
</div>
<div class="dis-f al-item houseing-info-box-s">
<div class="houseing-info-box-s"></div>
<div class="dis-f al-item">
<span>
收藏 : &nbsp<span class="text">
{{ housingInfo['data'] && housingInfo['data'].info.count_fav }}
</span>
</span>
</div>
<div class="dis-f al-item houseing-info-box-s">
<div class="houseing-info-box-s"></div>
<div class="dis-f al-item">
<span>
发布 : &nbsp<span class="text">
{{ housingInfo['data'] && housingInfo['data'].info.timestamp }}
</span>
</span>
</div>
<div class="dis-f al-item houseing-info-box-s" style="border-right:0px">
<div class="houseing-info-box-s"></div>
<div class="dis-f al-item" style="border-right:0px">
<span>
更新 : &nbsp<span class="text">
{{ 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;