list.vue 13 KB

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