main.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <template>
  2. <div class="app-back">
  3. <div class="banner">
  4. <el-image style="width: 100vw" :src="`${$imgBase}index/banner/elective_banner.png`" fit="cover"></el-image>
  5. </div>
  6. <div class="fx-cen-cen fx-column pb20">
  7. <index-card-subject-query class="mt20 index-block"/>
  8. <index-card-elective-test class="mt20 index-block"/>
  9. <index-card-career class="mt20 index-block"/>
  10. <!-- 三库 -->
  11. <index-card-colleage class="mt20 index-block"></index-card-colleage>
  12. <!-- 资讯 -->
  13. <index-card-news-single class="mt20 index-block" type="高考政策" morePath="/fuzhu/newGaokaoNews" />
  14. <!-- 大数据选科 -->
  15. <index-card-elective class="mt20 index-block"></index-card-elective>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. import IndexCardCareer from '@/views/index/components/index-card-career'
  21. import IndexCardElectiveTest from '@/views/index/components/index-card-elective-test'
  22. import IndexCardSubjectQuery from '@/views/index/components/index-card-subject-query'
  23. import IndexCardNewsSingle from '@/views/index/components/index-card-news-single'
  24. import IndexCard from '@/views/index/components/index-card'
  25. import IndexCardColleage from '@/views/index/components/index-card-colleage'
  26. import IndexCardElective from '@/views/index/components/index-card-elective'
  27. export default {
  28. components: {
  29. IndexCardNewsSingle,
  30. IndexCardElectiveTest,
  31. IndexCardSubjectQuery,
  32. IndexCardCareer,
  33. IndexCard,
  34. IndexCardElective,
  35. IndexCardColleage
  36. },
  37. data() {
  38. return {
  39. plan: [
  40. {
  41. title: '批次控制线',
  42. img:`${this.$imgBase}index/zhiyuan/zhiyuan_batch.png`,
  43. path: '/zhiyuan/batch'
  44. },
  45. {
  46. title: '投档线',
  47. img:`${this.$imgBase}index/zhiyuan/zhiyuan_tdx.png`,
  48. path: '/zhiyuan/ShiftLine'
  49. },
  50. {
  51. title: '一分一段',
  52. img:`${this.$imgBase}index/zhiyuan/zhiyuan_yfyd.png`,
  53. path: '/zhiyuan/yfyd'
  54. },
  55. {
  56. title: '招生计划',
  57. img:`${this.$imgBase}index/zhiyuan/zhiyuan_plan.png`,
  58. path: '/zhiyuan/enrollPlan'
  59. },
  60. {
  61. title: '高考政策',
  62. img:`${this.$imgBase}index/zhiyuan/zhiyuan_gkzc.png`,
  63. path: '/fuzhu/newGaokaoNews'
  64. },
  65. {
  66. title: '院校查询',
  67. img:`${this.$imgBase}index/zhiyuan/zhiyuan_yxcx.png`,
  68. path: '/new-gaokao/three/UniversitiesColleges'
  69. },
  70. ]
  71. }
  72. },
  73. methods: {
  74. }
  75. }
  76. </script>
  77. <style scoped lang="scss">
  78. .plan_item{
  79. padding: 20px;
  80. border: 1px solid #C5C5C5;
  81. margin-bottom: 20px;
  82. border-radius: 4px;
  83. height: 134px;
  84. .img-wrap{
  85. width: 100%;
  86. height: 100%;
  87. text-align: center;
  88. }
  89. &:hover{
  90. background: #00CCB4;
  91. border: 1px solid #00CCB4;
  92. }
  93. }
  94. @media screen and (min-width: 1440px) {
  95. .index-block {
  96. width: 1350px;
  97. overflow: hidden;
  98. }
  99. }
  100. @media screen and (max-width: 1439px) {
  101. .index-block {
  102. width: calc(100vw - 80px);
  103. overflow: hidden;
  104. }
  105. }
  106. </style>