<template>
  <div class="home_wrapper">
    <header-nav :currentNav="3" returnUrl="/sunVillage/index"></header-nav>
    <equityHeader :serialTag="1"></equityHeader>
    <div class="equity_main">
      <div class="header_mian">
        <div class="flex3">
          <div class="title">户人数</div>
          <div class="cont">4</div>
        </div>
        <div class="flex4">
          <div class="title">宅基地㎡</div>
          <div class="cont">4500</div>
        </div>
        <div class="flex4">
          <div class="title">宅基地㎡</div>
          <div class="cont">4500</div>
        </div>
      </div>
      <div class="households_main">
        <div class="flex_block" @click="skip('/sunVillage/equity_desc')">
          <div class="unit">户主</div>
          <div class="head">
            <img src="../../../assets/images/sunVillage/head_portrait.jpg" />
          </div>
          <div class="name">刘树人</div>
          <div class="sex">男</div>
          <div class="meberCode">
            <div class="text">成员户编码</div>
            <div class="code">15456456464646</div>
          </div>
        </div>
        <div class="flex_block" @click="skip('/sunVillage/equity_desc')">
          <div class="unit">妻子</div>
          <div class="head">
            <img src="../../../assets/images/sunVillage/head_portrait.jpg" />
          </div>
          <div class="name">刘淼</div>
          <div class="sex">女</div>
          <div class="meberCode">
            <div class="text">成员户编码</div>
            <div class="code">15456456464646</div>
          </div>
        </div>
        <div class="flex_block" @click="skip('/sunVillage/equity_desc')">
          <div class="unit">长子</div>
          <div class="head">
            <img src="../../../assets/images/sunVillage/head_portrait.jpg" />
          </div>
          <div class="name">刘大壮</div>
          <div class="sex">男</div>
          <div class="meberCode">
            <div class="text">成员户编码</div>
            <div class="code">15456456464646</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.home_wrapper {
  width: 100%;
  padding-top: 126px;
  min-height: 100vh;
  background: #fff;
  .equity_main {
    margin: 0 24px;
    padding: 15px 0;
    .header_mian {
      height: 80px;
      display: flex;
      margin-bottom: 15px;
      justify-content: center; /* 相对父元素水平居中 */
      align-items: center; /*  子元素相对父元素垂直居中 */
      .flex3 {
        flex: 3;
        display: flex;
      }
      .flex4 {
        flex: 4;
        display: flex;
      }
      .title {
        font-size: 30px;
        padding: 0 15px;
        color: #999;
      }
      .cont {
        font-size: 30px;
        color: #07c160;
        flex: 1;
        text-align: center;
      }
    }
    .households_main {
      .flex_block {
        height: 115px;
        position: relative;
        margin-bottom: 18px;
        margin-left: 60px;
        display: flex;
        border-bottom: 1px solid #e6e6e6;
        justify-content: center; /* 相对父元素水平居中 */
        align-items: center; /*  子元素相对父元素垂直居中 */
        .unit {
          width: 34px;
          display: flex;
          position: absolute;
          left: -40px;
          font-size: 28px;
          color: #07c160;
        }
        .head {
          width: 64px;
          height: 64px;
          margin-left: 10px;
          img {
            width: 100%;
            height: 100%;
          }
        }
        .name {
          width: 170px;
          text-align: center;
          font-size: 30px;
        }
        .sex {
          width: 100px;
          font-size: 24px;
          text-align: center;
        }
        .meberCode {
          flex: 1;
          font-size: 24px;
          text-align: center;
          .text {
            color: #999;
            margin-bottom: 8px;
          }
        }
      }
    }
  }
}
</style>

<script>
import headerNav from "@/components/sunVillage/common/header.vue";
import equityHeader from "@/components/sunVillage/equity_header";
export default {
  name: "sunVillageEquity",
  components: { headerNav, equityHeader },
  data() {
    return {};
  },
  mounted() {},
  methods: {
    skip(url) {
      this.$router.push(url);
    },
  },
};
</script>
