exam.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <template>
  2. <div class="exam">
  3. <div class="exam_list_box_width">
  4. <div class="exam_box" v-for="item in listdata">
  5. <div class="exam_title"><div class="exam_name">{{item.title}}</div><i>{{item.num}}</i></div>
  6. <div class="exam_img"><img :src="item.img" /></div>
  7. <ul class="exam_list">
  8. <li class="exam_list_data" v-for="items in item.data">
  9. <div class="exam_list_title"><a :href="items.url" target="_blank">{{items.title}}</a></div>
  10. <div class="look"><Icon type="ios-eye" size="16" />{{items.loocknum}}</div>
  11. </li>
  12. </ul>
  13. </div>
  14. <div class="clear"></div>
  15. </div>
  16. </div>
  17. </template>
  18. <script>
  19. export default {
  20. data() {
  21. return {
  22. listdata: [
  23. {
  24. "id": 1, "title": '中考专区', "num": '980', "img": require("../../assets/image/resource/exam_img_one.jpg"), data: [
  25. { "type": '物理', "title": '2018年成都市中考物理试卷.doc', "loocknum": '750',"url":'/details' },
  26. { "type": '英语', "title": '2018年成都市中考英语试卷.doc', "loocknum": '920', "url": '/details'},
  27. { "type": '数学', "title": '2018年成都市中考数学试卷.doc', "loocknum": '1006', "url": '/details'},
  28. { "type": '化学', "title": '2018年成都市中考化学试卷.doc', "loocknum": '450', "url": '/details'},
  29. ]
  30. },
  31. {
  32. "id": 2, "title": '高考专区', "num": '1080', "img": require("../../assets/image/resource/exam_img_two.jpg"), data: [
  33. { "type": '语文', "title": '2018年成都市高考语文试卷.doc', "loocknum": '1750', "url": '/details' },
  34. { "type": '英语', "title": '2018年成都市高考英语试卷.doc', "loocknum": '1220', "url": '/details' },
  35. { "type": '数学', "title": '2018年成都市高考数学试卷.doc', "loocknum": '1606', "url": '/details' },
  36. { "type": '历史', "title": '2018年成都市高考历史试卷.doc', "loocknum": '1450', "url": '/details' },
  37. ]
  38. },
  39. {
  40. "id": 3, "title": '优课专区', "num": '900', "img": require("../../assets/image/resource/exam_img_three.jpg"), data: [
  41. { "type": '优课', "title": '古诗二首', "loocknum": '350', "url":'http://1s1k.eduyun.cn/portal/redesign/index/index.jsp?sdResIdCaseId=8aee808f62fbe7ab016300a9e6a22e65&t=2&sessionKey=3xCsBKvbaWPKVmk1Yk9Y' },
  42. { "type": '优课', "title": '我的影子', "loocknum": '620', "url":'http://1s1k.eduyun.cn/portal/redesign/index/index.jsp?sdResIdCaseId=8aee80a562bc9be10162be0f7167109d&t=2&sessionKey=ey65FtcgEGMh4uHprmSE' },
  43. { "type": '优课', "title": '路程、时间与速度', "loocknum": '606', "url":'http://1s1k.eduyun.cn/portal/redesign/index/index.jsp?sdResIdCaseId=ff8080815d07057f015d07443709007a&t=2&sessionKey=wj0ZhZK7YbjgxhIBJiGw' },
  44. { "type": '优课', "title": '振兴中华,我们的责任', "loocknum": '535', "url":'http://1s1k.eduyun.cn/portal/redesign/index/index.jsp?sdResIdCaseId=ff8080815cb052d2015cbebe8a1b23fa&t=2&sessionKey=EvC9kFlYWNaWFm1tKsG0' },
  45. ]
  46. },
  47. ]
  48. }
  49. }
  50. }
  51. </script>
  52. <style scoped>
  53. .exam {
  54. width: 100%;
  55. padding: 0% 11% 0% 11%;
  56. float: left;
  57. background-color: #f3f3f3;
  58. margin:0 auto;
  59. }
  60. .exam_list_box_width {
  61. width: 1200px;
  62. margin:0 auto;
  63. }
  64. .exam_box {
  65. width: 30%;
  66. height: auto;
  67. margin: 1% 0% 1% 4.5%;
  68. text-align: center;
  69. float: left;
  70. border: #ececec solid 1px;
  71. padding: 1%;
  72. box-shadow: 2px 2px 10px rgba(15,4,9,0.05);
  73. background-color: #fff;
  74. }
  75. .exam_box:nth-child(1) {
  76. margin: 1% 1% 1% 0%;
  77. }
  78. .exam_title {
  79. width: 100%;
  80. display: block;
  81. float: left;
  82. }
  83. .exam_name {
  84. font-size: 24px;
  85. border-bottom: #288add solid 1px;
  86. float: left;
  87. margin-left: 20px;
  88. }
  89. .exam_title i {
  90. float: left;
  91. margin: 8px 0px 0px 8px;
  92. height: 20px;
  93. line-height: 20px;
  94. border-radius: 10px;
  95. background: #8ea9b9;
  96. font-size: 14px;
  97. padding: 0px 10px;
  98. color: #fff;
  99. }
  100. .exam_img {
  101. margin-top: 10px;
  102. float: left;
  103. }
  104. .exam_img img {
  105. width:90%;
  106. }
  107. .exam_list {
  108. width: 100%;
  109. height: auto;
  110. padding: 1%;
  111. list-style: none;
  112. float: left;
  113. text-align: left;
  114. }
  115. .exam_list_data {
  116. width: 100%;
  117. float: left;
  118. }
  119. .exam_list_title {
  120. float: left;
  121. font-size:15px;
  122. }
  123. .look {
  124. float: right;
  125. }
  126. a {
  127. text-decoration: none;
  128. color: #333;
  129. }
  130. .clear {
  131. clear: both
  132. }
  133. </style>