myActivities.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <template>
  2. <div class="myActivities">
  3. <div class="actItem" v-for="item in actList" @click="toDetail(item)">
  4. <div class="actTop">
  5. <img src="https://www.idea-co-sf.com/gardenProduct/image/img1.png" class="actImg">
  6. <div class="actRight">
  7. <span class="actTitle">{{ item.name }}</span>
  8. <span class="actTime2">报名时间:2024/02/01~2024/02/16</span>
  9. <span class="actTime2">报名人数:23</span>
  10. </div>
  11. </div>
  12. <div class="actTime">
  13. <span class="time">开始时间:<span style="color: #666666">{{item.time}}</span></span>
  14. <span :class="item.type==='已结束'?'yjs':'dks'">{{item.type}}</span>
  15. </div>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. export default {
  21. name: "myActivities",
  22. data(){
  23. return{
  24. actList:[
  25. {name:'互联网私募如何入门?',time:'2021-1-21 13:00',type:'待开始'},
  26. {name:'公募基金中的大数据挖掘',time:'2021-1-21 13:00',type:'待开始'},
  27. {name:'年度小艾杯篮球赛开始啦',time:'2021-1-21 13:00',type:'已结束'},
  28. ]
  29. }
  30. },
  31. methods:{
  32. toDetail(){
  33. uni.navigateTo({
  34. url:"/pages/subPackages/minePages/registrationDetails",
  35. })
  36. }
  37. }
  38. }
  39. </script>
  40. <style lang="scss">
  41. .myActivities{
  42. padding: 24rpx 32rpx;
  43. .actItem{
  44. padding: 32rpx 0 22rpx 0;
  45. background: white;
  46. border-radius: 16rpx;
  47. margin-bottom: 24rpx;
  48. .actTop{
  49. display: flex;
  50. align-items: center;
  51. padding: 0 24rpx;
  52. box-sizing: border-box;
  53. .actImg{
  54. width: 200rpx;
  55. height: 144rpx;
  56. }
  57. }
  58. .actRight{
  59. display: flex;
  60. flex-direction: column;
  61. margin-left: 16rpx;
  62. .actTitle{
  63. color:#18172A;
  64. font-size: 32rpx;
  65. margin-bottom: 20rpx;
  66. width: 380rpx;
  67. overflow: hidden;
  68. text-overflow: ellipsis;
  69. white-space: nowrap;
  70. }
  71. .actTime2{
  72. font-size: 24rpx;
  73. color: #888888;
  74. margin: 4rpx 0;
  75. }
  76. }
  77. .actTime{
  78. margin-top: 24rpx;
  79. padding: 24rpx 32rpx 0 32rpx;
  80. display: flex;
  81. justify-content: space-between;
  82. border-top: 1px solid #E8EDF5;
  83. align-items: center;
  84. .time{
  85. color: #222222;
  86. font-size: 28rpx;
  87. }
  88. .yjs{
  89. background: rgba(163, 169, 177, 0.20);
  90. color: #888888;
  91. font-size: 28rpx;
  92. border-radius: 4rpx;
  93. width: 112rpx;
  94. height: 48rpx;
  95. display: flex;
  96. align-items: center;
  97. justify-content: center;
  98. }
  99. .dks{
  100. background: rgba(3, 101, 249, 0.20);
  101. color: rgba(3, 101, 249, 1);
  102. font-size: 28rpx;
  103. border-radius: 4rpx;
  104. width: 112rpx;
  105. height: 48rpx;
  106. display: flex;
  107. align-items: center;
  108. justify-content: center;
  109. }
  110. }
  111. }
  112. }
  113. </style>