<template>
  <div class="home_wrapper">
    <header-nav :headings="headingsTitle" :currentNav="1"></header-nav>
    <div class="navigation_main">
      <!-- <div class="flex_wrap current">村务公开</div>
      <div class="flex_wrap">党务公开</div>
      <div class="flex_wrap">政务公开</div> -->
      <div
        class="flex_wrap"
        v-for="(item, index) in navList"
        :key="index"
        :class="[navIndex == index ? 'current' : '']"
        @click="navIndex = index"
      >
        {{ item }}
      </div>
    </div>
    <div class="focus_news">
      <div class="news_img" @click="skip('/sunVillage/public/details')">
        <img src="@/assets/images/sunVillage/4.jpg" />
      </div>
      <div class="news_title" @click="skip('/sunVillage/public/details')">
        巨峰镇大官庄村2014年1-2月份阳光村务现场
      </div>
    </div>
    <div class="news_list">
      <ul>
        <li class="item_block" @click="skip('/sunVillage/public/details')">
          <div class="title">阳光村务内容01</div>
          <div class="insets">
            <img src="@/assets/images/sunVillage/2.jpg" />
          </div>
        </li>
        <li class="item_block" @click="skip('/sunVillage/public/details')">
          <div class="title">阳光村务内容01</div>
          <div class="insets">
            <img src="@/assets/images/sunVillage/2.jpg" />
          </div>
        </li>
      </ul>
    </div>
  </div>
</template>

<style scoped lang="scss">
.home_wrapper {
  width: 100%;
  padding-top: 198px;
  min-height: 100vh;
  background: #fff;
  .navigation_main {
    margin: 0 24px;
    display: flex;
    justify-content: space-between;
    padding: 30px 0 10px;
    .flex_wrap {
      height: 80px;
      background: #f8f8f8;
      color: #07c160;
      font-size: 32px;
      display: flex;
      justify-content: center;
      align-items: center;
      width: 216px;
      border-radius: 12px;
      &.current {
        color: #fff;
        background: #07c160;
      }
    }
  }
  .focus_news {
    margin: 20px 24px 16px;
    .news_img {
      width: 702px;
      height: 256px;
      img {
        width: 100%;
        height: 100%;
      }
    }
    .news_title {
      font-size: 24px;
      margin-top: 16px;
    }
  }
  .news_list {
    li {
      display: flex;
      height: 146px;
      justify-content: center;
      align-items: center;
      padding: 0 33px;
      .title {
        padding-left: 8px;
        flex: 1;
        font-size: 28px;
      }
      .insets {
        width: 116px;
        margin-left: 26px;
        height: 116px;
        img {
          width: 100%;
          height: 100%;
        }
      }
    }
  }
}
</style>

<script>
import headerNav from "@/components/sunVillage/common/header.vue";
export default {
  name: "sunVillagePublic",
  components: { headerNav },
  data() {
    return {
      headingsTitle: "三务公开",
      navList: ["村务公开", "党务公开", "政务公开"],
      navIndex: 0,
    };
  },
  mounted() {},
  methods: {
    skip(url) {
      this.$router.push(url);
    },
  },
};
</script>
