mineActive.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <view>
  3. <statusBar :item="navBarData"></statusBar>
  4. <view class="activeBox" v-for="i in 5" :key="i">
  5. <view class="teaching_case">
  6. <view class="img">
  7. <image src="../../static/activity/bg2.png" mode="aspectFill"></image>
  8. </view>
  9. <view class="right">
  10. <view class="title">
  11. <view class="tag">类型</view>
  12. <text>这里是活动标题标题标题标题标题</text>
  13. </view>
  14. <view class="introduce">
  15. 活动描述活动描述活动描述活动描述活动描述活动描述活动描述
  16. </view>
  17. <view class="operate">
  18. <view class="left">
  19. <view class="money">¥188</view>
  20. <view class="person">已报名123人</view>
  21. </view>
  22. <view class="right">
  23. <view class="text">查看详情</view>
  24. <view class="arrow">
  25. <image src="../../static/mine/arrow-right-blue.png" mode="aspectFill"></image>
  26. </view>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. data() {
  37. return {
  38. navBarData: {
  39. title: '我的活动',
  40. btn: 1
  41. },
  42. };
  43. }
  44. }
  45. </script>
  46. <style lang="scss">
  47. .activeBox {
  48. width: 100%;
  49. background-color: #fff;
  50. padding: 10px 0;
  51. .teaching_case {
  52. display: flex;
  53. justify-content: space-between;
  54. padding: 0 15px;
  55. .img {
  56. width: 180rpx;
  57. height: 180rpx;
  58. image {
  59. width: 100%;
  60. height: 100%;
  61. }
  62. }
  63. .right {
  64. padding-left: 15px;
  65. flex: 1;
  66. width: 100rpx;
  67. display: flex;
  68. flex-direction: column;
  69. align-content: flex-end;
  70. .title {
  71. display: flex;
  72. margin-bottom: 5px;
  73. .tag {
  74. border: 1px #00b2b6 solid;
  75. font-size: 20rpx;
  76. display: flex;
  77. white-space: nowrap;
  78. justify-content: center;
  79. align-items: center;
  80. padding: 2px 4px;
  81. border-radius: 3px;
  82. margin-right: 10rpx;
  83. color: #00b2b6;
  84. }
  85. text {
  86. width: 180px;
  87. overflow: hidden;
  88. text-overflow: ellipsis;
  89. white-space: nowrap;
  90. }
  91. }
  92. .introduce {
  93. width: 230px;
  94. font-size: 28rpx;
  95. color: #a7a7a7;
  96. margin-top: 8px;
  97. overflow: hidden;
  98. text-overflow: ellipsis;
  99. white-space: nowrap;
  100. }
  101. .operate {
  102. display: flex;
  103. justify-content: space-between;
  104. align-items: flex-end;
  105. margin-top: 15px;
  106. .left {
  107. display: flex;
  108. flex-direction: row;
  109. justify-content: space-between;
  110. align-items: flex-end;
  111. width: 260rpx;
  112. .money {
  113. color: #FFA338;
  114. font-weight: bold;
  115. font-size: 36rpx;
  116. line-height: 20px;
  117. }
  118. .person {
  119. color: #00000099;
  120. font-size: 24rpx;
  121. // margin-left: 6px;
  122. }
  123. }
  124. .right {
  125. width: 80px;
  126. // height: 24px;
  127. display: flex;
  128. flex-direction: row;
  129. justify-content: space-around;
  130. align-items: flex-end;
  131. .text {
  132. font-size: 24rpx;
  133. color: #3081E8;
  134. }
  135. .arrow {
  136. line-height: 10px;
  137. image{
  138. width: 32rpx;
  139. height: 32rpx;
  140. }
  141. }
  142. }
  143. }
  144. }
  145. }
  146. }
  147. </style>