list.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <template>
  2. <div class="list_box">
  3. <ul class="list_header">
  4. <li class="list_data"><Icon type="ios-menu-outline" size="30" style="color:#fff;margin-bottom:10px;" /><span class="list_header_title">学科资源</span></li>
  5. <li class="moreover_data">
  6. <div class="top_title"><div class="icon_img"></div><span class="moreover_title">小学</span><Icon type="ios-arrow-forward" size="28" style="color:#fff;margin-left:25px;" /></div>
  7. <div class="bottom_title">
  8. <a href="">教案</a>
  9. <a href="">素材</a>
  10. <a href="">动画</a>
  11. <a href="">课件</a>
  12. </div>
  13. </li>
  14. <li class="moreover_data">
  15. <div class="top_title"><div class="icon_img_two"></div><span class="moreover_title">初中</span><Icon type="ios-arrow-forward" size="28" style="color:#fff;margin-left:25px;" /></div>
  16. <div class="bottom_title">
  17. <a href="">教案</a>
  18. <a href="">试卷</a>
  19. <a href="">素材</a>
  20. <a href="">课件</a>
  21. </div>
  22. </li>
  23. <li class="moreover_data">
  24. <div class="top_title"><div class="icon_img_three"></div><span class="moreover_title">高中</span><Icon type="ios-arrow-forward" size="28" style="color:#fff;margin-left:25px;" /></div>
  25. <div class="bottom_title">
  26. <a href="">教案</a>
  27. <a href="">真题</a>
  28. <a href="">素材</a>
  29. <a href="">课件</a>
  30. </div>
  31. </li>
  32. </ul>
  33. <ul class="conceal">
  34. <li class="conceal_list" v-for="item in xiaoxue">
  35. <p class="conceal_list_title">{{item.title}}</p>
  36. <p class="conceal_list_subhead"><span>同步资源</span><span>卷库</span></p>
  37. </li>
  38. <!--<li class="conceal_list">
  39. <p class="conceal_list_title">语文</p>
  40. <p class="conceal_list_subhead"><span>同步资源</span><span>卷库</span></p>
  41. </li>
  42. <li class="conceal_list">
  43. <p class="conceal_list_title">语文</p>
  44. <p class="conceal_list_subhead"><span>同步资源</span><span>卷库</span></p>
  45. </li>
  46. <li class="conceal_list">
  47. <p class="conceal_list_title">语文</p>
  48. <p class="conceal_list_subhead"><span>同步资源</span><span>卷库</span></p>
  49. </li>-->
  50. </ul>
  51. </div>
  52. </template>
  53. <script>
  54. export default {
  55. data() {
  56. return {
  57. xiaoxue: [
  58. { "id": 1, "title": '语文', "data": [{ "id": 2, "pid": 1, "title": '同步资源' }, { "id": 3, "pid": 1, "title": '卷库' },] },
  59. { "id": 4, "title": '数学', "data": [{ "id": 5, "pid": 4, "title": '同步资源' }, { "id": 6, "pid": 4, "title": '卷库' },] },
  60. { "id": 7, "title": '英语', "data": [{ "id": 8, "pid": 7, "title": '同步资源' }, { "id": 9, "pid": 7, "title": '卷库' },] },
  61. { "id": 10, "title": '体育', "data": [{ "id": 11, "pid": 10, "title": '同步资源' }, { "id": 12, "pid": 10, "title": '卷库' },] },
  62. { "id": 13, "title": '美术', "data": [{ "id": 14, "pid": 13, "title": '同步资源' }, { "id": 15, "pid": 13, "title": '卷库' },] },
  63. { "id": 16, "title": '音乐', "data": [{ "id": 17, "pid": 16, "title": '同步资源' }, { "id": 18, "pid": 16, "title": '卷库' },] },
  64. { "id": 19, "title": '科学', "data": [{ "id": 20, "pid": 19, "title": '同步资源' }, { "id": 21, "pid": 19, "title": '卷库' },] },
  65. { "id": 22, "title": '信息技术', "data": [{ "id": 23, "pid": 22, "title": '同步资源' }, { "id": 24, "pid": 22, "title": '卷库' },] },
  66. { "id": 25, "title": '书法', "data": [{ "id": 26, "pid": 25, "title": '同步资源' }, { "id": 27, "pid": 25, "title": '卷库' },] },
  67. { "id": 28, "title": '汉语', "data": [{ "id": 29, "pid": 28, "title": '同步资源' }, { "id": 30, "pid": 28, "title": '卷库' },] },
  68. { "id": 31, "title": '品德与生活', "data": [{ "id": 32, "pid": 31, "title": '同步资源' }, { "id": 33, "pid": 31, "title": '卷库' },] },
  69. { "id": 34, "title": '生活与科技', "data": [{ "id": 35, "pid": 34, "title": '同步资源' }, { "id": 36, "pid": 34, "title": '卷库' },] },
  70. { "id": 37, "title": '体育与健康', "data": [{ "id": 38, "pid": 37, "title": '同步资源' }, { "id": 39, "pid": 37, "title": '卷库' },] },
  71. ],
  72. }
  73. }
  74. }
  75. </script>
  76. <style>
  77. .list_box {
  78. width:100%;
  79. background:url("../../assets/image/banner.png") no-repeat;
  80. background-size:100% 100%;
  81. height:396px;
  82. position:relative;
  83. }
  84. .list_header {
  85. width:11%;
  86. position:absolute;
  87. left:210px;
  88. height:400px;
  89. text-align:center;
  90. }
  91. .list_data {
  92. width: 100%;
  93. height: 70px;
  94. list-style: none;
  95. background: #7abeee;
  96. line-height: 70px;
  97. }
  98. .list_header_title {
  99. font-size: 24px;
  100. color:#fff;
  101. margin-top:5px;
  102. }
  103. .moreover_data {
  104. width: 100%;
  105. height: 108.5px;
  106. padding: 5%;
  107. list-style: none;
  108. background: #7abeee;
  109. border-top: #7abeee solid 1px;
  110. text-align: left;
  111. }
  112. .top_title {
  113. width:100%;
  114. height:40px;
  115. display:block;
  116. }
  117. .icon_img {
  118. width:35px;
  119. height:28px;
  120. background:url(../../assets/image/list_icon.png) no-repeat 0px 0px ;
  121. display:block;
  122. float:left;
  123. }
  124. .icon_img_two {
  125. width: 35px;
  126. height: 28px;
  127. background: url(../../assets/image/list_icon.png) no-repeat 0px -70px;
  128. display: block;
  129. float: left;
  130. }
  131. .icon_img_three {
  132. width: 35px;
  133. height: 28px;
  134. background: url(../../assets/image/list_icon.png) no-repeat 0px -141px;
  135. display: block;
  136. float: left;
  137. }
  138. .moreover_title {
  139. font-size: 20px;
  140. color: #fff;
  141. margin-left: 40px;
  142. float: left;
  143. }
  144. .jt {
  145. color:#fff;
  146. font-size:30px;
  147. }
  148. .bottom_title {
  149. width:100%;
  150. height:40px;
  151. padding-top:15px;
  152. }
  153. .bottom_title a {
  154. font-size: 14px;
  155. color: #fff;
  156. margin: 0px 6px;
  157. }
  158. .moreover_data:hover {
  159. background:#056eaf;
  160. }
  161. .conceal {
  162. width:580px;
  163. height:500px;
  164. border:1px solid red;
  165. position:absolute;
  166. left:420px;
  167. background:rgba(85,85,85,.9);
  168. }
  169. .conceal_list {
  170. float: left;
  171. width: 175px;
  172. padding-left: 19px;
  173. padding-top:20px;
  174. overflow: hidden;
  175. zoom: 1;
  176. margin-right: 15px;
  177. height: 76px;
  178. list-style:none;
  179. }
  180. .conceal_list_title{
  181. font-size: 18px;
  182. color: #5e90b1;
  183. }
  184. .conceal_list_subhead span {
  185. font-size:14px;
  186. color:#fff;
  187. margin-left:5px;
  188. }
  189. </style>