activitycommon.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template>
  2. <div class="activitycommon_box">
  3. <div class="banner_img"><img src="../../assets/image/resource/activity_banner.png" /></div>
  4. <div class="nav_list_box">
  5. <div class="nav_list">
  6. <ul class="activity_navlist">
  7. <li class="nav_name" v-for="item in navname"><a :href="item.url" style="color:#fff">{{item.title}}</a></li>
  8. </ul>
  9. <div class="join">
  10. <img src="../../assets/image/resource/btn_join.png" />
  11. </div>
  12. </div>
  13. </div>
  14. <div class="information_box">
  15. <ul class="information_list">
  16. <li class="information">
  17. <div class="information_list_data">
  18. <Icon type="md-paper" size="28" class="information_icon" /><div class="information_title">已有作品</div><div class="information_num"><DigitRoll :rollDigits="digits1" /></div>
  19. </div>
  20. </li>
  21. <li class="informatio_two">
  22. <div class="information_list_data">
  23. <Icon type="md-contacts" size="28" class="information_icon" /><div class="information_title">参与人数</div><div class="information_num"><DigitRoll :rollDigits="digits2" /></div>
  24. </div>
  25. </li>
  26. <li class="informatio_three">
  27. <div class="information_list_data">
  28. <Icon type="md-desktop" size="28" class="information_icon" /><div class="information_title">访问人数</div><div class="information_num"><DigitRoll :rollDigits="digits3" /></div>
  29. </div>
  30. </li>
  31. </ul>
  32. </div>
  33. </div>
  34. </template>
  35. <script>
  36. import DigitRoll from '@huoyu/vue-digitroll';
  37. export default {
  38. components: { DigitRoll },
  39. data() {
  40. return {
  41. digits1:11053,
  42. digits2:9835,
  43. digits3:23156,
  44. navname: [
  45. { "id": 1, "title": '活动首页', "url": '/activity', },
  46. { "id": 2, "title": '活动指南', "url": '/activityguide', },
  47. { "id": 3, "title": '作品展示', "url": '/activityshow', },
  48. { "id": 4, "title": '活动排行', "url": '/activityrank', },
  49. { "id": 5, "title": '课题证书', "url": '', }
  50. ],
  51. }
  52. }
  53. }
  54. </script>
  55. <style>
  56. .d-roll-item > .d-roll-bar > div {
  57. line-height: 0.95 !important;
  58. }
  59. </style>
  60. <style scoped>
  61. .activitycommon_box {
  62. width:100%;
  63. height:auto;
  64. }
  65. .banner_img {
  66. width: 100%;
  67. height:325px;
  68. }
  69. .banner_img img {
  70. width:100%;
  71. }
  72. .nav_list_box {
  73. width: 100%;
  74. height: 54px;
  75. padding: 0px 2px 2px 2px;
  76. background: #00C2CB;
  77. }
  78. .nav_list {
  79. width:1200px;
  80. height:54px;
  81. margin:0 auto;
  82. }
  83. .activity_navlist {
  84. width:80%;
  85. height:54px;
  86. float:left;
  87. }
  88. .nav_name {
  89. width: 10%;
  90. height: 54px;
  91. line-height:54px;
  92. color:#fff;
  93. list-style:none;
  94. float:left;
  95. text-align:center;
  96. font-size:16px;
  97. }
  98. .nav_name:hover {
  99. background-color: #248dde;
  100. }
  101. .join {
  102. width: 20%;
  103. float: left;
  104. }
  105. .join img {
  106. width:48%;
  107. margin-top:4px;
  108. }
  109. .information_box {
  110. width:1200px;
  111. height:90px;
  112. margin:0 auto;
  113. }
  114. .information_list {
  115. width:100%;
  116. height:90px;
  117. list-style:none;
  118. }
  119. .information {
  120. width: 25%;
  121. height: 70px;
  122. line-height: 70px;
  123. margin: 8px;
  124. float: left;
  125. background-color: #f0f8fe;
  126. margin-left:2%;
  127. }
  128. .informatio_two {
  129. width: 25%;
  130. height: 70px;
  131. line-height: 70px;
  132. margin: 8px;
  133. float: left;
  134. background-color: #f7f3fe;
  135. margin-left:8%;
  136. }
  137. .informatio_three {
  138. width: 25%;
  139. height: 70px;
  140. line-height: 70px;
  141. margin: 8px;
  142. float: left;
  143. background-color: #edfcfd;
  144. margin-left: 10%;
  145. }
  146. .information_list_data {
  147. float: left;
  148. width: 100%;
  149. height: 70px;
  150. line-height: 70px;
  151. }
  152. .information_title, .information_icon {
  153. float: left;
  154. }
  155. .information_icon {
  156. margin-top:20px;
  157. margin-left:30px;
  158. }
  159. .information_title {
  160. font-size:16px;
  161. color:#555;
  162. padding-left:15px;
  163. padding-right:20px;
  164. }
  165. .information_num {
  166. font-size: 32px;
  167. color: #248dde;
  168. height:70px;
  169. }
  170. </style>