main.vue 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <template>
  2. <div class="app-back">
  3. <div class="index-banner" :style="bannerStyle" />
  4. <div class="fx-column fx-cen-cen pb20">
  5. <!-- 高考政策-->
  6. <index-card-gksp class="mt20 index-block"></index-card-gksp>
  7. <index-news-top-wrapper class="mt20 index-block"/>
  8. <!-- 学习技巧-->
  9. <index-card-gktf class="mt20 index-block"></index-card-gktf>
  10. <index-card title="高考名词" class="mt20 index-block">
  11. <div class="fx-row nounList">
  12. <div v-for="item in nounList" class="pointer" @click="$router.push(item.path)">
  13. <el-image :src="item.img"></el-image>
  14. <p class="text-center">{{item.title}}</p>
  15. </div>
  16. </div>
  17. </index-card>
  18. <index-card-news-single class="mt20 index-block" type="单招志愿" :morePath="{name: 'NewsSingle'}" />
  19. </div>
  20. </div>
  21. </template>
  22. <script>
  23. import IndexCard from '@/views/index/components/index-card.vue'
  24. import IndexNewsTopWrapper from '@/views/index/components/index-news-top-wrapper'
  25. import IndexCardGksp from '@/views/index/components/index-card-gksp'
  26. import IndexCardGktf from '@/views/index/components/index-card-gktf'
  27. import { list } from '@/api/webApi/career-other'
  28. import IndexCardNewsSingle from '@/views/index/components/index-card-news-single'
  29. export default {
  30. components: { IndexCard, IndexNewsTopWrapper, IndexCardGksp, IndexCardGktf,IndexCardNewsSingle },
  31. created() {
  32. list().then(res => {
  33. this.nounList.map(item => {
  34. item.path = '/career/gkmc/detail?id=' + res.rows.find(row => row.type == item.title).children[0].id
  35. })
  36. console.log(this.nounList)
  37. })
  38. },
  39. data() {
  40. return {
  41. bannerStyle: {
  42. backgroundImage: `url(${this.$imgBase}2023/index/banner/assistant-banner.png)`,
  43. height: '300px'
  44. },
  45. nounList: [
  46. {
  47. title: '大学',
  48. img:`${this.$imgBase}index/fuzhu/noun_dx.png`,
  49. },
  50. {
  51. title: '高考政策',
  52. img:`${this.$imgBase}index/fuzhu/noun_gkzc.png`,
  53. },
  54. {
  55. title: '专业',
  56. img:`${this.$imgBase}index/fuzhu/noun_zy.png`,
  57. },
  58. {
  59. title: '志愿填报',
  60. img:`${this.$imgBase}index/fuzhu/noun_zytb.png`,
  61. },
  62. {
  63. title: '招生录取',
  64. img:`${this.$imgBase}index/fuzhu/noun_zslq.png`,
  65. },
  66. {
  67. title: '分数线',
  68. img:`${this.$imgBase}index/fuzhu/noun_fsx.png`,
  69. }
  70. ]
  71. }
  72. },
  73. methods: {}
  74. }
  75. </script>
  76. <style scoped lang="scss">
  77. .nounList {
  78. >div{
  79. margin-right: 72px;
  80. &:hover{
  81. color: #47C6A2;
  82. }
  83. }
  84. }
  85. </style>