修改首页瀑布流样式

This commit is contained in:
A1300399510 2024-11-12 14:03:52 +08:00
parent b4e510f9cf
commit 2fdea2976c
8 changed files with 61 additions and 42 deletions

1
dist/css/app.0db453c8.css vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View File

@ -1,4 +1,4 @@
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/favicon.ico"/><title>港校租房</title><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/chunk-vendors.6d96b969.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/app.7ec64378.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/chunk-vendors.7885d77e.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/app.dfd581f2.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but zufang doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><script src="https://app.gter.net/bottom?tpl=header&menukey=fang"></script><div id="app"></div><div style="display: none;"><script>var _hmt = _hmt || []
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/favicon.ico"/><title>港校租房</title><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/chunk-vendors.6d96b969.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/app.db19e2a4.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/chunk-vendors.7885d77e.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/app.0db453c8.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but zufang doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><script src="https://app.gter.net/bottom?tpl=header&menukey=fang"></script><div id="app"></div><div style="display: none;"><script>var _hmt = _hmt || []
;(function () {
var hm = document.createElement("script")
hm.src = "//hm.baidu.com/hm.js?4bd66cbe45a640b607fe46c48f658746"

File diff suppressed because one or more lines are too long

1
dist/js/app.db19e2a4.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -28,16 +28,16 @@
{{ `· ${itemData.gender}` }}
{{ itemData.leaseterm ? `· ${itemData.leaseterm}` : "" }}
</span>
<span class="ellipsis" style="width: 272px; display: block;" v-if="itemData.type === 'apartment'">{{ itemData.propaganda }}</span>
<span class="ellipsis" style="width: 200px; display: block;" v-if="itemData.type === 'apartment'">{{ itemData.propaganda }}</span>
</div>
<div style="padding: 0 10px; margin-top: 15px;" class="dis-f al-item" v-if="itemData.type === 'housing'">
<div style="padding: 0 10px; margin-top: 15px; align-items: flex-start;" class="dis-f al-item" v-if="itemData.type === 'housing'">
<img src="../../assets/homeImage/addMarker.png" class="add-marker" alt="" />
<span class="address-text">{{ location.data && location.data[itemData.location && itemData.location.substring(0, 1)] }} > {{ location.data && location.data[itemData.location] }}</span>
</div>
<div style="padding: 0 10px; margin-top: 12px; align-items: end;" class="rent-box dis-f" v-if="itemData.type === 'housing'">
<div class="unit">HK$</div>
<div class="price">{{ itemData.rent }}</div>
<div class="date">/</div>
<!-- <div class="date">/</div> -->
</div>
<!-- <div class="title">
iRent油麻地二期公寓
@ -55,7 +55,7 @@
<div class="dis-f" style="align-items: end; line-height: 20px;">
<span class="unit">HK$</span>
<span class="price">{{ item.value }}</span>
<span class="date">/</span>
<!-- <span class="date">/</span> -->
</div>
</div>
</div>
@ -108,8 +108,8 @@ const props = defineProps({
})
const imgload = () => {
props.listMasonryInstance.reloadItems();
props.listMasonryInstance.layout();
props.listMasonryInstance.reloadItems()
props.listMasonryInstance.layout()
}
let itemData = props.data
@ -203,7 +203,8 @@ watchEffect(() => {
}
.item {
width: 285px;
width: 224px;
// width: 285px;
background: inherit;
background-color: rgba(255, 255, 255, 1);
border: none;
@ -248,6 +249,7 @@ watchEffect(() => {
.corner-box {
display: flex;
flex-direction: row-reverse;
height: 24px;
.corner-img {
transform: rotate(90deg);
@ -257,19 +259,30 @@ watchEffect(() => {
}
}
.corner-img,
.tab-img {
position: absolute;
right: 0;
bottom: 0;
transform: rotate(90deg);
width: 33px;
height: 33px;
margin: 0 -1px 0 0;
}
.add-marker {
width: 18px;
height: 18px;
margin-right: 5px;
width: 16px;
height: 16px;
// margin-right: 5px;
}
.type-tab {
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 14px;
font-size: 13px;
color: #aaaaaa;
margin-top: 15px;
margin-top: 5px;
padding: 0 10px;
word-wrap: break-word;
}
@ -281,7 +294,7 @@ watchEffect(() => {
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 14px;
font-size: 12px;
color: #555555;
}
@ -309,7 +322,7 @@ watchEffect(() => {
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 13px;
font-size: 12px;
color: #ffffff;
text-align: center;
line-height: 20px;
@ -317,7 +330,7 @@ watchEffect(() => {
display: inline-block;
// float: left;
border-radius: 5px;
margin-right: 10px;
// margin-right: 10px;
margin-top: 4px;
}
}
@ -389,7 +402,7 @@ watchEffect(() => {
font-style: normal;
font-size: 14px;
color: #000000;
width: 120px;
width: 84px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@ -420,7 +433,7 @@ watchEffect(() => {
}
.apartment-img {
width: 275px;
width: 214px;
height: 193px;
border-radius: 10px;
margin: 5px auto;
@ -451,7 +464,8 @@ watchEffect(() => {
}
.live-img {
width: 285px;
// width: 285px;
width: 224px;
/* height: 349px; */
/* min-height: 370px; */
min-height: 193px;

View File

@ -111,16 +111,14 @@
<div class="waterfall-box s-w-100" ref="list" v-show="waterfallList.length > 0">
<div class="waterfall-first-box item dis-f al-item jus-x" style="flex-wrap: wrap;">
<div v-for="(item, i) in indexData.data.tabs" :key="i" class="info-box dis-f al-item jus-x" :class="[i == 0 ? 'first' : i == 1 ? 'second' : i == 2 ? 'third' : '']" style="flex-wrap: wrap;" @click="housingPage(item.path)">
<div>
<div class="img-box dis-f jus-x al-item">
<img src="../assets/homeImage/person.png" alt="" v-if="i == 0" class="img" />
<img src="../assets/homeImage/intermediary.png" alt="" v-if="i == 1" class="img" />
<img src="../assets/homeImage/brand.png" alt="" v-if="i == 2" class="img" />
<img src="../assets/homeImage/seek.png" alt="" v-if="i == 3" class="img" />
</div>
<div class="text-center s-w-100">
{{ item.name }}
</div>
<div class="img-box dis-f jus-x al-item">
<img src="../assets/homeImage/person.png" alt="" v-if="i == 0" class="img" />
<img src="../assets/homeImage/intermediary.png" alt="" v-if="i == 1" class="img" />
<img src="../assets/homeImage/brand.png" alt="" v-if="i == 2" class="img" />
<img src="../assets/homeImage/seek.png" alt="" v-if="i == 3" class="img" />
</div>
<div class="text-center s-w-100">
{{ item.name }}
</div>
</div>
</div>
@ -474,11 +472,13 @@ img {
}
.list-li {
// margin-top: 15px;
cursor: pointer;
width: 50%;
background-color: rgba(246, 246, 246, 1);
border-right: 1px solid rgba(246, 246, 246, 1);
height: 30px;
// border: ;
&:not(:nth-last-child(-n + 2)) {
margin-bottom: 10px;
@ -678,7 +678,7 @@ img {
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 20px;
font-size: 17px;
color: #555555;
height: 48px;
line-height: 48px;
@ -708,7 +708,7 @@ img {
width: 1px;
background: #d7d7d7;
height: 21px;
margin: 0 30px;
margin: 0 16px;
}
.waterfall-box {
@ -717,8 +717,8 @@ img {
justify-content: space-between;
.waterfall-first-box {
width: 284px;
height: 284px;
width: 224px;
height: 224px;
background-color: rgba(255, 255, 255, 1);
border-radius: 16px;
-moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.0784313725490196);
@ -727,6 +727,9 @@ img {
flex-wrap: wrap;
margin-bottom: 20px;
display: grid;
grid-template-columns: repeat(2, 1fr);
.first {
border-right: 1px dashed #ebebeb;
border-bottom: 1px dashed #ebebeb;
@ -741,14 +744,16 @@ img {
}
.info-box {
width: 142px;
height: 142px;
// width: 142px;
// height: 142px;
height: 100%;
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
font-weight: 400;
font-style: normal;
font-size: 14px;
color: #555555;
cursor: pointer;
flex-direction: column;
.text-center {
text-align: center;
@ -761,8 +766,8 @@ img {
}
.img-box {
width: 56px;
height: 56px;
width: 48px;
height: 48px;
border-radius: 16px;
-moz-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.0784313725490196);
-webkit-box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.0784313725490196);
@ -772,8 +777,8 @@ img {
}
.img {
width: 30px;
height: 30px;
width: 24px;
height: 24px;
}
}
}