<template>
  <div id="schoolInfo">
    <el-row>
      <el-col :span="24" class="info">
        <el-col :span="24" class="top">
          高校院所
        </el-col>
        <el-col :span="24" class="list">
          <ul>
            <li class="schoolList" v-for="(item, index) in schoolList" :key="index">
              <el-link :underline="false">
                <el-col :span="8" class="image">
                  <el-image style="width:130px;height:130px;" :src="item.pic"></el-image>
                </el-col>
                <el-col :span="10" class="content">
                  <el-col :span="18" class="title textOver">
                    {{ item.title }}
                  </el-col>
                  <el-col :span="16" class="com textOver"> 高校网站：{{ item.com }} </el-col>
                  <el-col :span="20" class="type textOver"> 高校类别：{{ item.type }} </el-col>
                  <el-col :span="20" class="address textOver"> 高校地址：{{ item.address }} </el-col>
                </el-col>
              </el-link>
            </li>
          </ul>
          <el-col :span="24" class="page">
            <el-pagination
              @size-change="handleSizeChange"
              @current-change="handleCurrentChange"
              :current-page="currentPage"
              layout="total, prev, pager, next, jumper"
              :total="schoolTotal"
            >
            </el-pagination>
          </el-col>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'schoolInfo',
  props: {
    schoolList: null,
    schoolTotal: null,
  },
  components: {},
  data: () => ({
    currentPage: 1,
  }),
  created() {},
  computed: {},
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
  },
};
</script>

<style lang="less" scoped>
ul {
  padding: 0;
  margin: 0;
}
li {
  padding: 0;
  margin: 0;
  list-style: none;
}
.info {
  padding: 0 20px 20px 20px;
}
.top {
  height: 50px;
  line-height: 50px;
  border-bottom: 1px dashed #ccc;
  color: #215299;
  font-size: 18px;
}
.schoolList {
  float: left;
  height: 189px;
  width: 50%;
  border-bottom: 1px dashed #ccc;
}
.schoolList .image {
  width: 130px;
  margin: 20px;
}
.title {
  width: 245px;
  height: 66px;
  line-height: 66px;
  font-size: 20px;
  color: #215299;
  text-align: center;
}
.com {
  width: 245px;
  height: 40px;
  font-size: 16px;
  color: #555555;
}
.type {
  width: 245px;
  height: 40px;
  font-size: 16px;
  color: #555555;
}
.address {
  width: 245px;
  height: 40px;
  font-size: 16px;
  color: #555555;
}
.page {
  padding: 34px 0;
  text-align: center;
}
</style>
