<template>
  <div class="index_page">
    <!-- 右侧悬浮 -->
    <div class="slid">
      <div class="item-box">
        <el-tooltip class="item" effect="dark" placement="left-start">
          <div class="tip_img" slot="content">
            <img src="@/assets/image/scanloginqrcode.jpg" alt="" />
          </div>
          <div>
            <img src="@/assets/image/weixin.png" />
            <div class="text">公众号</div>
          </div>
        </el-tooltip>
      </div>
      <div class="item-box">
        <el-tooltip class="item" effect="dark" placement="left-start">
          <div class="tip_img" slot="content">
            <img src="@/assets/image/scanloginqrcode.jpg" alt="" />
          </div>
          <div>
            <img src="@/assets/image/qq.png" />
            <div class="text">QQ群</div>
          </div>
        </el-tooltip>
      </div>
      <div class="item-box">
        <img src="@/assets/image/service.png" />
        <div class="text">在线客服</div>
      </div>
    </div>
    <!-- <div class="img_box">
      <img src="@/assets/image/toubu.png" alt="" />
    </div> -->
    <!-- 整体宽度 -->
    <div class="content">
      <!-- 头部 -->
      <div class="header">
        <div class="login">
          <el-button type="text" @click="handlePage">登录</el-button>
          <i class="mark">|</i>
          <el-button type="text" @click="handlePage">注册</el-button>
        </div>
        <div class="img2_box">
          <img src="@/assets/image/02.png" alt="" />
          <div class="search">
            <el-input v-model="input" placeholder="请输入搜索关键字"></el-input>
            <el-button type="warning">一站搜</el-button>
          </div>
        </div>
      </div>
    </div>
    <!-- ul li 列表 -->
    <div class="uls">
      <div class="lis content">
        <ul>
          <li
            :class="path == item.path ? 'is-active' : ''"
            v-for="item in lisList"
            :key="item.path"
            @click="handlePath(item.path)"
          >
            {{ item.name }}
            <!-- <router-link :to="item.path">
              {{ item.name }}
            </router-link> -->
          </li>
        </ul>
      </div>
    </div>
    <!-- 路由站位 -->
    <div class="content">
      <router-view></router-view>
    </div>
    <div class="my_footer">
      <div style="height: 4px;background: #FFA32C;"></div>
      <div class="footer_one content">
        <p>
          <span>
            <i><img src="@/assets/image/icon1.png" alt=""/></i>
            总浏览量：1020</span
          >
          <span>
            <i><img src="@/assets/image/icon1.png" alt=""/></i>
            今日浏览：1020</span
          >
        </p>
        <div class="footer_two">
          <div class="footer_left">
            <div class="footer_left_one">
              <span class="footer_left_l">版权声明</span>
              <span class="footer_left_r">
                <i><img src="@/assets/image/icon3.png" alt=""/></i>
                客服热线：(周一至周五8:30-18:00)
              </span>
            </div>
            <div class="footer_left_two">
              <span class="footer_left_l">用户协议</span>
            </div>
            <div class="footer_left_three">
              <span class="footer_left_l">意见反馈</span>
              <span class="footer_left_r">
                <i><img src="@/assets/image/icon2.png" alt=""/></i>
                公司地址：安徽省合肥市蜀山区黄山市601号412-414
              </span>
            </div>
          </div>
          <div class="footer_right">
            <div class="item">
              <img src="@/assets/image/scanloginqrcode.jpg" alt="" />
              <div>嘉策公众号</div>
            </div>
            <div class="item">
              <img src="@/assets/image/scanloginqrcode.jpg" alt="" />
              <div>QQ群</div>
            </div>
          </div>
        </div>
        <div class="footer_three">
          <div>
            <span>商务合作</span>
            <span>政策服务</span>
            <span>在线解答</span>
          </div>
          <p>版权服务：合肥嘉策信息技术服务有限公司 皖ICP备45619723号</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'home',
  data() {
    return {
      input: '',
      lisList: [
        {
          path: '/home',
          name: '首页'
        },
        {
          path: '/notice',
          name: '通知公告'
        },
        {
          path: '/demand',
          name: '企业需求'
        },
        {
          path: '/achievements',
          name: '科技成果'
        },
        {
          path: '/declare',
          name: '高企申报'
        },
        {
          path: '/qualifications',
          name: '资质申报'
        },
        {
          path: '/assessment',
          name: '智能评估'
        }
      ],
      path: this.$route.path == '/' ? '/home' : this.$route.path
    };
  },
  methods: {
    handlePage() {
      this.$router.push({ path: '/login' });
    },
    handlePath(path) {
      this.path = path;
      this.$router.push({ path });
    }
  }
};
</script>

<style lang="scss" scoped>
.index_page {
  // padding-top: 200px;
  // .img_box {
  //   width: 100%;
  //   height: 750px;
  //   position: absolute;
  //   top: 0;
  //   left: 0;
  //   z-index: -1;
  // }
  .slid {
    width: 82px;
    height: 246px;
    position: fixed;
    left: 50%;
    border: 1px solid #dcdcdc;
    border-bottom: 0;
    background: #ffffff;
    margin-left: 720px;
    top: 400px;
    .item-box {
      text-align: center;
      padding: 15px 0;
      border-bottom: 1px solid #dcdcdc;
      .text {
        font-size: 16px;
        color: #666;
      }
    }
  }

  .header {
    height: 206px;
    padding: 0 100px;
    background-image: url(../assets/image/01.png);
    .login {
      text-align: right;
      .el-button {
        font-size: 16px;
        color: #4097e7;
      }
      .mark {
        width: 1px;
        color: #dcdcdc;
        margin: 0 14px;
      }
    }
    .img2_box {
      display: flex;
      justify-content: space-between;
      height: 63px;
      margin-top: 75px;
      img {
        width: 392px;
        height: 100%;
      }
      /deep/.el-input--medium .el-input__inner {
        height: 40px;
        line-height: 40px;
        border-radius: 0;
        border: 1px solid #ffa32c;
      }
      .search {
        display: flex;
        height: 40px;
        .el-button {
          border-radius: 0;
          background-color: #ffa32c;
          font-size: 18px;
        }
      }
    }
  }
  .uls {
    background-color: #ffa32c;
    height: 48px;
    line-height: 48px;
    .lis {
      ul {
        margin: 0;
        list-style: none;
        padding-left: 0;
        li {
          float: left;
          padding: 0 50px;
          cursor: pointer;
          color: #fff;
          font-size: 24px;
        }
        li:hover {
          background-color: #3394ff;
        }
        .is-active {
          position: relative;
          background-color: #3394ff;
        }
        .is-active::after {
          content: '';
          display: block;
          width: 0;
          height: 0;
          border-top: 7px solid transparent;
          border-bottom: 7px solid #fff;
          border-left: 7px solid transparent;
          border-right: 7px solid transparent;
          position: absolute;
          bottom: -1px;
          left: 50%;
          transform: translateX(-50%);
        }
      }
    }
  }
  .my_footer {
    .footer_one {
      p {
        text-align: center;
        font-size: 14px;
        color: #666;
        span {
          i {
            margin-right: 3px;
            img {
              vertical-align: middle;
            }
          }
        }
        span:nth-child(2) {
          margin-left: 40px;
        }
      }
    }
    .footer_two {
      border-bottom: 1px solid #dcdcdc;
      display: flex;
      justify-content: space-between;
      align-items: center;
      .footer_left {
        padding: 50px 0;
        .footer_left_two {
          margin: 20px 0;
        }
        .footer_left_l {
          font-size: 18px;
          color: #333;
          margin-right: 30px;
        }
        .footer_left_r {
          i {
            img {
              vertical-align: middle;
            }
          }
        }
      }
      .footer_right {
        display: flex;
        .item {
          font-size: 18px;
          color: #333;
          margin-right: 50px;
          text-align: center;
        }
      }
    }
    .footer_three {
      text-align: center;
      padding: 36px 0;
      div {
        font-size: 16px;
        color: #3394ff;
        span:nth-child(2) {
          margin: 0 39px;
        }
      }
      p {
        font-size: 14px;
        color: #333;
      }
    }
  }
  .el-tabs--border-card {
    border: 0;
  }
  /deep/.el-tabs--border-card > .el-tabs__header {
    background-color: #ffa32c;
    border-bottom: 0;
  }
  /deep/.el-tabs__item {
    color: #fff;
    font-size: 22px;
  }
  /deep/.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
    position: relative;
    color: #fff;
    background-color: #3394ff;
    border-right-color: #3394ff;
    border-left-color: #3394ff;
  }
  /deep/.el-tabs--border-card
    > .el-tabs__header
    .el-tabs__item.is-active::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid #fff;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
  }
  /deep/.el-tabs--border-card
    > .el-tabs__header
    .el-tabs__item:not(.is-disabled):hover {
    color: #fff;
    background-color: #3394ff;
  }
  /deep/.el-tabs__item {
    padding-left: 30px !important;
    padding-right: 30px;
  }
  /deep/.el-tabs__nav-scroll {
    padding: 0 100px;
  }
}
@media (max-width: 1024px) {
  .chart-wrapper {
    padding: 8px;
  }
}
</style>
