ReviewActivity.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <template>
  2. <div class="container">
  3. <div class="activity-item" v-for="(item,index) in reviewAcList" :key="index">
  4. <div class="activity-banner">
  5. <img src="../../assets/image/banner_header.png" />
  6. </div>
  7. <div class="activity-brief">
  8. <div class="left">
  9. <div class="line">
  10. <span class="tips">活动:</span>
  11. <span class="items">{{item.name}}</span>
  12. <span class="status" style="background: rgb(19, 206, 102);">{{item.statusTip}}</span>
  13. </div>
  14. <div class="line"><span class="tips">时间:</span> <span class="items2">{{item.reviewTimeTip}}</span></div>
  15. <div class="line"><span class="tips">主办:</span> <span class="items2">{{item.organizer}}</span></div>
  16. <div class="line"><span class="tips">作品:</span> <span class="items2">{{item.reviewTimeTip}}</span></div>
  17. </div>
  18. <div class="right">
  19. <p class="time-count">距离报名开始还有<span class="count-down"> 0天 0小时 0分</span></p>
  20. <Button type="primary" size="large" @click="goDetails">查看详情</Button>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. </template>
  26. <script>
  27. import acList from '@/static/reviewAcList.json'
  28. export default {
  29. components: {
  30. },
  31. data() {
  32. return {
  33. reviewAcList: []
  34. }
  35. },
  36. created() {
  37. this.reviewAcList = acList.data.list;
  38. },
  39. methods: {
  40. getList(type) {
  41. let list = noticeList.list;
  42. var newArray = list.filter(function(item){
  43. return item.noticeTypeId == type;
  44. });
  45. this.noticeList = newArray;
  46. },
  47. handleMenuClick(index,typeId,name) {
  48. this.activeIndex = index;
  49. this.typeName = name;
  50. this.getList(typeId);
  51. },
  52. goDetails() {
  53. this.$router.push('activityDetails')
  54. }
  55. },
  56. mounted() {
  57. }
  58. }
  59. </script>
  60. <style scoped>
  61. html, body, #app {
  62. height: 100% !important;
  63. user-select: none;
  64. }
  65. .main-content {
  66. background: rgb(241,242,243) !important;
  67. }
  68. .container {
  69. width: 1200px;
  70. margin: 100px auto;
  71. display: flex;
  72. flex-direction: column;
  73. }
  74. .container .activity-item {
  75. width:100%;
  76. padding-bottom:50px;
  77. background:#fff;
  78. margin-top:40px;
  79. }
  80. .container .activity-item .activity-banner img {
  81. width:100%;
  82. }
  83. .container .activity-brief {
  84. width:100%;
  85. padding:15px 40px;
  86. display:flex;
  87. flex-direction:row;
  88. justify-content:space-between;
  89. align-items:center;
  90. }
  91. .container .activity-brief .line {
  92. font-size:16px;
  93. margin-top:10px;
  94. }
  95. .container .activity-brief .status {
  96. font-size:14px;
  97. padding:2px 8px;
  98. margin-left:8px;
  99. border-radius:5px;
  100. color:#fff;
  101. }
  102. .container .activity-brief .line .tips{
  103. font-weight:bold;
  104. color:#999;
  105. }
  106. .container .time-count {
  107. font-size:16px;
  108. margin-bottom:20px;
  109. }
  110. .container .time-count .count-down {
  111. color:orange;
  112. }
  113. .container .right .ivu-btn {
  114. width:180px;
  115. height:48px;
  116. font-size:16px;
  117. }
  118. .container .ivu-btn-primary {
  119. background:#41b6ba;
  120. border-color:#41b6ba;
  121. }
  122. </style>