index-card-test-news.vue 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <el-row>
  3. <el-col :span="16">
  4. <index-card simple title="我的测评">
  5. <el-row :gutter="12">
  6. <el-col :span="12" @click.native="goCareerTest">
  7. <el-image :src="require('@/assets/images/index/login/career-test-bg.png')" class="pointer rd4"/>
  8. </el-col>
  9. <el-col :span="12" @click.native="goElectiveTest">
  10. <el-image :src="require('@/assets/images/index/login/elective-test-bg.png')" class="pointer rd4"/>
  11. </el-col>
  12. <el-col :span="24" class="mt12" @click.native="goElectiveQuery">
  13. <el-image :src="require('@/assets/images/index/login/elective-query-bg.png')" class="pointer rd4"/>
  14. </el-col>
  15. </el-row>
  16. </index-card>
  17. </el-col>
  18. <el-col :span="8" class="pl20">
  19. <index-card-top v-bind="topOverride" style="height: 410px" />
  20. </el-col>
  21. </el-row>
  22. </template>
  23. <script>
  24. import IndexCard from "@/views/index/components/index-card.vue";
  25. import IndexCardTop from "@/views/index/components/index-card-top.vue";
  26. import IndexLoginInterceptorMixin from "@/views/index/blocks/index-login-interceptor-mixin";
  27. export default {
  28. name: "index-card-test-news",
  29. components: {IndexCardTop, IndexCard},
  30. mixins: [IndexLoginInterceptorMixin],
  31. data() {
  32. return {
  33. topOverride: {
  34. title: '生涯资讯',
  35. listSpace: 10,
  36. newsQuery: {
  37. pageSize: 8,
  38. tag: '',
  39. type: '生涯资讯'
  40. },
  41. more: '查看全部',
  42. morePath: '/new-gaokao/volunteering_syzx'
  43. }
  44. }
  45. },
  46. methods: {
  47. async goElectiveQuery() {
  48. await this.loginCheck()
  49. this.$router.push('/new-gaokao/careerSubjectIndex')
  50. },
  51. async goElectiveTest() {
  52. await this.loginCheck()
  53. this.$router.push('/new-gaokao/myTest/testSelectSubject')
  54. },
  55. async goCareerTest() {
  56. await this.loginCheck()
  57. this.$router.push('/new-gaokao/myTest/myTest/CareerEva')
  58. }
  59. }
  60. }
  61. </script>
  62. <style scoped>
  63. </style>