<template>
  <div class="usercontent">
    <div class="contentuser">
      <div class="img"><img src="../assets/img/img.png" alt="" /></div>
      <div class="name">{{userInfo.name}}</div>
      <div class="address">{{userInfo.address}}</div>
      <div class="studentNumber">学号：{{userInfo.number}}</div>
      <div class="cardNumber">卡号：{{userInfo.cardId}}</div>
    </div>
      <div class="icon">
        <div><i class="iconfont httpicon-chaxun"></i></div>
        <div><i class="iconfont httpicon-bianji" @click="modify"></i></div>
        <div><i class="iconfont httpicon-shouye"></i></div>
        <div><i class="iconfont httpicon-pingzhengguanli"></i></div>
      </div>
  </div>
</template>

<script>
export default {
    props:['userInfo'],
    methods:{
      modify(){
        this.$emit('func',this.userInfo)
      }
    }
};
</script>

<style scoped>
.usercontent {
  display: inline-block;
  text-align: center;
  min-width: 276px;
}
.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 .img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #ccc;
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
}
.contentuser .img img{width: 100%;}
.contentuser .name {
  font-weight: bold;
  color: #333333;
  line-height: 27px;
  padding-top: 30px;
  font-size: 16px;
}
.contentuser .address {
  font-size: 12px;
  font-weight: 400;
  color: #128bf1;
  line-height: 27px;
  min-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: 25%;
    padding: 6px 0;
    border-right: 1px solid #f2f3f5;
    margin: 4px 0;
}
.icon .iconfont{
    font-size: 25px;
    color: #999;
}
</style>