网格,以房找人

This commit is contained in:
liuye
2021-12-15 18:07:16 +08:00
parent d97a11aeac
commit 3619dd40cd
6 changed files with 855 additions and 0 deletions

View File

@@ -0,0 +1,383 @@
<template>
<div class="detail">
<AiTopFixed>
<div class="select-flex">
<span class="name">后西一街新世纪花园小区新城区1栋后西一街新世纪花园小区</span>
<span class="btn">切换</span>
</div>
<div class="line-bg"></div>
<div class="num-content">
<div class="num-item">
<div class="content">
<h2>6770</h2>
<p>实有户数</p>
</div>
</div>
<div class="num-item">
<div class="content">
<h2>677</h2>
<p>实有人口</p>
</div>
</div>
<div class="num-item">
<div class="content">
<h2>67</h2>
<p>流动人口</p>
</div>
</div>
</div>
<div class="line-bg"></div>
</AiTopFixed>
<div class="list-content">
<div class="left">
<div class="item">
<h2>101</h2>
<p>无人</p>
</div>
<div class="item">
<h2>101</h2>
<p>无人</p>
</div>
<div class="item">
<h2>101</h2>
<p>无人</p>
</div>
<div class="item">
<h2>101</h2>
<p>无人</p>
</div>
</div>
<div class="right">
<div class="item active">6-10&nbsp;</div>
<div class="item">6-10&nbsp;</div>
<div class="item">6-10&nbsp;</div>
<div class="item">6-10&nbsp;</div>
<div class="item">6-10&nbsp;</div>
</div>
</div>
<u-popup v-model="show" mode="bottom" border-radius="14">
<div class="popup">
<div class="bg"></div>
<div class="title">新城区1栋102</div>
<div class="row-info">
<div class="row-item left">
<h3>102 </h3>
<p>房屋面积</p>
</div>
<div class="row-item center">
<span class="right-line"></span>
<span class="left-line"></span>
<h3>居住</h3>
<p>房屋用途</p>
</div>
<div class="row-item right">
<h3>出租</h3>
<p>居住现状</p>
</div>
</div>
<div class="row-info">
<div class="row-item left">
<h3>整租</h3>
<p>承租情况</p>
</div>
<div class="row-item center">
<span class="right-line"></span>
<span class="left-line"></span>
<h3>2021-11-01</h3>
<p>起租日期</p>
</div>
<div class="row-item right">
<h3></h3>
<p>租房备案证明</p>
</div>
</div>
</div>
<div class="line-bg"></div>
<div class="popup">
<div class="title pad-t32">房主信息</div>
<div class="info-flex">
<div class="item">
<span class="label">房主</span>李维民
</div>
<div class="item">
<span class="label">联系方式</span>13891067541
</div>
</div>
<div class="title pad-t32">承租人信息</div>
<div class="info-flex">
<div class="item">
<span class="label">房主</span>李维民
</div>
<div class="item">
<span class="label">联系方式</span>13891067541
</div>
</div>
</div>
<div class="line-bg"></div>
<div class="popup">
<div class="title pad-t32">实际居住人员</div>
<div class="info-flex">
<div class="item">
<span class="label">居住人</span>李维民
</div>
<div class="item">
<span class="label">联系方式</span>13891067541
</div>
</div>
<div class="info-flex mar-t48">
<div class="item">
<span class="label">与户主关系</span>兄弟
</div>
</div>
</div>
<div class="pop-btn">编辑修改</div>
</u-popup>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
data() {
return {
show: false
}
},
computed: { ...mapState(['user']) },
mounted() {
},
methods: {
}
}
</script>
<style lang="scss" scoped>
.detail {
.select-flex{
padding: 20px 40px 40px;
box-sizing: border-box;
line-height: 50px;
display: flex;
justify-content: space-between;
background-color: #fff;
.name{
width: 560px;
word-break: break-all;
font-size: 36px;
font-weight: 800;
color: #333;
}
.btn{
width: 70px;
color: #1365DD;
font-size: 30px;
}
}
.num-content{
width: 100%;
padding: 0 0 18px 40px;
background-color: #fff;
box-sizing: border-box;
display: flex;
.num-item{
flex: 1;
.content{
width: 120px;
text-align: center;
}
h2{
font-size: 36px;
font-weight: bold;
color: #333;
line-height: 42px;
padding-top: 46px;
}
p{
font-size: 26px;
color: #666;
line-height: 36px;
}
}
}
.line-bg{
width: 100%;
height: 8px;
background: #F1F6F9;
}
.list-content{
background-color: #fff;
display: flex;
justify-content: space-between;
width: 100%;
padding: 48px 2px 0 32px;
box-sizing: border-box;
.left{
width: 560px;
overflow: hidden;
.item{
width: 264px;
height: 158px;
background: #FAFBFF;
border-radius: 1px;
border: 1px solid #E7E7E7;
box-sizing: border-box;
text-align: center;
font-weight: bold;
margin: 0 32px 32px 0;
float: left;
h2{
font-size: 38px;
color: #5088FF;
line-height: 44px;
margin: 14px 0 26px 0;
}
p{
font-size: 32px;
color: #333;
line-height: 44px;
}
}
.item:nth-of-type(2n) {
margin-right: 0;
}
}
.right{
.item{
width: 120px;
height: 60px;
line-height: 60px;
padding: 0 8px;
background: #FAFBFF;
border-radius: 4px;
border: 1px solid #E7E7E7;
box-sizing: border-box;
font-size: 30px;
font-family: DINAlternate-Bold, DINAlternate;
color: #787878;
letter-spacing: -1px;
margin-bottom: 24px;
}
.active{
background: #5088FF;
border-radius: 2px;
border: 1px solid #E7E7E7;
color: #fff;
}
}
}
.popup{
padding-left: 32px;
.bg{
width: 64px;
height: 10px;
background: #CCC;
border-radius: 6px;
margin: 32px 0 32px 344px;
}
.title{
font-size: 36px;
font-family: PingFang-SC-Heavy, PingFang-SC;
font-weight: 800;
color: #333;
line-height: 50px;
margin-bottom: 40px;
}
.row-info{
margin-bottom: 32px;
.row-item{
display: inline-block;
width: 33%;
h3{
font-size: 32px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #4E75FE;
line-height: 64px;
}
p{
font-size: 28px;
color: #666;
line-height: 42px;
}
}
.left{
width: calc(28% - 70px);
text-align: center;
margin-right: 70px;
box-sizing: border-box;
}
.center{
width: 36%;
text-align: center;
box-sizing: border-box;
position: relative;
.left-line{
position: absolute;
top: 20px;
left: 0;
height: 64px;
border-left: 1px solid #E5E5E5;
}
.right-line{
position: absolute;
top: 20px;
right: 0;
height: 64px;
border-left: 1px solid #E5E5E5;
}
}
.right{
width: calc(33% - 40px);
text-align: center;
margin-left: 40px;
box-sizing: border-box;
}
}
.info-flex{
display: flex;
margin-bottom: 24px;
padding-right: 70px;
box-sizing: border-box;
.item{
flex: 1;
font-size: 28px;
color: #333;
line-height: 30px;
.label{
color: #999;
}
}
}
}
.line-bg{
width: 100%;
height: 30px;
background: #F5F6FA;
}
.pad-t32{
padding-top: 32px;
}
.mar-t48{
margin-top: 48px;
}
.pop-btn{
width: 100%;
height: 112px;
line-height: 112px;
text-align: center;
font-size: 32px;
font-weight: 500;
color: #FFF;
background: #1365DD;
}
}
::v-deep .content{
padding: 0!important;
}
</style>