<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 adminFrame from '@common/src/components/mobile-frame/mobile-main.vue';
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'index',
  props: {},
  components: {
    adminFrame,
  },
  data: function () {
    return {
      menu: [
        {
          label: '学术交流-社会服务活动',
          router: '/learning/sociology/index',
        },
        {
          label: '学术交流-技术服务活动',
          router: '/learning/technology/index',
        },
        {
          label: '学术交流-科普活动',
          router: '/learning/science/index',
        },
        {
          label: '学术交流-分析/建议/决策/咨询报告',
          router: '/learning/report/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>
