LessonList.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. <template>
  2. <div class="container">
  3. <!--<div class="search">
  4. <DatePicker type="daterange" placement="bottom-end" placeholder="选择起止时间" style="width: 200px"></DatePicker>
  5. <Button>搜索</Button>
  6. </div>-->
  7. <div class="activities">
  8. <div class="activity" v-for="(item,index) in lessons" @click="handleLessonClick(item.rowKey)">
  9. <div>
  10. <div class="img-box">
  11. <span class="state" style="background: rgb(130, 147, 166); visibility: visible;">{{item.data.activityStatusTip}}</span>
  12. <!--<img :src="getThumb(item.rowKey)" alt="">-->
  13. <div class="lesson-image">
  14. <p style="font-size:24px">高新区智慧课堂优秀课例</p>
  15. <p style="font-size:16px;margin:5px 0">{{item.data.parentGradeName}}</p>
  16. <p style="font-size:28px;">《 {{item.data.parentProjectName}} 》</p>
  17. <p style="font-size:16px;margin-top:8px;">{{item.data.schoolName}} {{item.data.speaker}}教师 执教</p>
  18. <p style="font-size:16px;margin-top:8px;">授课平台:{{item.data.parentTeachePlateName}}</p>
  19. </div>
  20. </div>
  21. <div class="infos">
  22. <p>名称:{{item.data.name}}</p>
  23. <p>学校:{{item.data.schoolName}}</p>
  24. <p>主讲:{{item.data.speaker}}</p>
  25. <p>学科:{{item.data.parentCategoryName}}</p>
  26. <p>时间:{{item.data.timeRangeTip}}</p>
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. </template>
  33. <script>
  34. import lessons from '@/static/observationList.json'
  35. import lessonDetails from '@/static/lessonDetails.json'
  36. export default {
  37. components: {
  38. },
  39. data() {
  40. return {
  41. lessons: []
  42. }
  43. },
  44. created() {
  45. this.lessons = lessonDetails;
  46. },
  47. methods: {
  48. getList(type) {
  49. let list = noticeList.list;
  50. var newArray = list.filter(function(item){
  51. return item.noticeTypeId == type;
  52. });
  53. this.noticeList = newArray;
  54. },
  55. handleMenuClick(index,typeId,name) {
  56. this.activeIndex = index;
  57. this.typeName = name;
  58. this.getList(typeId);
  59. },
  60. handleLessonClick(rowKey) {
  61. sessionStorage.setItem('_lesson_rowKey', rowKey);
  62. this.$router.push('lessonDetails')
  63. },
  64. goDetails() {
  65. this.$router.push('activityDetails')
  66. }
  67. },
  68. mounted() {
  69. }
  70. }
  71. </script>
  72. <style scoped>
  73. html, body, #app {
  74. height: 100% !important;
  75. user-select: none;
  76. }
  77. .main-content {
  78. background: rgb(248,248,248) !important;
  79. }
  80. .container {
  81. width: 1200px;
  82. margin: 100px auto;
  83. display: flex;
  84. flex-direction: column;
  85. }
  86. .container .activities {
  87. min-height: 300px;
  88. overflow: hidden
  89. }
  90. .container .activity {
  91. margin-top: 30px;
  92. margin-right: 25px;
  93. margin-bottom: 30px;
  94. width: 383px;
  95. float: left;
  96. cursor: pointer;
  97. border: 1px solid #ddd;
  98. box-sizing: border-box
  99. }
  100. .container .activities .activity:hover {
  101. box-shadow: 0 26px 40px -24px rgba(0,36,100,.3);
  102. transform: translateY(-6px);
  103. transition: all .3s ease 0s
  104. }
  105. .container .activities .activity:nth-child(3n) {
  106. margin-right: 0
  107. }
  108. .img-box {
  109. background:url(../../assets/image/lessonCover.png);
  110. height: 210px
  111. }
  112. .img-box .lesson-image {
  113. display:flex;
  114. flex-direction:column;
  115. justify-content:center;
  116. align-items:center;
  117. color:#fff;
  118. font-weight:bold;
  119. }
  120. .img-box .state {
  121. padding: 5px 8px;
  122. line-height: 20px;
  123. position: relative;
  124. left: 0;
  125. top: 3px;
  126. z-index: 1;
  127. background-color: #13ce66;
  128. color: #fff
  129. }
  130. .img-box img {
  131. width: 382px;
  132. height: 210px;
  133. position: relative;
  134. left: 0;
  135. top: -21px;
  136. padding-top: 1px
  137. }
  138. .infos {
  139. background-color: #fff;
  140. padding:10px;
  141. font-size:14px;
  142. }
  143. .infos p {
  144. margin:5px 0;
  145. }
  146. .infos .actName {
  147. color: #444;
  148. font-size: 16px;
  149. padding: 20px 10px 10px 20px;
  150. overflow: hidden;
  151. text-overflow: ellipsis;
  152. white-space: nowrap;
  153. width: 280px
  154. }
  155. .infos .actOrganizer {
  156. color: #999;
  157. font-size: 14px;
  158. padding-left: 20px;
  159. padding-bottom: 20px
  160. }
  161. .infos .actTime {
  162. color: #aaa;
  163. font-size: 14px;
  164. padding-left: 20px;
  165. padding-bottom: 10px
  166. }
  167. </style>