activitycommon.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. .activitycommon_box {
  58. width:100%;
  59. height:auto;
  60. }
  61. .banner_img {
  62. width: 100%;
  63. height:330px;
  64. }
  65. .banner_img img {
  66. width:100%;
  67. }
  68. .nav_list_box {
  69. width: 100%;
  70. height: 54px;
  71. padding: 0px 2px 2px 2px;
  72. background: #309aeb;
  73. }
  74. .nav_list {
  75. width:1200px;
  76. height:54px;
  77. margin:0 auto;
  78. }
  79. .activity_navlist {
  80. width:80%;
  81. height:54px;
  82. float:left;
  83. }
  84. .nav_name {
  85. width: 10%;
  86. height: 54px;
  87. line-height:54px;
  88. color:#fff;
  89. }
  90. .join {
  91. width:20%;
  92. float:left;
  93. }
  94. .join img {
  95. width:48%;
  96. margin-top:4px;
  97. }
  98. .information_box {
  99. width:1200px;
  100. height:90px;
  101. margin:0 auto;
  102. }
  103. .information_list {
  104. width:100%;
  105. height:90px;
  106. list-style:none;
  107. }
  108. .information {
  109. width: 25%;
  110. height: 70px;
  111. line-height: 70px;
  112. margin: 8px;
  113. float: left;
  114. background-color: #f0f8fe;
  115. margin-left:2%;
  116. }
  117. .informatio_two {
  118. width: 25%;
  119. height: 70px;
  120. line-height: 70px;
  121. margin: 8px;
  122. float: left;
  123. background-color: #f7f3fe;
  124. margin-left:8%;
  125. }
  126. .informatio_three {
  127. width: 25%;
  128. height: 70px;
  129. line-height: 70px;
  130. margin: 8px;
  131. float: left;
  132. background-color: #edfcfd;
  133. margin-left: 10%;
  134. }
  135. .information_list_data {
  136. float: left;
  137. width: 100%;
  138. height: 70px;
  139. line-height: 70px;
  140. }
  141. .information_title, .information_icon {
  142. float: left;
  143. }
  144. .information_icon {
  145. margin-top:20px;
  146. margin-left:30px;
  147. }
  148. .information_title {
  149. font-size:16px;
  150. color:#555;
  151. padding-left:15px;
  152. padding-right:20px;
  153. }
  154. .information_num {
  155. font-size: 32px;
  156. color: #248dde;
  157. height:70px;
  158. }
  159. .d-roll-item > .d-roll-bar > div {
  160. line-height:0.95 !important;
  161. }
  162. </style>