<template>
  <index-card title="选科查询" more-text="我的选科方案" @more="handleMore">
    <index-card-content :list="list" :line-size="2">
      <template #default="{item}">
        <index-image-item v-bind="item"/>
      </template>
    </index-card-content>
  </index-card>
</template>

<script>
import IndexCard from '@/views/index/components/index-card'
import loginCheckMixin from '@/views/components/blocks/index-login-interceptor-mixin'
import transferMixin from '@/components/mx-transfer-mixin'
import IndexCardContent from '@/views/index/components/index-card-content'
import IndexImageItem from '@/views/index/components/index-image-item'

export default {
  mixins: [loginCheckMixin, transferMixin],
  name: 'index-card-subject-query',
  components: { IndexImageItem, IndexCardContent, IndexCard },
  data() {
    return {
      morePath: '/career/subject/myChoice',
      list: [{
        src: require('@/assets/images/index/login/banner_query_major@2x.png'),
        path: '/career/subject/subjectChoice',
        title: '由科目选专业'
      }, {
        src: require('@/assets/images/index/login/banner_query_group@2x.png'),
        path: '/career/subject/majorChoice',
        title: '由专业选科目'
      }]
    }
  },
  methods: {
    async handleMore() {
      await this.loginCheck()
      this.transferTo(this.morePath)
    }
  }
}
</script>

<style scoped>

</style>
