<template>
  <div id="index">
    <admin-frame :useTop="false" :usePage="false" :useNav="false">
      <template v-slot:info>
        <van-col span="24" class="menu" v-for="(i, index) in menu" :key="index" @click.native="$router.push(i.router)">
          {{ i.label }}
        </van-col>
      </template>
    </admin-frame>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
import adminFrame from '@common/src/components/mobile-frame/mobile-main.vue';
export default {
  name: 'index',
  props: {},
  components: {
    adminFrame,
  },
  data: function () {
    return {
      menu: [
        // 科研实力
        {
          label: '科研实力-国家数学中心',
          router: '/scientific/mathematics/index',
        },
        {
          label: '科研实力-省重点实验室',
          router: '/scientific/laboratory/index',
        },
        {
          label: '科研实力-院士工作站',
          router: '/scientific/work/index',
        },
        // 创新能力
        {
          label: '创新能力-成果展示',
          router: '/innovate/achieve/index',
        },
        {
          label: '创新能力-学术交流',
          router: '/innovate/learning/index',
        },
        {
          label: '创新能力-科普活动',
          router: '/innovate/popularization/index',
        },
        {
          label: '创新能力-科技服务',
          router: '/innovate/service/index',
        },
        // 科技资讯
        {
          label: '科技资讯-通知通告',
          router: '/science/notice/index',
        },
        {
          label: '科技资讯-学术前沿',
          router: '/science/thefront/index',
        },
        {
          label: '科技资讯-调查调研',
          router: '/science/investigation/index',
        },
        {
          label: '科技资讯-个人中心',
          router: '/science/account/index',
        },
      ],
    };
  },
  async created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  watch: {
    test: {
      deep: true,
      immediate: true,
      handler(val) {},
    },
  },
};
</script>

<style lang="less" scoped>
.menu {
  border: 1px dashed #ccc;
  margin: 0 0 10px 0;
  padding: 10px;
}
</style>
