EventReview.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <script setup>
  2. import { ref } from 'vue';
  3. import activeImg1 from '../../assets/img/active1.png'
  4. import activeImg2 from '../../assets/img/active2.png'
  5. import activeImg3 from '../../assets/img/active3.png'
  6. const eventReviewData = ref([
  7. {
  8. id: 0,
  9. title: "省级活动",
  10. imgList: [
  11. {
  12. imgSrc: activeImg1,
  13. content: "广东省人工智能科创教育领航教师培训"
  14. }
  15. ]
  16. },
  17. {
  18. id: 1,
  19. title: "市级活动",
  20. imgList: [
  21. {
  22. imgSrc: activeImg2,
  23. content: "2023深圳市首批未来教育基地学校骨干教师培训"
  24. }
  25. ]
  26. },
  27. {
  28. id: 2,
  29. title: "区级活动",
  30. imgList: [
  31. {
  32. imgSrc: activeImg3,
  33. content: "成都市成华区2023年中小学教师数字素养和人工智能教育素养提升培训"
  34. }
  35. ]
  36. },
  37. ]);
  38. </script>
  39. <template>
  40. <div class="event-review">
  41. <div class="content">
  42. <h2>教师培训活动回顾</h2>
  43. <div class="event-review-content" v-for="item in eventReviewData">
  44. <span>{{ item.title }}</span>
  45. <div v-for="i in item.imgList">
  46. <img :src="i.imgSrc" alt="">
  47. <p>{{ i.content }}</p>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </template>
  53. <style scoped lang="scss">
  54. .event-review {
  55. background-color: #F3F7FD;
  56. padding: 72px 0;
  57. .event-review-content {
  58. span {
  59. display: inline-block;
  60. margin-top: 80px;
  61. position: relative;
  62. font-size: 24px;
  63. color: #000;
  64. font-weight: 500;
  65. }
  66. span:before {
  67. content: "";
  68. position: absolute;
  69. width: 24px;
  70. height: 24px;
  71. background: url("../../assets/img/activeLeft.png");
  72. left: -30px;
  73. top: 5px;
  74. }
  75. span:after {
  76. content: "";
  77. position: absolute;
  78. width: 24px;
  79. height: 24px;
  80. background: url("../../assets/img/activeRight.png");
  81. right: -30px;
  82. top: 5px;
  83. }
  84. div {
  85. padding: 24px 0;
  86. p {
  87. margin-top: 24px;
  88. }
  89. img {
  90. width: 100%;
  91. }
  92. }
  93. }
  94. }
  95. </style>