mineActive.vue 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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 bqZ-font">类型</view>
  12. <text class="three-font" style="font-weight: 600;">这里是活动标题标题标题标题标题</text>
  13. </view>
  14. <view class="introduce">
  15. 活动描述活动描述活动描述活动描述活动描述活动描述活动描述
  16. </view>
  17. <view class="operate">
  18. <view class="left">
  19. <view class="money fNum-font"><text class="three-font">¥</text> 188</view>
  20. <view class="person">已报名123人</view>
  21. </view>
  22. <view class="Oright">
  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: 160rpx;
  57. height: 160rpx;
  58. image {
  59. width: 100%;
  60. height: 100%;
  61. border-radius: 10rpx;
  62. }
  63. }
  64. .right {
  65. padding-left: 15px;
  66. flex: 1;
  67. display: flex;
  68. flex-direction: column;
  69. // align-content: flex-end;
  70. justify-content: space-between;
  71. .title {
  72. display: flex;
  73. align-items: center;
  74. margin-bottom: 5px;
  75. .tag {
  76. border: 1px #00b2b6 solid;
  77. // font-size: 20rpx;
  78. width: 64rpx;
  79. height: 38rpx;
  80. display: flex;
  81. white-space: nowrap;
  82. justify-content: center;
  83. align-items: center;
  84. padding: 1rpx 4rpx;
  85. border-radius: 3px;
  86. margin-right: 10rpx;
  87. color: #00b2b6;
  88. }
  89. text {
  90. width: 180px;
  91. overflow: hidden;
  92. text-overflow: ellipsis;
  93. white-space: nowrap;
  94. }
  95. }
  96. .introduce {
  97. width: 230px;
  98. font-size: 28rpx;
  99. color: #a7a7a7;
  100. // margin-top: 8px;
  101. overflow: hidden;
  102. text-overflow: ellipsis;
  103. white-space: nowrap;
  104. }
  105. .operate {
  106. display: flex;
  107. justify-content: space-between;
  108. // align-items: flex-end;
  109. align-items: baseline;
  110. // margin-top: 15px;
  111. .left {
  112. display: flex;
  113. flex-direction: row;
  114. justify-content: space-between;
  115. align-items: baseline;
  116. width: 260rpx;
  117. .money {
  118. color: #FFA338;
  119. font-weight: bold;
  120. font-size: 36rpx;
  121. line-height: 20px;
  122. }
  123. .person {
  124. color: #00000099;
  125. font-size: 24rpx;
  126. // margin-left: 6px;
  127. }
  128. }
  129. .Oright {
  130. width: 80px;
  131. display: flex;
  132. justify-content: flex-start;
  133. align-items: center;
  134. // flex-direction: row;
  135. // justify-content: space-around;
  136. // align-items: flex-end;
  137. .text {
  138. font-size: 24rpx;
  139. color: #3081E8;
  140. }
  141. .arrow {
  142. display: flex;
  143. justify-content: center;
  144. margin-top: 5rpx;
  145. image{
  146. width: 32rpx;
  147. height: 32rpx;
  148. }
  149. }
  150. }
  151. }
  152. }
  153. }
  154. }
  155. </style>