<template>
  <div id="phontoNews">
    <el-col :span="24" class="info">
      <div class="block">
        <el-carousel height="360px">
          <el-carousel-item
            v-for="(item, index) in photoNews"
            :key="index"
            @click.native="$router.push({ path: '/government/governmentDetail', query: { id: item.id } })"
          >
            <el-image style="width:100%;height:360px;" :src="item.picture"></el-image>
            <p class="title textOver">{{ item.title }}</p>
          </el-carousel-item>
        </el-carousel>
      </div>
    </el-col>
  </div>
</template>

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

<style lang="less" scoped>
p {
  padding: 0;
  margin: 0;
}
.info {
  padding: 20px;
}
/deep/.el-carousel__indicators {
  display: none;
}
.title {
  position: absolute;
  bottom: 0;
  width: 97%;
  height: 30px;
  line-height: 30px;
  padding: 0 10px;
  color: #fff;
  background: #22529a;
}
</style>
