list.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  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_one">
  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. <ul class="conceal">
  14. <li class="conceal_list" v-for="item in xiaoxue">
  15. <p class="conceal_list_title">{{item.title}}</p>
  16. <span class="conceal_list_subhead" v-for="items in item.data">{{items.title}}</span>
  17. </li>
  18. </ul>
  19. </li>
  20. <li class="moreover_data_two">
  21. <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>
  22. <div class="bottom_title">
  23. <a href="">教案</a>
  24. <a href="">试卷</a>
  25. <a href="">素材</a>
  26. <a href="">课件</a>
  27. </div>
  28. <ul class="conceal">
  29. <li class="conceal_list" v-for="itemc in chuzhong">
  30. <p class="conceal_list_title">{{itemc.title}}</p>
  31. <span class="conceal_list_subhead" v-for="itemy in itemc.data">{{itemy.title}}</span>
  32. </li>
  33. </ul>
  34. </li>
  35. <li class="moreover_data_three">
  36. <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>
  37. <div class="bottom_title">
  38. <a href="">教案</a>
  39. <a href="">真题</a>
  40. <a href="">素材</a>
  41. <a href="">课件</a>
  42. </div>
  43. <ul class="conceal">
  44. <li class="conceal_list" v-for="itemy in gaozhong">
  45. <p class="conceal_list_title">{{itemy.title}}</p>
  46. <span class="conceal_list_subhead" v-for="itemf in itemy.data">{{itemf.title}}</span>
  47. </li>
  48. </ul>
  49. </li>
  50. </ul>
  51. </div>
  52. </template>
  53. <script>
  54. export default {
  55. data() {
  56. return {
  57. xs:false,
  58. xiaoxue: [
  59. { "id": 1, "title": '语文', "data": [{ "id": 2, "pid": 1, "title": '同步资源' }, { "id": 3, "pid": 1, "title": '卷库' },] },
  60. { "id": 4, "title": '数学', "data": [{ "id": 5, "pid": 4, "title": '同步资源' }, { "id": 6, "pid": 4, "title": '卷库' },] },
  61. { "id": 7, "title": '英语', "data": [{ "id": 8, "pid": 7, "title": '同步资源' }, { "id": 9, "pid": 7, "title": '卷库' },] },
  62. { "id": 10, "title": '体育', "data": [{ "id": 11, "pid": 10, "title": '同步资源' }, { "id": 12, "pid": 10, "title": '卷库' },] },
  63. { "id": 13, "title": '美术', "data": [{ "id": 14, "pid": 13, "title": '同步资源' }, { "id": 15, "pid": 13, "title": '卷库' },] },
  64. { "id": 16, "title": '音乐', "data": [{ "id": 17, "pid": 16, "title": '同步资源' }, { "id": 18, "pid": 16, "title": '卷库' },] },
  65. { "id": 19, "title": '科学', "data": [{ "id": 20, "pid": 19, "title": '同步资源' }, { "id": 21, "pid": 19, "title": '卷库' },] },
  66. { "id": 22, "title": '信息技术', "data": [{ "id": 23, "pid": 22, "title": '同步资源' }, { "id": 24, "pid": 22, "title": '卷库' },] },
  67. { "id": 25, "title": '书法', "data": [{ "id": 26, "pid": 25, "title": '同步资源' }, { "id": 27, "pid": 25, "title": '卷库' },] },
  68. { "id": 28, "title": '汉语', "data": [{ "id": 29, "pid": 28, "title": '同步资源' }, { "id": 30, "pid": 28, "title": '卷库' },] },
  69. { "id": 31, "title": '品德与生活', "data": [{ "id": 32, "pid": 31, "title": '同步资源' }, { "id": 33, "pid": 31, "title": '卷库' },] },
  70. { "id": 34, "title": '生活与科技', "data": [{ "id": 35, "pid": 34, "title": '同步资源' }, { "id": 36, "pid": 34, "title": '卷库' },] },
  71. { "id": 37, "title": '体育与健康', "data": [{ "id": 38, "pid": 37, "title": '同步资源' }, { "id": 39, "pid": 37, "title": '卷库' },] },
  72. ],
  73. chuzhong: [
  74. { "id": 1, "title": '语文', "data": [{ "id": 2, "pid": 1, "title": '同步资源' }, { "id": 3, "pid": 1, "title": '卷库' },] },
  75. { "id": 4, "title": '数学', "data": [{ "id": 5, "pid": 4, "title": '同步资源' }, { "id": 6, "pid": 4, "title": '卷库' },] },
  76. { "id": 7, "title": '英语', "data": [{ "id": 8, "pid": 7, "title": '同步资源' }, { "id": 9, "pid": 7, "title": '卷库' },] },
  77. { "id": 10, "title": '体育', "data": [{ "id": 11, "pid": 10, "title": '同步资源' }, { "id": 12, "pid": 10, "title": '卷库' },] },
  78. { "id": 13, "title": '地理', "data": [{ "id": 14, "pid": 13, "title": '同步资源' }, { "id": 15, "pid": 13, "title": '卷库' },] },
  79. { "id": 16, "title": '历史', "data": [{ "id": 17, "pid": 16, "title": '同步资源' }, { "id": 18, "pid": 16, "title": '卷库' },] },
  80. { "id": 19, "title": '生物', "data": [{ "id": 20, "pid": 19, "title": '同步资源' }, { "id": 21, "pid": 19, "title": '卷库' },] },
  81. { "id": 22, "title": '化学', "data": [{ "id": 23, "pid": 22, "title": '同步资源' }, { "id": 24, "pid": 22, "title": '卷库' },] },
  82. { "id": 25, "title": '物理', "data": [{ "id": 26, "pid": 25, "title": '同步资源' }, { "id": 27, "pid": 25, "title": '卷库' },] },
  83. { "id": 28, "title": '汉语', "data": [{ "id": 29, "pid": 28, "title": '同步资源' }, { "id": 30, "pid": 28, "title": '卷库' },] },
  84. { "id": 31, "title": '信息技术', "data": [{ "id": 32, "pid": 31, "title": '同步资源' }, { "id": 33, "pid": 31, "title": '卷库' },] },
  85. { "id": 34, "title": '道德与法治', "data": [{ "id": 35, "pid": 34, "title": '同步资源' },] },
  86. { "id": 37, "title": '思想品德', "data": [{ "id": 38, "pid": 37, "title": '同步资源' }, { "id": 39, "pid": 37, "title": '卷库' },] },
  87. ],
  88. gaozhong: [
  89. { "id": 1, "title": '语文', "data": [{ "id": 2, "pid": 1, "title": '同步资源' }, { "id": 3, "pid": 1, "title": '卷库' },] },
  90. { "id": 4, "title": '数学', "data": [{ "id": 5, "pid": 4, "title": '同步资源' }, { "id": 6, "pid": 4, "title": '卷库' },] },
  91. { "id": 7, "title": '英语', "data": [{ "id": 8, "pid": 7, "title": '同步资源' }, { "id": 9, "pid": 7, "title": '卷库' },] },
  92. { "id": 10, "title": '体育', "data": [{ "id": 11, "pid": 10, "title": '同步资源' }, { "id": 12, "pid": 10, "title": '卷库' },] },
  93. { "id": 13, "title": '地理', "data": [{ "id": 14, "pid": 13, "title": '同步资源' }, { "id": 15, "pid": 13, "title": '卷库' },] },
  94. { "id": 16, "title": '历史', "data": [{ "id": 17, "pid": 16, "title": '同步资源' }, { "id": 18, "pid": 16, "title": '卷库' },] },
  95. { "id": 19, "title": '生物', "data": [{ "id": 20, "pid": 19, "title": '同步资源' }, { "id": 21, "pid": 19, "title": '卷库' },] },
  96. { "id": 22, "title": '化学', "data": [{ "id": 23, "pid": 22, "title": '同步资源' }, { "id": 24, "pid": 22, "title": '卷库' },] },
  97. { "id": 25, "title": '物理', "data": [{ "id": 26, "pid": 25, "title": '同步资源' }, { "id": 27, "pid": 25, "title": '卷库' },] },
  98. { "id": 28, "title": '汉语', "data": [{ "id": 29, "pid": 28, "title": '同步资源' }, { "id": 30, "pid": 28, "title": '卷库' },] },
  99. { "id": 31, "title": '信息技术', "data": [{ "id": 32, "pid": 31, "title": '同步资源' }, { "id": 33, "pid": 31, "title": '卷库' },] },
  100. { "id": 34, "title": '道德与法治', "data": [{ "id": 35, "pid": 34, "title": '同步资源' },] },
  101. { "id": 37, "title": '思想品德', "data": [{ "id": 38, "pid": 37, "title": '同步资源' }, { "id": 39, "pid": 37, "title": '卷库' },] },
  102. { "id": 40, "title": '艺术', "data": [{ "id": 41, "pid": 40, "title": '同步资源' }, { "id": 42, "pid": 40, "title": '卷库' },] },
  103. { "id": 43, "title": '研究性活动', "data": [{ "id": 44, "pid": 43, "title": '同步资源' }, { "id": 45, "pid": 43, "title": '卷库' },] },
  104. { "id": 46, "title": '生命科学', "data": [{ "id": 47, "pid": 46, "title": '同步资源' },] },
  105. ],
  106. }
  107. },
  108. methods: {
  109. }
  110. }
  111. </script>
  112. <style>
  113. .list_box {
  114. width:100%;
  115. background:url("../../assets/image/resource/banner.png") no-repeat;
  116. background-size:100% 100%;
  117. height:396px;
  118. position:relative;
  119. }
  120. .list_header {
  121. width:11%;
  122. position:absolute;
  123. left:210px;
  124. height:400px;
  125. text-align:center;
  126. }
  127. .list_data {
  128. width: 100%;
  129. height: 70px;
  130. list-style: none;
  131. background: #7abeee;
  132. line-height: 70px;
  133. }
  134. .list_header_title {
  135. font-size: 24px;
  136. color:#fff;
  137. margin-top:5px;
  138. }
  139. .moreover_data_three, .moreover_data_one, .moreover_data_two {
  140. width: 100%;
  141. height: 108.5px;
  142. padding: 5%;
  143. list-style: none;
  144. background: #7abeee;
  145. border-top: #7abeee solid 1px;
  146. text-align: left;
  147. position: relative;
  148. }
  149. .top_title {
  150. width:100%;
  151. height:40px;
  152. display:block;
  153. }
  154. .icon_img {
  155. width:35px;
  156. height:28px;
  157. background:url(../../assets/image/resource/list_icon.png) no-repeat 0px 0px ;
  158. display:block;
  159. float:left;
  160. }
  161. .icon_img_two {
  162. width: 35px;
  163. height: 28px;
  164. background: url(../../assets/image/resource/list_icon.png) no-repeat 0px -70px;
  165. display: block;
  166. float: left;
  167. }
  168. .icon_img_three {
  169. width: 35px;
  170. height: 28px;
  171. background: url(../../assets/image/resource/list_icon.png) no-repeat 0px -141px;
  172. display: block;
  173. float: left;
  174. }
  175. .moreover_title {
  176. font-size: 20px;
  177. color: #fff;
  178. margin-left: 40px;
  179. float: left;
  180. }
  181. .jt {
  182. color:#fff;
  183. font-size:30px;
  184. }
  185. .bottom_title {
  186. width:100%;
  187. height:40px;
  188. padding-top:15px;
  189. }
  190. .bottom_title a {
  191. font-size: 14px;
  192. color: #fff;
  193. margin: 0px 6px;
  194. }
  195. .moreover_data_one:hover {
  196. background: #056eaf;
  197. }
  198. .moreover_data_two:hover {
  199. background: #056eaf;
  200. }
  201. .moreover_data_three:hover {
  202. background: #056eaf;
  203. }
  204. .conceal {
  205. width:580px;
  206. height:500px;
  207. /*border:1px solid red;*/
  208. position:absolute;
  209. left:211px;
  210. top:0px;
  211. background:rgba(85,85,85,.95);
  212. display:none;
  213. }
  214. .conceal_list {
  215. float: left;
  216. width: 175px;
  217. padding-left: 19px;
  218. padding-top:20px;
  219. overflow: hidden;
  220. zoom: 1;
  221. margin-right: 15px;
  222. height: 76px;
  223. list-style:none;
  224. }
  225. .conceal_list_title{
  226. font-size: 18px;
  227. color: #5e90b1;
  228. }
  229. .conceal_list_subhead{
  230. font-size:14px;
  231. color:#fff;
  232. margin-left:5px;
  233. }
  234. .moreover_data_one:hover .conceal {
  235. display: block;
  236. top:-71px;
  237. }
  238. .moreover_data_two:hover .conceal {
  239. display: block;
  240. top:-180px;
  241. }
  242. .moreover_data_three:hover .conceal {
  243. display: block;
  244. top: -288px;
  245. }
  246. </style>