<template>
  <div class="app-container" ref="apps">
    <div class="titleInput" ref="titleInput">
      <el-input
        placeholder="请输入关键字"
        v-model="input3"
        class="input-with-select"
      >
        <el-button slot="append" icon="el-icon-search"></el-button>
      </el-input>
    </div>
    <div class="peopleContent" >
      <div class="subMan" v-for="item in 10" :key="item">
        <div class="leftSub">
          <div
            class="leftAvatar"
            :style="`background-image:url('${require('../../../../assets/images/profile.jpg')}')`"
          ></div>
          <div class="leftName">
            <div>周爱</div>
            <div class="mainTag">
              <div>10~20岁</div>
              <div>男女不限</div>
              <div>本科以上</div>
            </div>
          </div>
        </div>
        <div class="rightSub">
          <div class="lookDetail">查看</div>
        </div>
      </div>
    </div>
    <div class="pagination" ref="pagination">
      <my-pagination :total="total" @pagesChange="pagesChange"></my-pagination>
    </div>
  </div>
</template>

<script>
import myPagination from "@/views/components/myPagination/index.vue";

export default {
  data() {
    return {
      input3: "",
      total: 0,
      // peopleHeight: 0,
    };
  },
  methods: {
    pagesChange() {},
  },
  components: {
    myPagination,
  },
  created() {
    // this.$nextTick(() => {
    //   this.peopleHeight =
    //     this.$refs.apps.offsetHeight -
    //     80 -
    //     this.$refs.titleInput.offsetHeight -
    //     this.$refs.pagination.offsetHeight;
    //   console.log(this.peopleHeight);
    // });
  },
  mounted() {},
};
</script>

<style lang="scss" scoped>

::v-deep .titleInput .el-input__inner {
  border-right: none;
}
::v-deep .titleInput .el-input-group__append {
  background: #f8414d;
  border: none;
  color: #fff;
}
.titleInput {
  width: 30%;
  margin-bottom: 20px;
}
.mainTag {
  display: flex;
  font-family: "Alibaba-PuHuiTi-Regular";
  & > div {
    margin-right: 5px;
    background-color: rgba(248, 65, 77, 0.06);
    padding: 3px 5px;
    color: #e16a70;
    border-radius: 4px;
  }
}
.peopleContent {
  height: 490px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: flex-start;
  overflow-y: auto;

  .subMan {
    width: 49.2%;
    height: 16.4%;
    background: #fafafa;
    border: 1px solid #f5edeb;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    margin-bottom: 17px;
    padding: 15px;
    .leftSub {
      width: 80%;
      height: 100%;
      display: flex;
      align-items: center;
      .leftAvatar {
        height: 55px;
        width: 55px;
        background-size: 100% 100%;
        border-radius: 10px;
      }
      .leftName {
        margin-left: 15px;
        & > div:nth-of-type(1) {
          font-family: "Alibaba-PuHuiTi-Medium.otf";
          color: #4c4949;
          font-size: 18px;
          margin-bottom: 12px;
        }
      }
    }
    .rightSub {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      .lookDetail {
        width: 50px;
        height: 50px;
        background: #ffffff;
        box-shadow: 0px 0px 15px 0px rgba(77, 161, 254, 0.17);
        border-radius: 50%;
        font-family: "Alibaba-PuHuiTi-Medium.otf";
        font-weight: 400;
        color: #188ffe;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        user-select: none;
      }
    }
  }
}
</style>
