搜索页 详情页跳转设置
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<div>
|
||||
<pageTopBar></pageTopBar>
|
||||
<div class="dis-f jus-x al-item"
|
||||
:class="{ 'mg-b-80': pageType == 3 && (recommendListData.length == 0 || publisherList.length == 0) }">
|
||||
:class="{ 'mg-b-80': pageType == 3 || (recommendListData.length == 0 || publisherList.length == 0) }">
|
||||
<div class="body-maxWidth mg-t-35">
|
||||
<breadcrumb :data="housingInfo['data']" :operation='setOperation'></breadcrumb>
|
||||
<el-affix :offset="0" @change="changeTitleType" z-index="700">
|
||||
@@ -126,7 +126,7 @@
|
||||
{{ !housingInfo['data'] || housingInfo['data'] &&
|
||||
housingInfo['data'].info.rentalduration
|
||||
=== '0' ?
|
||||
'不限' : `${config.rentalduration[housingInfo['data'] && housingInfo['data'].info.rentalduration]}` }}
|
||||
'不限' : `${ indexData['data']&&indexData['data']['config']&&indexData['data']['config']['rentalduration'][housingInfo['data'] && housingInfo['data'].info.rentalduration]}` }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="condition">
|
||||
@@ -202,7 +202,7 @@
|
||||
</div>
|
||||
<!-- -->
|
||||
<div class="need-housing-info" v-if="pageType == 3">
|
||||
<div class="info dis-f al-item">
|
||||
<div class="info dis-f al-item" v-if="housingInfo['data'] && housingInfo['data'].info.property">
|
||||
<div class="title-box">
|
||||
房屋类型
|
||||
</div>
|
||||
@@ -219,7 +219,7 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info dis-f al-item">
|
||||
<div class="info dis-f al-item" v-if="housingInfo['data'] && housingInfo['data'].info.floor">
|
||||
<div class="title-box">
|
||||
所在楼层
|
||||
</div>
|
||||
@@ -235,7 +235,7 @@
|
||||
<!-- {{ housingInfo['data'] && housingInfo['data'].info.floor }} -->
|
||||
</div>
|
||||
</div>
|
||||
<div class="info dis-f al-item">
|
||||
<div class="info dis-f al-item" v-if="housingInfo['data'] &&housingInfo['data'].info.elevator">
|
||||
<div class="title-box">
|
||||
电梯
|
||||
</div>
|
||||
@@ -248,7 +248,7 @@
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="info dis-f al-item">
|
||||
<div class="info dis-f al-item" v-if="housingInfo['data'] &&housingInfo['data'].info.sunshinearea">
|
||||
<div class="title-box">
|
||||
晾晒区
|
||||
</div>
|
||||
@@ -264,7 +264,7 @@
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="info dis-f al-item">
|
||||
<div class="info dis-f al-item" v-if="housingInfo['data'] && housingInfo['data'].info.acreage[0]">
|
||||
<div class="title-box">
|
||||
面积
|
||||
</div>
|
||||
@@ -286,7 +286,7 @@
|
||||
平方呎
|
||||
</div>
|
||||
</div>
|
||||
<div class="info dis-f al-item">
|
||||
<div class="info dis-f al-item" v-if="housingInfo['data'] &&housingInfo['data'].info.publishergender">
|
||||
<div class="title-box">
|
||||
同住人性别要求
|
||||
</div>
|
||||
@@ -299,7 +299,7 @@
|
||||
}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="info dis-f al-item">
|
||||
<div class="info dis-f al-item" v-if="housingInfo['data'] && housingInfo['data'].info.gender">
|
||||
<div class="title-box">
|
||||
发布者性别
|
||||
</div>
|
||||
@@ -317,7 +317,7 @@
|
||||
</div>
|
||||
<!-- -->
|
||||
<div class="info-box-s" v-if="pageType != 3">
|
||||
<div class="info dis-f al-item">
|
||||
<div class="info dis-f al-item" v-if="housingInfo['data'] &&housingInfo['data'].info.property">
|
||||
<div class="title-box">
|
||||
房屋类型
|
||||
</div>
|
||||
@@ -330,7 +330,7 @@
|
||||
}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="info dis-f al-item">
|
||||
<div class="info dis-f al-item" v-if="housingInfo['data'] &&housingInfo['data'].info.elevator">
|
||||
<div class="title-box">
|
||||
所在楼层
|
||||
</div>
|
||||
@@ -349,7 +349,7 @@
|
||||
}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="info dis-f al-item">
|
||||
<div class="info dis-f al-item" v-if="housingInfo['data'] &&housingInfo['data'].info.sunshinearea">
|
||||
<div class="title-box">
|
||||
晾晒区
|
||||
</div>
|
||||
@@ -365,7 +365,7 @@
|
||||
}}
|
||||
</span>
|
||||
</div>
|
||||
<div class="info dis-f al-item" style="margin-top:30px;">
|
||||
<div class="info dis-f al-item" style="margin-top:30px;" v-if="housingInfo['data'] && housingInfo['data'].info.acreage">
|
||||
<div class="title-box">
|
||||
面积
|
||||
</div>
|
||||
@@ -376,7 +376,7 @@
|
||||
}} 平方呎
|
||||
</span>
|
||||
</div>
|
||||
<div class="info dis-f al-item" style="margin-top:30px;">
|
||||
<div class="info dis-f al-item" style="margin-top:30px;" v-if="housingInfo['data'] &&housingInfo['data'].info.gender">
|
||||
<div class="title-box">
|
||||
性别要求
|
||||
</div>
|
||||
@@ -595,7 +595,7 @@
|
||||
v-if="pageType == 2 && housingInfo['data'] && housingInfo['data'].isintermediary == 1">
|
||||
<img src="../assets/homeImage/intermediaryTabImg.png" class="intermediary-logo" alt="">
|
||||
</div>
|
||||
<div class="dis-f jus-x" v-if="pageType == 1">
|
||||
<div class="dis-f jus-x" v-if="pageType == 1||(pageType == 2 && housingInfo['data'] && housingInfo['data'].isintermediary != 1)">
|
||||
<div class="user-type">
|
||||
{{
|
||||
indexData['data'] &&
|
||||
@@ -1128,20 +1128,23 @@ let setHousingArr = () => {
|
||||
|
||||
|
||||
}
|
||||
//总体数据
|
||||
let config=store.state.indexData.config
|
||||
|
||||
let location = store.state.indexData.config && store.state.indexData.config.location
|
||||
//设置顶部导航
|
||||
// intermediary 1中介 2-5个人 6求房源
|
||||
let setNavigation = () => {
|
||||
let type = store.state.indexData.config && store.state.indexData.config.type
|
||||
indexData['data'] = store.state.indexData
|
||||
console.log('routeLis', store.state)
|
||||
console.log(location)
|
||||
if (!location) return
|
||||
if (pageType.value == 1 || pageType.value == 2) {
|
||||
// location=3.8,3.13&areaItem=3
|
||||
// console.log(`${store.state.routeList['secondaryIndex'].path}/location/${JSON.stringify([housingInfo['data']['info'].location.substring(0, 1)])}`)
|
||||
store.state.routeList['secondaryIndex']={
|
||||
path:housingInfo['data']['info'].intermediary===1?'/intermediaryHousing':
|
||||
housingInfo['data']['info'].intermediary===6?'/needHousing':'/personHousing',
|
||||
title:housingInfo['data']['info'].intermediary===1?'中介房源':
|
||||
housingInfo['data']['info'].intermediary===6?'求房源':'个人房源'
|
||||
}
|
||||
store.state.routeList['thirdIndex'] = {
|
||||
path: `${store.state.routeList['secondaryIndex'].path}`,
|
||||
query: {
|
||||
@@ -1189,9 +1192,10 @@ let getHousingInfo = () => {
|
||||
})
|
||||
concatInfo['data'] = store.state.indexData.wechat
|
||||
if (res.data.contacts) contacts['data'] = res.data.contacts
|
||||
if (housingInfo['data'].info.verified && pageType.value != 3) {
|
||||
console.log('pageType',pageType.value)
|
||||
if ( pageType.value ==2) {
|
||||
getPublisherList()
|
||||
} else if (pageType.value != 3) {
|
||||
} else if (pageType.value == 1) {
|
||||
recommendList()
|
||||
}
|
||||
|
||||
@@ -1299,17 +1303,17 @@ let recommendList = () => {
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
if (res.code === 200) {
|
||||
if (res.data.length === 0) return
|
||||
if (res.data.pagevalue) {
|
||||
recommendListData.value = recommendListData.value.concat(res.data.data)
|
||||
pagevalue.value = res.data.pagevalue
|
||||
}
|
||||
if (res.data.data.length >= 30) {
|
||||
if (res.data.data&&res.data.data.length >= 30) {
|
||||
loadMore.value = true
|
||||
} else {
|
||||
loadMore.value = false
|
||||
loadText.value = '到底了'
|
||||
}
|
||||
if (res.data.length === 0) return
|
||||
if (res.data.pagevalue) {
|
||||
recommendListData.value = recommendListData.value.concat(res.data.data)
|
||||
pagevalue.value = res.data.pagevalue
|
||||
}
|
||||
nextTick(() => {
|
||||
masonryInstance.reloadItems();
|
||||
masonryInstance.layout();
|
||||
@@ -1339,13 +1343,13 @@ let getPublisherList = () => {
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
if (res.code === 200) {
|
||||
publisherList.value = publisherList.value.concat(res.data)
|
||||
if (res.data.length >= 30) {
|
||||
loadMore.value = true
|
||||
} else {
|
||||
loadMore.value = false
|
||||
loadText.value = '到底了'
|
||||
}
|
||||
publisherList.value = publisherList.value.concat(res.data)
|
||||
} else {
|
||||
ElMessage({
|
||||
message: res.message,
|
||||
@@ -2104,7 +2108,7 @@ img {
|
||||
color: #FFFFFF;
|
||||
text-align: center;
|
||||
line-height: 24px;
|
||||
padding: 2px 3px;
|
||||
padding: 2px 6px;
|
||||
}
|
||||
|
||||
.time-box {
|
||||
@@ -2649,8 +2653,6 @@ img {
|
||||
}
|
||||
|
||||
.school-info {
|
||||
height: 500px;
|
||||
overflow-y: scroll;
|
||||
font-family: 'PingFangSC-Semibold', 'PingFang SC Semibold', 'PingFang SC', sans-serif;
|
||||
font-weight: 650;
|
||||
font-style: normal;
|
||||
|
||||
Reference in New Issue
Block a user