<template>
  <div class="app-container">
    <div class="box">
      <div class="app_top">
        <div class="topa">
          <div class="appa-left">
            <span>></span>
            <span>张的村</span>
          </div>

          <div class="appa_middeo">
            <div>
              <input type="text" class="serch" />
              <img
                src="../../assets/images/Newbusinessentity/0_03.png"
                alt=""
                class="serchimgs"
              />
            </div>
          </div>
          <div class="appa_right">
            <img src="../../assets/images/Newbusinessentity/0_02.png" alt="" />
          </div>
        </div>
        <div class="topb">
          <div class="namesa">您好，王海明</div>
          <div class="Serviceeva">经营主体掌上服务平台</div>
        </div>
        <div class="topc">
          <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
            <van-swipe-item>1</van-swipe-item>
            <van-swipe-item>2</van-swipe-item>
            <van-swipe-item>3</van-swipe-item>
            <van-swipe-item>4</van-swipe-item>
          </van-swipe>
        </div>
      </div>
      <div class="middle">
        <ul class="local-nav">
          <li
            @click="
              $router.push(
                {
                  name: 'newsBulletin',
                },
                () => {},
                () => {}
              )
            "
          >
            <!-- <a href="#"> -->
              <span class="local-nav-icon1 local-nav-icon">
                <img src="../../assets/images/Newbusinessentity/2.jpg" alt="" />
              </span>
              <span class="news">新闻公告</span>
            <!-- </a> -->
          </li>
          <li>
            <a href="#">
              <span class="local-nav-icon2 local-nav-icon">
                <img src="../../assets/images/Newbusinessentity/7.png" alt="" />
              </span>
              <span class="news">项目指南</span>
            </a>
          </li>
          <li>
            <a href="#">
              <span class="local-nav-icon3 local-nav-icon">
                <img
                  src="../../assets/images/Newbusinessentity/book_icon_214994.png"
                  alt=""
                />
              </span>
              <span class="news">政策法规</span>
            </a>
          </li>
          <li
            @click="
              $router.push(
                {
                  name: 'newBusinlistBody',
                },
                () => {},
                () => {}
              )
            "
          >
            <!-- <a href="#"> -->
            <span class="local-nav-icon4 local-nav-icon">
              <img
                src="../../assets/images/Newbusinessentity/box_icon_214997.png"
                alt=""
              />
            </span>
            <span class="news">主体名录</span>
            <!-- </a> -->
          </li>
          <li>
            <a href="#">
              <span class="local-nav-icon5 local-nav-icon">
                <img
                  src="../../assets/images/Newbusinessentity/card_credit_icon_214769.png"
                  alt=""
                />
              </span>
              <span class="news">金融服务</span>
            </a>
          </li>
          <li>
            <a href="#">
              <span class="local-nav-icon6 local-nav-icon">
                <img
                  src="../../assets/images/Newbusinessentity/dashboard_icon_2148461.png"
                  alt=""
                />
              </span>
              <span class="news">农技服务</span>
            </a>
          </li>
          <li>
            <a href="#">
              <span class="local-nav-icon7 local-nav-icon">
                <img
                  src="../../assets/images/Newbusinessentity/66_03.jpg"
                  alt=""
                />
              </span>
              <span class="news">价格看板</span>
            </a>
          </li>
          <li>
            <a href="#">
              <span class="local-nav-icon8 local-nav-icon">
                <img
                  src="../../assets/images/Newbusinessentity/cube_icon_2150142.png"
                  alt=""
                />
              </span>
              <span class="news">培训活动</span>
            </a>
          </li>
        </ul>
      </div>
      <div class="bottom">
        <div class="bttoma">
          <div class="latestnews">最新资讯</div>
          <div class="more">更多</div>
        </div>
        <div class="bottomb">
          <ul class="content">
            <li>
              <a href="#">
                <span class="content-icon"></span>
                <span class="Agricultural">农业服务App上线通知！</span>
                <span class="Comprehensive"
                  >新型经营主体综合服务APP今日上线</span
                >
              </a>
            </li>
            <li>
              <a href="#">
                <span class="content-icon"></span>
                <span class="Agricultural">农业服务App上线通知！</span>
                <span class="Comprehensive"
                  >新型经营主体综合服务APP今日上线</span
                >
              </a>
            </li>
            <li>
              <a href="#">
                <span class="content-icon"></span>
                <span class="Agricultural">农业服务App上线通知！</span>
                <span class="Comprehensive"
                  >新型经营主体综合服务APP今日上线</span
                >
              </a>
            </li>
            <li>
              <a href="#">
                <span class="content-icon"></span>
                <span class="Agricultural">农业服务App上线通知！</span>
                <span class="Comprehensive"
                  >新型经营主体综合服务APP今日上线</span
                >
              </a>
            </li>
          </ul>
        </div>
      </div>
      <!-- <div class="fotter">
        <van-tabbar v-model="active" class="aa">
          <van-tabbar-item name="home" icon="home-o">全部</van-tabbar-item>
          <van-tabbar-item name="search" icon="search">供求</van-tabbar-item>
          <van-tabbar-item name="friends" icon="friends-o">我的</van-tabbar-item>
        </van-tabbar>
      </div> -->
      <tabbar></tabbar>
    </div>
  </div>
</template>
<script>
import tabbar from "./conter.vue";
export default {
  components: {
    tabbar,
  },
  data() {
    return {
      active: 0,
    };
  },
  methods: {
    backHistory() {
      this.$router.go(-1);
    },
  },
};
</script>

<style scoped lang="scss">
.box {
  width: 100%;
}
.app_top {
  position: relative;
  background: red;
  width: 100%;
  height: 6.5rem;
  overflow: hidden;
  background: url("../../assets/images/Newbusinessentity/0_01.jpg") no-repeat;

  .topa {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 0.3rem;

    .appa-left {
      height: 0.8rem;
      background: 3rem;
      margin-left: 0.2rem;
      color: white;
      line-height: 0.7rem;
    }
    .appa_right {
      margin-top: 0.2rem;
      margin-right: 0.5rem;
    }
  }

  .topb {
    .namesa {
      font-size: 0.4rem;
      margin: 0.4rem 0 0.3rem 0.2rem;
      font-weight: bold;
    }
    .Serviceeva {
      font-weight: normal;
      font-size: 0.34rem;
      margin-left: 0.2rem;
    }
  }
  .topc {
    width: 8.5rem;
    height: 3.3rem;
    position: absolute;

    border-radius: 0.3rem;
    bottom: 0.2rem;
    left: 0.8rem;
    .my-swipe .van-swipe-item[data-v-768abd1c] {
      margin-top: 0.2rem;
      line-height: 3rem;
      border-radius: 0.3rem;
    }
  }
}
.appa_middeo {
  position: relative;
  .serch {
    background: white;
    width: 6rem;
    height: 0.8rem;
    border-radius: 5rem;
  }
  .serchimgs {
    position: absolute;
    left: 0.5rem;
    top: 0.2rem;
  }
}
.my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 150px;
  text-align: center;
  background-color: #45d385;
}

.middle {
  width: 8.5rem;
  height: 4rem;
  // background: red;
  margin: 0 auto;

  .local-nav {
    display: flex;
    flex-wrap: wrap;

    li {
      text-align: center;
      margin: 0 auto;
      flex: 23%;
      display: block;
      width: 2rem;
      height: 2rem;
      // background: blue;
      .local-nav-icon {
        position: relative;
        display: block;
        width: 1.3rem;
        height: 1.3rem;
        background-size: 1.3rem;
        margin-left: 0.4rem;
      }
      .local-nav-icon1 {
        // position: relative;
        // display: block;
        // width: 1.3rem;
        // height: 1.3rem;
        background: url("../../assets/images/Newbusinessentity/1.png") no-repeat;
        // background-size: 1.3rem;
        // margin-left: 0.4rem;
        // img {
        //   position: absolute;
        //   top: 0.3rem;
        //   left: 0.3rem;
        // }
        img {
          position: absolute;
          top: 0.3rem;
          left: 0.3rem;
        }
      }
      .local-nav-icon2 {
        background: url("../../assets/images/Newbusinessentity/1731.png")
          no-repeat;

        img {
          position: absolute;
          top: 0.13rem;
          right: 0.13rem;
        }
      }

      .local-nav-icon3 {
        background: url("../../assets/images/Newbusinessentity/17312.png")
          no-repeat;

        img {
          position: absolute;
          top: 0.13rem;
          right: 0.13rem;
        }
      }
      .local-nav-icon4 {
        background: url("../../assets/images/Newbusinessentity/17313.png")
          no-repeat;

        img {
          position: absolute;
          top: 0.13rem;
          right: 0.13rem;
        }
      }
      .local-nav-icon5 {
        background: url("../../assets/images/Newbusinessentity/17314.png")
          no-repeat;

        img {
          position: absolute;
          top: 0.19rem;
          right: 0.07rem;
        }
      }

      .local-nav-icon6 {
        background: url("../../assets/images/Newbusinessentity/17315.png")
          no-repeat;

        img {
          position: absolute;
          top: 0.13rem;
          right: 0.13rem;
        }
      }

      .local-nav-icon7 {
        background: url("../../assets/images/Newbusinessentity/17316.png")
          no-repeat;

        img {
          position: absolute;
          top: 0.25rem;
          right: 0.28rem;
        }
      }
      .local-nav-icon8 {
        background: url("../../assets/images/Newbusinessentity/17317.png")
          no-repeat;

        img {
          position: absolute;
          top: 0.17rem;
          right: 0.17rem;
        }
      }

      .news {
        display: inline-block;
        font-size: 0.35rem;
        margin-top: 0.1rem;
        color: black;
      }
    }
  }
}
.bottom {
  width: 100%;
  height: 9.7rem;

  .bttoma {
    width: 8.5rem;
    height: 1.5rem;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;

    .latestnews {
      font-size: 0.5rem;
      font-weight: bold;
      margin-left: 0.23rem;
    }
    .more {
      font-size: 0.32rem;
      color: #adadad;
      margin-top: 0.1rem;
      margin-right: 0.23rem;
    }
  }
}
.bottomb {
  width: 8.5rem;
  margin: 0 auto;

  .content {
    display: block;
    width: 8.5rem;
    display: flex;
    flex-wrap: wrap;

    li {
      width: 4rem;
      flex: 1;
    }
    .Agricultural {
      display: block;
      color: #000000;
      width: 4rem;
      font-size: 0.34rem;
      font-weight: normal;
    }
    .Comprehensive {
      display: block;
      width: 4rem;
      color: #7c7c7c;
    }
    .content-icon {
      display: block;
      width: 4.4rem;
      height: 2.3rem;
      background: url("../../assets/images/Newbusinessentity/3_03.jpg")
        no-repeat;
      background-size: 4rem;
    }
  }
}
.fotter {
  margin-top: 1rem;
}
// .aa{

//   position: absolute;
//     bottom: -0.8rem;
// }
</style>