<template>
  <div id="menu">
    <el-row>
      <el-col :span="24" class="menu">
        <div class="w_1200">
          <el-menu :default-active="activeIndex" mode="horizontal" router>
            <el-menu-item index="kjzx">科技资讯</el-menu-item>
            <el-menu-item index="kjpx">科技培训</el-menu-item>
            <el-menu-item index="kjzy">科技资源</el-menu-item>
            <el-menu-item index="kjfw">科技服务</el-menu-item>
          </el-menu>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  name: 'menus',
  props: {},
  components: {},
  data: function() {
    return {
      activeIndex: '1',
    };
  },
  created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
  },
};
</script>

<style lang="less" scoped>
.w_1200 {
  width: 1200px;
  margin: 0 auto;
}
/deep/.el-menu {
  background-color: #0000004f;
}
/deep/.el-menu.el-menu--horizontal {
  border: 0;
}
/deep/.el-menu--horizontal > .el-menu-item.is-active {
  border-bottom: 0;
}
/deep/.el-menu-item {
  padding: 0;
}
/deep/.el-menu--horizontal > .el-menu-item {
  width: 300px;
  height: 70px;
  line-height: 70px;
  font-size: 22px;
  font-family: '微软雅黑';
  color: #ffffff;
  text-align: center;
  border-right: 2px solid #76bdfe;
}
/deep/.el-menu--horizontal > .el-menu-item:last-child {
  border-right: 0;
}
/deep/.el-menu--horizontal .el-menu-item:not(.is-disabled):focus {
  color: #fff;
}
/deep/.el-menu--horizontal .el-menu-item:not(.is-disabled):hover {
  color: #fff;
}
/deep/.el-menu--horizontal > .el-menu-item:not(.is-disabled):focus,
.el-menu--horizontal > .el-menu-item:not(.is-disabled):hover,
.el-menu--horizontal > .el-submenu .el-submenu__title:hover {
  background-color: #215299;
}
</style>
