<template>
  <div id="newmenu">
    <el-menu :default-active="activeIndex" class="el-menu-demo" mode="horizontal" @select="handleSelect">
      <el-menu-item index="1">新闻动态</el-menu-item>
      <el-menu-item index="2" @click="result">成果展示</el-menu-item>
      <el-menu-item index="3">计算服务</el-menu-item>
      <el-menu-item index="4">交流活动</el-menu-item>
      <el-menu-item index="5" @click="toPartisan">党建学院</el-menu-item>
    </el-menu>
  </div>
</template>

<script>
export default {
  name: 'newmenu',
  props: {},
  components: {},
  data: () => ({
    activeIndex: '1',
    activeIndex2: '1',
  }),
  created() {},
  computed: {},
  methods: {
    handleSelect() {},
    toPartisan() {
      this.$router.push({ path: '/partisan/index' });
    },

    result() {
      this.$router.push({ path: '/result/index' });
    },
  },
};
</script>

<style lang="less" scoped>
.menu {
  height: 70px;
  overflow: hidden;
}

/deep/.el-menu--horizontal > .el-menu-item {
  float: left;
  height: 60px;
  line-height: 60px;
  margin: 0;
  color: #909399;
  width: 240.5px;
  text-align: center;
  float: left;
  width: 238px;
  text-align: center;
  border-right: 2px solid #76bdfe;
  font-size: 22px;
  color: #fff;
}

/deep/.el-menu--horizontal > .el-menu-item:nth-child(5) {
  float: left;
  height: 60px;
  line-height: 60px;
  margin: 0;
  color: #fff;
  width: 240px;
  text-align: center;
  float: left;
  width: 238px;
  text-align: center;
  border: none;
  font-size: 22px;
}

/deep/.el-menu-item:hover {
  background: #215299 !important;
  color: #fff !important;
  border: none;
  font-size: 22px !important;
  border-right: 2px solid #76bdfe;
}

/deep/.el-menu--horizontal > .el-menu-item:first-child.is-active {
  background: #215299;
  border: none;
  border-right: 2px solid #76bdfe;
  color: #fff;
}

/deep/.el-menu--horizontal > .el-menu-item:last-child.is-active {
  background: #215299;
  border: none;
  color: #fff;
}

/deep/.el-menu--horizontal > .el-menu-item.is-active {
  background: #215299;
  border: none;
  color: #fff;
  border-right: 2px solid #76bdfe;
  // border-left: 2px solid #76bdfe;
}

/deep/.el-menu.el-menu--horizontal {
  border-bottom: none;
  background: none;
}

/deep/.el-menu--horizontal > .el-menu-item {
  border-bottom: none;
}
</style>
