TeachTopclass.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <template>
  2. <div class="home">
  3. <div class="title">
  4. <Icon type="ios-home-outline" size="22" />
  5. <p><router-link to="/TeacherZone/ZonesHome">工作室首页</router-link></p><span>>名师课堂</span>
  6. </div>
  7. <div class="list-info">
  8. <h1 class="list-title">最新课例</h1>
  9. <div class="video">
  10. <div class="video_box">
  11. <div class="video_list">
  12. <div class="video_left">
  13. <img src="../../assets/image/resource/teach01.jpg" />
  14. <a target="_blank" href="/videodetails" class="playbtn1"></a>
  15. <h4 class="name">
  16. <a target="_blank" href="" style="color:#fff">选修3-1第二章恒定电流,电源和电流</a>
  17. </h4>
  18. </div>
  19. <ul class="video_right">
  20. <li class="video_more_list" v-for="item in video_list">
  21. <img :src="item.imgurl" />
  22. <a target="_blank" :href="item.url" class="playbtn1"></a>
  23. <h4 class="name_more">
  24. <a target="_blank" :href="item.url" style="color:#fff">{{item.slogan}}</a>
  25. </h4>
  26. </li>
  27. </ul>
  28. </div>
  29. </div>
  30. </div>
  31. </div>
  32. <div class="list-infos">
  33. <h1 class="list-title">微课课例</h1>
  34. <div class="video">
  35. <div class="video_box">
  36. <div class="video_list">
  37. <ul class="video_rights">
  38. <li class="video_more_list" v-for="item in video_lists">
  39. <img :src="item.imgurl" />
  40. <a target="_blank" :href="item.url" class="playbtn1"></a>
  41. <h4 class="name_more">
  42. <a target="_blank" :href="item.url" style="color:#fff">{{item.slogan}}</a>
  43. </h4>
  44. </li>
  45. </ul>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </template>
  52. <script>
  53. export default {
  54. data() {
  55. return {
  56. video_list: [
  57. { "id": 1, "imgurl": require("../../assets/image/resource/teach03.jpg"), "slogan": '选修3-1第二章恒定电流,电流的微观解析', },
  58. { "id": 2, "imgurl": require("../../assets/image/resource/teach01.jpg"), "slogan": '选修3-1第二章恒定电流,电流的微观解析', },
  59. { "id": 3, "imgurl": require("../../assets/image/resource/teach02.jpg"), "slogan": '选修3-1第二章恒定电流,电流的微观解析', },
  60. { "id": 4, "imgurl": require("../../assets/image/resource/teach04.jpg"), "slogan": '选修3-1第二章恒定电流,电流的微观解析', },
  61. ],
  62. video_lists: [
  63. { "id": 1, "imgurl": require("../../assets/image/resource/teach03.jpg"), "slogan": '选修3-1第二章恒定电流,电流的微观解析', },
  64. { "id": 2, "imgurl": require("../../assets/image/resource/teach01.jpg"), "slogan": '选修3-1第二章恒定电流,电流的微观解析', },
  65. { "id": 3, "imgurl": require("../../assets/image/resource/teach02.jpg"), "slogan": '选修3-1第二章恒定电流,电流的微观解析', },
  66. { "id": 4, "imgurl": require("../../assets/image/resource/teach04.jpg"), "slogan": '选修3-1第二章恒定电流,电流的微观解析', },
  67. ],
  68. }
  69. },
  70. methods: {
  71. viewDetails() {
  72. this.$router.push({ path: '/TeacherZone/TeachDetails' })
  73. },
  74. chooseTab() {
  75. this.info = this.data;
  76. }
  77. }
  78. }
  79. </script>
  80. <style scoped>
  81. .home {
  82. width: 66%;
  83. height: 500px;
  84. position: absolute;
  85. top: 70%;
  86. left: 53%;
  87. transform: translate(-50%,-50%);
  88. float: left;
  89. /*display: inline-flex;*/
  90. }
  91. .title {
  92. font-size: 16px;
  93. text-align: left;
  94. font-weight: 600;
  95. width: 300px;
  96. }
  97. .title p {
  98. display: inline;
  99. }
  100. .list-info {
  101. margin-top: 35px;
  102. width: 90%;
  103. background: #fff;
  104. /* float: left; */
  105. /*margin-left: -24%;*/
  106. height: 450px;
  107. border: 1px solid #ededed;
  108. }
  109. .list-infos {
  110. margin-top: 35px;
  111. width: 90%;
  112. background: #fff;
  113. height:380px;
  114. border: 1px solid #ededed;
  115. }
  116. .list-title {
  117. float: left;
  118. height: 57px;
  119. line-height: 57px;
  120. font-size: 20px;
  121. margin-left: 10px;
  122. color: #288add;
  123. border-bottom: 1px solid #288add;
  124. }
  125. .video {
  126. margin-top: 7%;
  127. /* float: left; */
  128. /* display: inline; */
  129. background-color: #f3f3f3;
  130. }
  131. .video_box {
  132. background-color: #fff;
  133. margin: 0 auto;
  134. margin-top: 20px;
  135. }
  136. .video_name {
  137. float: left;
  138. line-height: 39px;
  139. border-bottom: #288add solid 1px;
  140. padding: 12px 5px 0px 5px;
  141. font-size: 24px;
  142. font-weight: normal;
  143. color: #288add;
  144. }
  145. /*i {
  146. float: left;
  147. margin: 22px 0px 0px 8px;
  148. height: 20px;
  149. line-height: 20px;
  150. border-radius: 10px;
  151. background: #8ea9b9;
  152. font-size: 14px;
  153. padding: 0px 10px;
  154. color: #fff;
  155. }*/
  156. .video_select {
  157. width: 30%;
  158. float: left;
  159. list-style: none;
  160. border-bottom: #ececec solid 1px;
  161. }
  162. .select_name {
  163. float: left;
  164. width: 15%;
  165. line-height: 39px;
  166. padding: 12px 5px 0px 5px;
  167. font-size: 14px;
  168. color: #6f8abb;
  169. }
  170. .select_name_more {
  171. float: left;
  172. width: 15%;
  173. padding: 0px 5px 0px 5px;
  174. }
  175. .video_list {
  176. width: 100%;
  177. /* float: left; */
  178. padding: 1.5%;
  179. display: flex;
  180. }
  181. .video_left {
  182. width: 50%;
  183. float: left;
  184. position: relative;
  185. }
  186. .video_left img {
  187. width: 100%;
  188. }
  189. .video_left:hover .playbtn1 {
  190. display: block;
  191. }
  192. .video_more_list:hover .playbtn1 {
  193. display: block;
  194. }
  195. .playbtn1 {
  196. position: absolute;
  197. top: 50%;
  198. left: 50%;
  199. background: url(../../assets/image/resource/play.png) no-repeat;
  200. width: 64px;
  201. height: 64px;
  202. margin-top: -32px;
  203. margin-left: -32px;
  204. display: none;
  205. }
  206. .name {
  207. position: absolute;
  208. bottom: 5px;
  209. left: 0px;
  210. width: 100%;
  211. font-weight: normal;
  212. line-height: 45px;
  213. font-size: 16px;
  214. background-color: rgba(52, 52, 52, .5);
  215. color: #fff;
  216. }
  217. .name_more {
  218. position: absolute;
  219. bottom: 0px;
  220. left: 0px;
  221. width: 100%;
  222. font-weight: normal;
  223. line-height: 35px;
  224. font-size: 14px;
  225. background-color: rgba(52, 52, 52, .5);
  226. color: #fff;
  227. }
  228. .video_right {
  229. width: 48%;
  230. float: left;
  231. list-style: none;
  232. margin-left: 2%;
  233. }
  234. .video_rights {
  235. width: 48%;
  236. float: left;
  237. list-style: none;
  238. margin-left: 2%;
  239. display: contents;
  240. }
  241. .video_more_list {
  242. width: 48%;
  243. float: left;
  244. position: relative;
  245. height: 170px;
  246. margin-top: 12px;
  247. margin: 0.5% 1%;
  248. }
  249. .video_more_list img {
  250. width: 100%;
  251. height: 170px;
  252. }
  253. </style>