<template>
  <div id="messFabu">
    <el-row>
      <el-col :span="24" class="info">
        <el-col :span="24" class="topInfo">
          <el-col :span="20" class="left">{{ title }}</el-col>
          <el-col :span="4" class="more">
            <el-link :underline="false" class="btn">我要发布</el-link>
            <el-link :underline="false"><el-image :src="more"></el-image></el-link>
          </el-col>
        </el-col>
        <el-col :span="24" class="list">
          <ul>
            <li v-for="(item, index) in messList" :key="index">
              <el-link :underline="false">
                <el-image style="width:185px;height:247px;" :src="item.pic"></el-image>
                <p class="title textOver">{{ item.title }}</p>
              </el-link>
            </li>
          </ul>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'messFabu',
  props: {
    messList: null,
  },
  components: {},
  data: () => ({
    title: '信息发布',
    more: require('@/assets/更多.png'),
  }),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
ul {
  padding: 0;
  margin: 0;
}
li {
  padding: 0;
  margin: 0;
  list-style: none;
}
p {
  padding: 0;
  margin: 0;
}
.info {
  width: 100%;
  height: 380px;
  overflow: hidden;
  padding: 20px;
  background-color: #fff;
}
.topInfo {
  height: 30px;
  line-height: 30px;
  margin: 0 0 10px 0;
}
.topInfo .left {
  font-size: 22px;
  color: #22529a;
  font-weight: bold;
}
.topInfo .more {
  height: 30px;
  text-align: right;
  padding: 6px 0;
}
.topInfo .more .btn {
  position: absolute;
  width: 60px;
  right: 50px;
  top: 18px;
  font-size: 14px;
  color: #22529a;
  font-weight: bold;
}
.list {
  height: 300px;
  overflow: hidden;
}
.list ul li {
  float: left;
  width: 185px;
  height: 300px;
  margin: 0 10px 0 0;
}
.list ul li:last-child {
  margin: 0;
}
.list ul li .title {
  float: left;
  width: 175px;
  font-size: 14px;
  color: #215299;
  text-align: center;
  margin: -4px 0 0px 0;
  background: #f3f3f3;
  height: 30px;
  line-height: 30px;
  padding: 0 5px;
}
</style>
