<template>
  <div class="usercontent">
    <div class="contentuser">
      <div class="img"><img src="../assets/img/houseing.png" alt="" /></div>
      <div class="name">{{ userInfo.name }}</div>
      <div class="address">{{ userInfo.address }}</div>
      <ul class="rhlist">
        <li class="rhli">
          <div>{{userInfo.checkIn}}</div>
          <div>入住</div>
        </li>
        <li class="rhli">
          <div>{{userInfo.houseType}}</div>
          <div>户型</div>
        </li>
        <li class="rhli">
          <div>{{userInfo.area}}</div>
          <div>面积</div>
        </li>
      </ul>
    </div>
    <div class="icon">
      <div><i class="iconfont httpicon-chaxun"></i></div>
      <div><i class="iconfont httpicon-bianji"></i></div>
      <div><i class="iconfont httpicon-shanchu"></i></div>
      <div><i class="iconfont httpicon-mensuo1"></i></div>
      <div><i class="iconfont httpicon-shouye"></i></div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["userInfo"],
};
</script>

<style scoped>
li{list-style: none;}
.usercontent {
  display: inline-block;
  text-align: center;
  width: 300px;
}
.contentuser {
  cursor: pointer;
  background: #fff;
  margin-top: 50px;
  position: relative;
  box-shadow: 0px 0px 9px 0px rgba(6, 6, 6, 0.06);
  border-radius: 6px 6px 0 0;
  padding: 20px;
}
.contentuser .name {
  font-weight: bold;
  color: #333333;
  line-height: 27px;
  font-size: 16px;
}
.contentuser .address {
  font-size: 12px;
  font-weight: 400;
  color: #128bf1;
  line-height: 27px;
}
.contentuser .studentNumber,
.contentuser .cardNumber {
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  line-height: 27px;
}
.icon {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 9;
  border-top: 1px solid #f2f3f5;
  border-radius: 0 0 6px 6px;
}
.icon > div {
  width: 20%;
  padding: 6px 0;
  border-right: 1px solid #f2f3f5;
  margin: 4px 0;
}
.icon .iconfont {
  font-size: 25px;
  color: #999;
}
.rhlist{display: flex;justify-content: space-around;margin-top: 10px;}
.rhlist .rhli{width: 33.33%;font-size: 14px;}
.rhlist .rhli>div{line-height: 20px;}
.rhlist .rhli>div:nth-child(1){color: #333;}
.rhlist .rhli>div:nth-child(2){color: #999;}
</style>