video.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <template>
  2. <div class="video">
  3. <div class="video_box">
  4. <div class="video_title"><div class="video_name">微课</div><i>2638</i></div>
  5. <ul class="video_select">
  6. <li class="select_name">语文</li>
  7. <li class="select_name">数学</li>
  8. <li class="select_name">英语</li>
  9. <li class="select_name">物理</li>
  10. <li class="select_name">化学</li>
  11. <li class="select_name_more"><Icon type="ios-more" size="16" /></li>
  12. </ul>
  13. <div class="video_list">
  14. <div class="video_left">
  15. <img src="../../assets/image/resource/video_img.jpg" />
  16. <a target="_blank" href="/videodetails" class="playbtn1"></a>
  17. <h4 class="name">
  18. <a target="_blank" href="" style="color:#fff">人教五上第五单元_列方程解决实际问题</a>
  19. </h4>
  20. </div>
  21. <ul class="video_right">
  22. <li class="video_more_list" v-for="item in video_list">
  23. <img :src="item.imgurl" />
  24. <a target="_blank" :href="item.url" class="playbtn1"></a>
  25. <h4 class="name_more">
  26. <a target="_blank" :href="item.url" style="color:#fff">{{item.slogan}}</a>
  27. </h4>
  28. </li>
  29. </ul>
  30. </div>
  31. </div>
  32. </div>
  33. </template>
  34. <script>
  35. export default {
  36. data() {
  37. return {
  38. video_list: [
  39. { "id": 1, "imgurl": require("../../assets/image/resource/video_img_one.jpg"), "slogan": '人教三上第四单元_三位数减三位...', "url": '/videodetails?id=1' },
  40. { "id": 2, "imgurl": require("../../assets/image/resource/video_img_two.jpg"), "slogan": '五上第七单元_在一条线段上植树', "url": '/videodetails?id=2' },
  41. { "id": 3, "imgurl": require("../../assets/image/resource/video_img_three.jpg"), "slogan": '人教一上第五单元_6和7的写法', "url": '/videodetails?id=3' },
  42. { "id": 4, "imgurl": require("../../assets/image/resource/video_img_four.jpg"), "slogan": '人教二上第四单元_2,3的乘法口诀', "url": '/videodetails?id=4' },
  43. ],
  44. }
  45. },
  46. }
  47. </script>
  48. <style scoped>
  49. .video {
  50. width: 100%;
  51. padding: 0% 11% 0% 11%;
  52. float: left;
  53. background-color: #f3f3f3;
  54. }
  55. .video_box {
  56. width:1200px;
  57. height:455px;
  58. background-color:#fff;
  59. margin:0 auto;
  60. margin-top:20px;
  61. }
  62. .video_title {
  63. width: 70%;
  64. float: left;
  65. padding-left: 30px;
  66. border-bottom: #ececec solid 1px;
  67. }
  68. .video_name {
  69. float: left;
  70. line-height: 39px;
  71. border-bottom: #288add solid 1px;
  72. padding: 12px 5px 0px 5px;
  73. font-size: 24px;
  74. font-weight: normal;
  75. color: #288add;
  76. }
  77. i {
  78. float: left;
  79. margin: 22px 0px 0px 8px;
  80. height: 20px;
  81. line-height: 20px;
  82. border-radius: 10px;
  83. background: #8ea9b9;
  84. font-size: 14px;
  85. padding: 0px 10px;
  86. color: #fff;
  87. }
  88. .video_select {
  89. width: 30%;
  90. float: left;
  91. list-style: none;
  92. border-bottom: #ececec solid 1px;
  93. }
  94. .select_name {
  95. float: left;
  96. width: 15%;
  97. line-height: 39px;
  98. padding: 12px 5px 0px 5px;
  99. font-size: 14px;
  100. color: #6f8abb;
  101. }
  102. .select_name_more {
  103. float: left;
  104. width: 15%;
  105. padding: 0px 5px 0px 5px;
  106. }
  107. .video_list {
  108. width:100%;
  109. height:400px;
  110. float:left;
  111. padding:1.5%;
  112. }
  113. .video_left {
  114. width:50%;
  115. float:left;
  116. position:relative;
  117. }
  118. .video_left img {
  119. width:100%;
  120. }
  121. .video_left:hover .playbtn1 {
  122. display: block;
  123. }
  124. .video_more_list:hover .playbtn1 {
  125. display: block;
  126. }
  127. .playbtn1 {
  128. position: absolute;
  129. top: 50%;
  130. left: 50%;
  131. background: url(../../assets/image/resource/play.png) no-repeat;
  132. width: 64px;
  133. height: 64px;
  134. margin-top: -32px;
  135. margin-left: -32px;
  136. display: none;
  137. }
  138. .name {
  139. position: absolute;
  140. bottom: 5px;
  141. left: 0px;
  142. width: 100%;
  143. font-weight: normal;
  144. line-height: 45px;
  145. font-size: 16px;
  146. background-color: rgba(52, 52, 52, .5);
  147. color: #fff;
  148. }
  149. .name_more {
  150. position: absolute;
  151. bottom: 0px;
  152. left: 0px;
  153. width: 100%;
  154. font-weight: normal;
  155. line-height: 35px;
  156. font-size: 14px;
  157. background-color: rgba(52, 52, 52, .5);
  158. color: #fff;
  159. }
  160. .video_right {
  161. width: 48%;
  162. float: left;
  163. list-style: none;
  164. margin-left:2%;
  165. }
  166. .video_more_list {
  167. width:48%;
  168. float:left;
  169. position:relative;
  170. height:170px;
  171. margin-top:12px;
  172. margin:0.5% 1%;
  173. }
  174. .video_more_list img {
  175. width:100%;
  176. height:170px;
  177. }
  178. </style>