<template>
  <div id="colleges">
    <el-row>
      <el-col :span="24" class="search">
        <el-col :span="12" class="select">
          <el-select v-model="region" placeholder="请选择搜索条件">
            <el-option label="全部类型" value="zhengwu"></el-option>
            <el-option label="重本大学" value="zhongben"></el-option>
            <el-option label="二级本科" value="erji"></el-option>
            <el-option label="三级本科" value="sanji"></el-option>
            <el-option label="高等专科" value="zhuanke"></el-option>
          </el-select>
        </el-col>
        <el-col :span="12" class="left">
          <el-col :span="19" class="input"><el-input v-model="inputs" placeholder="请输入名称"></el-input></el-col>
          <el-col :span="5" class="btn">
            <i class="el-icon-search"></i>
            <span>搜索</span>
          </el-col>
        </el-col>
      </el-col>
      <el-col :span="24" class="info">
        <el-col :span="24" class="infoTop">
          {{ columnTitle }}
        </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="total"
            >
            </el-pagination>
          </el-col>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'colleges',
  props: {
    schoolList: null,
    columnTitle: null,
  },
  components: {},
  data: () => ({
    region: '',
    inputs: '',
    title: '高校院所',
    currentPage: 1,
    total: 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;
}
.search {
  height: 60px;
  margin: 0 0 10px 0;
}
.search .left {
  background: #fff;
  height: 60px;
  padding: 10px;
  width: 470px;
  margin: 0 10px 0 0;
  border-radius: 0px;
}
.search .left:last-child {
  margin: 0;
}
.search .btn {
  height: 40px;
  line-height: 40px;
}
/deep/.search .btn .el-icon-search {
  font-size: 25px;
  font-weight: bold;
  color: blue;
  padding: 0 10px;
  float: left;
  margin: 7px 0 0 0;
}
.search .btn span {
  font-size: 16px;
  color: #215199;
  font-weight: bold;
}
/deep/.el-input__inner {
  background: #f3f3f3;
  border: none;
  border-radius: 0;
}
.search .select {
  background: #fff;
  height: 60px;
  padding: 10px;
  width: 470px;
  margin: 0 10px 0 0;
}
.el-select {
  width: 450px;
}
.info {
  min-height: 530px;
  overflow: hidden;
  background-color: #fff;
  padding: 0 20px;
}
.infoTop {
  height: 60px;
  line-height: 60px;
  border-bottom: 1px dashed #ccc;
  font-size: 22px;
  color: #215299;
}
.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>
