main.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <template>
  2. <!-- 题库中心首页 -->
  3. <div class="container">
  4. <div class="banner">
  5. <el-image style="width: 100vw" :src="require('@/assets/images/fuzhu_banner.png')" fit="fill"></el-image>
  6. </div>
  7. <div class="content">
  8. <index-card title="新高考政策" more-text="更多" class="mb20">
  9. </index-card>
  10. <index-card title="资源库" class="mb20">
  11. </index-card>
  12. <index-card title="学习技巧" more-text="更多" class="mb20"></index-card>
  13. <index-card title="高考名词" class="mb20"></index-card>
  14. </div>
  15. </div>
  16. </template>
  17. <script>
  18. import IndexCard from '@/views/index/components/index-card.vue'
  19. import MxImageWrap from '@/views/questioncenter/components/main-card/mx-image-wrap.vue'
  20. import { mapGetters } from 'vuex'
  21. import store from '@/store'
  22. export default {
  23. components: { IndexCard, MxImageWrap },
  24. data() {
  25. return {
  26. library: [
  27. {
  28. title: '个人资源库',
  29. img: require('@/assets/images/personal_library.png'),
  30. path: '/personalDatabase/personalResources/index'
  31. },
  32. {
  33. title: '校本资源库',
  34. img: require('@/assets/images/school_library.png'),
  35. path: '/personalDatabase/schoolResources/index'
  36. },
  37. {
  38. title: '云库',
  39. img: require('@/assets/images/cloud_library.png'),
  40. path: '/personalDatabase/cloudTank/index'
  41. },
  42. ],
  43. }
  44. },
  45. methods: {
  46. }
  47. }
  48. </script>
  49. <style scoped lang="scss">
  50. .content {
  51. width: 70%;
  52. margin: 0 auto;
  53. padding-bottom: 20px;
  54. margin-top: 20px;
  55. }
  56. .container {
  57. background: #f5f4f9;
  58. }
  59. </style>