+
- {{ loadText }} -
@@ -1003,7 +1010,7 @@ let interval = ''
let moveImageList = (type) => {
let clientWidth = imageList.value.clientWidth
let scrollWidth = imageList.value.scrollWidth
- if(type === 'right'&&imageLIst.value[imgListTab.value] + clientWidth >= scrollWidth)return
+ if (type === 'right' && imageLIst.value[imgListTab.value] + clientWidth >= scrollWidth) return
if ((type === 'left' && imgListTab.value === 0) || (imgListTab.value === imageLIst.value.length - 1 && type === 'right')) return
type === 'left' ? imgListTab.value-- : imgListTab.value++
setOffsetWidth(imageLIst.value[imgListTab.value], type)
@@ -1079,7 +1086,7 @@ let clone = (text) => {
document.body.removeChild(textareaEle);
ElMessage({
message: '复制成功',
- type:'success',
+ type: 'success',
center: true,
})
}
@@ -1099,7 +1106,7 @@ let setHousingArr = () => {
arr = housingInfo['data'].info.video ? arr.concat(housingInfo['data'] && housingInfo['data'].info.video) : []
arr = housingInfo['data'].info.picturegroup ? arr.concat(housingInfo['data'] && housingInfo['data'].info.picturegroup) : []
imgList.value = imgList.value.concat(arr)
- console.log(imgList.value)
+ // console.log(imgList.value)
}
let location = store.state.indexData.config && store.state.indexData.config.location
@@ -1107,29 +1114,29 @@ let location = store.state.indexData.config && store.state.indexData.config.loca
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('routeLis', store.state)
console.log(location)
if (!location) return
if (pageType.value == 1 || pageType.value == 2) {
// type=location&data=["2.2"]&areaItem={"id":2,"name":"九龙"}
// console.log(`${store.state.routeList['secondaryIndex'].path}/location/${JSON.stringify([housingInfo['data']['info'].location.substring(0, 1)])}`)
store.state.routeList['thirdIndex'] = {
- path: `${store.state.routeList['secondaryIndex'].path}/location/${JSON.stringify([housingInfo['data']['info'].location.substring(0, 1)])}/${JSON.stringify({id:housingInfo['data']['info'].location.substring(0, 1),name:location[housingInfo['data']['info'].location.substring(0, 1)]})}/${JSON.stringify({type:'types',data:{name:type[housingInfo['data']['info'].type.substring(0, 1)],id:housingInfo['data']['info'].type}})}`,
+ path: `${store.state.routeList['secondaryIndex'].path}/location/${JSON.stringify([housingInfo['data']['info'].location.substring(0, 1)])}/${JSON.stringify({ id: housingInfo['data']['info'].location.substring(0, 1), name: location[housingInfo['data']['info'].location.substring(0, 1)] })}/${JSON.stringify({ type: 'types', data: { name: type[housingInfo['data']['info'].type.substring(0, 1)], id: housingInfo['data']['info'].type } })}`,
title: `${location[housingInfo['data']['info'].location.substring(0, 1)]}${type[housingInfo['data']['info'].type.substring(0, 1)]}房源`
}
if (housingInfo['data']['info'].location.length > 0)
store.state.routeList['fourthIndex'] = {
- path: `${store.state.routeList['secondaryIndex'].path}/location/${JSON.stringify([housingInfo['data']['info'].location.substring(0, 3)])}/${JSON.stringify({id:housingInfo['data']['info'].location.substring(0, 1),name:location[housingInfo['data']['info'].location.substring(0, 1)]})}/${JSON.stringify({type:'types',data:{name:type[housingInfo['data']['info'].type.substring(0, 3)],id:housingInfo['data']['info'].type}})}`,
+ path: `${store.state.routeList['secondaryIndex'].path}/location/${JSON.stringify([housingInfo['data']['info'].location.substring(0, 3)])}/${JSON.stringify({ id: housingInfo['data']['info'].location.substring(0, 1), name: location[housingInfo['data']['info'].location.substring(0, 1)] })}/${JSON.stringify({ type: 'types', data: { name: type[housingInfo['data']['info'].type.substring(0, 3)], id: housingInfo['data']['info'].type } })}`,
title: `${location[housingInfo['data']['info'].location]}${type[housingInfo['data']['info'].type]}`
}
- }else if(pageType.value == 4){
+ } else if (pageType.value == 4) {
store.state.routeList['thirdIndex'] = {
- path:{
- path:`${store.state.routeList['secondaryIndex'].path}`,
- query:{
- id:1
+ path: {
+ path: `${store.state.routeList['secondaryIndex'].path}`,
+ query: {
+ id: 1
}
- } ,
+ },
title: ``
}
if (housingInfo['data']['info'].location.length > 0)
@@ -1155,16 +1162,16 @@ let getHousingInfo = () => {
housingInfo['data'] = res.data
setHousingArr()
setNavigation()
- distanceList.value = distanceList.value.concat(housingInfo['data']['info'].pointData||[])
+ distanceList.value = distanceList.value.concat(housingInfo['data']['info'].pointData || [])
distanceList.value.unshift({
address: true,
name: housingInfo['data']['info'].address,
})
concatInfo['data'] = store.state.indexData.wechat
if (res.data.contacts) contacts['data'] = res.data.contacts
- if (housingInfo['data'].info.verified&&pageType.value!=3) {
+ if (housingInfo['data'].info.verified && pageType.value != 3) {
getPublisherList()
- } else if(pageType.value!=3){
+ } else if (pageType.value != 3) {
recommendList()
}
@@ -1344,7 +1351,7 @@ onMounted(() => {
if (pageType.value != 3) {
setTimeout(() => {
window.addEventListener('scroll', onPageSrcoll, true);
- document.body.scrollTop=0
+ document.body.scrollTop = 0
}, 1000)
}
@@ -1402,8 +1409,9 @@ img {
.pos-a {
position: absolute;
}
-.mg-b-80{
- margin-bottom:80px;
+
+.mg-b-80 {
+ margin-bottom: 80px;
}
.housing-title {
@@ -1485,7 +1493,7 @@ img {
.img {
width: 800px;
- height:800px;
+ height: 800px;
}
}
@@ -1954,7 +1962,7 @@ img {
font-size: 14px;
color: #333;
cursor: pointer;
- margin-top:10px;
+ margin-top: 10px;
.logo {
width: 22px;
@@ -2003,7 +2011,7 @@ img {
.crowd-box {
width: 120px;
height: 120px;
- margin-top:30px;
+ margin-top: 30px;
background: inherit;
background-color: rgba(255, 255, 255, 1);
border: none;
@@ -2041,7 +2049,7 @@ img {
.wx-qrcode {
width: 103px;
height: 103px;
- border-radius:50%;
+ border-radius: 50%;
}
}
@@ -2579,6 +2587,11 @@ img {
height: 70px;
}
+ .distance-box-s {
+ height: 500px;
+ overflow-y: scroll;
+ }
+
.distance-info-data {
padding: 30px 45px 0 45px;
position: relative;
@@ -2616,8 +2629,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;
@@ -2672,9 +2683,9 @@ img {
}
}
- ::-webkit-scrollbar {
+ /* ::-webkit-scrollbar {
display: none;
- }
+ } */
.line-school-box {
width: 100%;
@@ -2765,6 +2776,5 @@ img {
}
}
}
-}
-
+}
\ No newline at end of file