<template>
  <div id="gongzhong">
    <el-col :span="24" class="gongzhong">
      <el-col :span="24" class="title">{{ title }}</el-col>
      <el-col class="context" :span="4" v-for="(item, index) in gongzhongList" :key="index">
        <el-link :underline="false" :href="item.url" target="_blank">
          <el-image class="image" :src="item.pic"></el-image>
          <el-col :span="24" class="pic_title">{{ item.title }}</el-col>
        </el-link>
      </el-col>
    </el-col>
  </div>
</template>

<script>
export default {
  name: 'gongzhong',
  props: {
    gongzhongList: null,
  },
  components: {},
  data: () => ({
    title: '公众参与',
  }),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
.gongzhong {
  height: 240px;
  overflow: hidden;
  padding: 20px;
}
.title {
  font-size: 22px;
  color: #2c3350;
  font-weight: bold;
  margin: 0 0 10px 0;
}
.context {
  width: 185px;
  height: 160px;
  background-color: #f8f8f8;
  margin-right: 10px;
  text-align: center;
  border: 1px solid #dee9f9;
}
.context:last-child {
  margin: 0;
}
.pic_title {
  background-color: #22529a;
  width: 185px;
  line-height: 30px;
  height: 30px;
  font-size: 16px;
  color: #fff;
  margin: 37px 0 0 -1px;
}
.context .image {
  margin: 30px 0 0 0;
}
.context:hover {
  background-color: #dee9f9;
  color: #3981e5;
}
</style>
