activitycommon.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  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="" 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": '', },
  46. { "id": 2, "title": '活动指南', "url": '', },
  47. { "id": 3, "title": '作品展示', "url": '', },
  48. { "id": 4, "title": '活动排行', "url": '', },
  49. { "id": 5, "title": '活动奖项', "url": '', },
  50. { "id": 6, "title": '课题证书', "url": '', }
  51. ],
  52. }
  53. }
  54. }
  55. </script>
  56. <style>
  57. .d-roll-item > .d-roll-bar > div {
  58. line-height: 0.95 !important;
  59. }
  60. </style>
  61. <style scoped>
  62. .activitycommon_box {
  63. width:100%;
  64. height:auto;
  65. }
  66. .banner_img {
  67. width: 100%;
  68. height:330px;
  69. }
  70. .banner_img img {
  71. width:100%;
  72. }
  73. .nav_list_box {
  74. width: 100%;
  75. height: 54px;
  76. padding: 0px 2px 2px 2px;
  77. background: #309aeb;
  78. }
  79. .nav_list {
  80. width:1200px;
  81. height:54px;
  82. margin:0 auto;
  83. }
  84. .activity_navlist {
  85. width:80%;
  86. height:54px;
  87. float:left;
  88. }
  89. .nav_name {
  90. width: 10%;
  91. height: 54px;
  92. line-height:54px;
  93. color:#fff;
  94. list-style:none;
  95. float:left;
  96. text-align:center;
  97. font-size:16px;
  98. }
  99. .nav_name:hover {
  100. background-color: #248dde;
  101. }
  102. .join {
  103. width: 20%;
  104. float: left;
  105. }
  106. .join img {
  107. width:48%;
  108. margin-top:4px;
  109. }
  110. .information_box {
  111. width:1200px;
  112. height:90px;
  113. margin:0 auto;
  114. }
  115. .information_list {
  116. width:100%;
  117. height:90px;
  118. list-style:none;
  119. }
  120. .information {
  121. width: 25%;
  122. height: 70px;
  123. line-height: 70px;
  124. margin: 8px;
  125. float: left;
  126. background-color: #f0f8fe;
  127. margin-left:2%;
  128. }
  129. .informatio_two {
  130. width: 25%;
  131. height: 70px;
  132. line-height: 70px;
  133. margin: 8px;
  134. float: left;
  135. background-color: #f7f3fe;
  136. margin-left:8%;
  137. }
  138. .informatio_three {
  139. width: 25%;
  140. height: 70px;
  141. line-height: 70px;
  142. margin: 8px;
  143. float: left;
  144. background-color: #edfcfd;
  145. margin-left: 10%;
  146. }
  147. .information_list_data {
  148. float: left;
  149. width: 100%;
  150. height: 70px;
  151. line-height: 70px;
  152. }
  153. .information_title, .information_icon {
  154. float: left;
  155. }
  156. .information_icon {
  157. margin-top:20px;
  158. margin-left:30px;
  159. }
  160. .information_title {
  161. font-size:16px;
  162. color:#555;
  163. padding-left:15px;
  164. padding-right:20px;
  165. }
  166. .information_num {
  167. font-size: 32px;
  168. color: #248dde;
  169. height:70px;
  170. }
  171. </style>