<template>
  <div class="home_wrapper">
    <header-nav :currentNav="2" returnUrl="/sunVillage/index"></header-nav>
    <sunVillageHeader :serialTag="2"></sunVillageHeader>
    <div class="kanban_main">
      <div class="title_main">
        <div class="subtitle">关注民生</div>
        <div
          class="more"
          @click="skip('/sunVillage/consulting/kanban/focusList')"
        >
          更多 >
        </div>
      </div>
      <div
        class="focus_news"
        @click="skip('/sunVillage/consulting/kanban/focusDesc')"
      >
        <div class="news_img">
          <img src="@/assets/images/sunVillage/4.jpg" />
        </div>
        <div class="news_title">巨峰镇大官庄村2014年1-2月份阳光村务现场</div>
      </div>
      <div class="news_list">
        <ul>
          <li
            class="item_block"
            @click="skip('/sunVillage/consulting/kanban/focusDesc')"
          >
            <div class="title">阳光村务内容01</div>
            <div class="insets">
              <img src="@/assets/images/sunVillage/2.jpg" />
            </div>
          </li>
          <li
            class="item_block"
            @click="skip('/sunVillage/consulting/kanban/focusDesc')"
          >
            <div class="title">阳光村务内容01</div>
            <div class="insets">
              <img src="@/assets/images/sunVillage/2.jpg" />
            </div>
          </li>
        </ul>
      </div>
      <div class="title_main">
        <div class="subtitle">民生办事</div>
        <div
          class="more"
          @click="skip('/sunVillage/consulting/kanban/affairsList')"
        >
          更多 >
        </div>
      </div>
      <div class="livelihood_desc">
        <ul>
          <li
            @click="skip('/sunVillage/consulting/my_consulting?type=affairs')"
          >
            <div class="title">金融问题咨询</div>
            <div class="time">2022-02-25 09:00</div>
          </li>
          <li
            @click="skip('/sunVillage/consulting/my_consulting?type=affairs')"
          >
            <div class="title">金融问题咨询</div>
            <div class="time">2022-02-25 09:00</div>
          </li>
          <li
            @click="skip('/sunVillage/consulting/my_consulting?type=affairs')"
          >
            <div class="title">金融问题咨询</div>
            <div class="time">2022-02-25 09:00</div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
import headerNav from "@/components/sunVillage/common/header.vue";
import sunVillageHeader from "@/components/sunVillage/sunVillage_header";
export default {
  name: "sunVillageKanban",
  components: { headerNav, sunVillageHeader },
  data() {
    return {};
  },
  mounted() {},
  methods: {
    skip(url) {
      this.$router.push(url);
    },
  },
};
</script>

<style scoped lang="scss">
.home_wrapper {
  width: 100%;
  padding-top: 126px;
  min-height: 100vh;
  background: #fff;
  .kanban_main {
    margin: 0 24px;
    .title_main {
      height: 50px;
      position: relative;
      margin-top: 20px;
      display: flex;
      justify-content: space-between;
      &::before {
        width: 8px;
        height: 50px;
        background: #66ccff;
        border-radius: 8px;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 2;
        content: " ";
      }
      &::after {
        width: 100%;
        height: 1px;
        background: #e5e5e5;
        position: absolute;
        left: 0;
        top: 25px;
        content: " ";
      }
      .subtitle {
        position: relative;
        background: #fff;
        height: 50px;
        font-size: 28px;
        z-index: 9;
        margin-left: 8px;
        width: 175px;
        display: flex;
        justify-content: center; /* 相对父元素水平居中 */
        align-items: center; /*  子元素相对父元素垂直居中 */
      }
      .more {
        position: relative;
        background: #fff;
        height: 50px;
        font-size: 28px;
        z-index: 9;
        color: #66ccff;
        width: 120px;
        display: flex;
        justify-content: center; /* 相对父元素水平居中 */
        align-items: center; /*  子元素相对父元素垂直居中 */
      }
    }
    .focus_news {
      margin: 20px 0 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 8px;
        .title {
          padding-left: 8px;
          flex: 1;
          font-size: 28px;
        }
        .insets {
          width: 116px;
          margin-left: 26px;
          height: 116px;
          img {
            width: 100%;
            height: 100%;
          }
        }
      }
    }
    .livelihood_desc {
      padding: 20px;
      li {
        height: 65px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        .title {
          font-size: 28px;
          color: #333;
        }
        .time {
          font-size: 24px;
          color: #bababa;
        }
      }
    }
  }
}
</style>