<template>
  <div id="topInfo">
    <el-row>
      <el-col :span="24" class="message" @click.native="$router.push({ path: '/user/personalDetail', query: { id: info.id } })">
        <el-col :span="6" class="name">
          {{ info.name }}
        </el-col>
        <el-col :span="18" class="mess">
          <p>{{ info.school_name }}</p>
          <p>{{ info.faculty }}&nbsp;&nbsp;{{ info.major }}</p>
          <p>民族:{{ info.nation }}&nbsp;性别:{{ info.gender }}&nbsp;QQ:{{ info.qq }}</p>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'topInfo',
  props: {
    info: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
p {
  padding: 0;
  margin: 0;
}
.name {
  text-align: center;
  line-height: 100px;
  font-size: 20px;
  font-family: 微软雅黑;
  font-weight: bold;
}
.mess p {
  padding: 5px 0;
  font-size: 16px;
  color: #333;
}
</style>
