task-list.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. <template>
  2. <view class="task-box">
  3. <view class="task-item" v-for="item in 10" :key="item">
  4. <view class="task-info">
  5. <view class="info-title">
  6. <text class="info-tag">新人</text>
  7. <text class="info-title-text hide_1">币王合约大神 币王合约大神币王合约大神</text>
  8. </view>
  9. <view class="info-content">
  10. <image class="info-icon" src="@/static/logo.png" mode="aspectFit"></image>
  11. <view class="info">
  12. <view class="info-nums">
  13. <text class="info-nums-name hide_1">交易量</text>
  14. <text class="info-nums-num">5000000 / 5000000</text>
  15. </view>
  16. <view class="info-ratio">
  17. <text class="info-ratio-bg" style="width: 70%;"></text>
  18. </view>
  19. <view class="info-times">
  20. <text class="info-time hide_1">2023.01.01- 2024.01.01</text>
  21. <view class="info-detail">
  22. <text class="detail-text">详情</text>
  23. <image class="detail-icon" src="../../../static/logo.png" mode="aspectFit"></image>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. <view :class="['task-btns' , activeTask ? '' : 'active-task-btn']">
  30. <text class="task-btn-nums">200</text>
  31. <text class="task-btn-tag">USDT</text>
  32. <text class="task-btn-text">待完成</text>
  33. </view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. export default {
  39. props:{
  40. activeTask:{
  41. type:Boolean,
  42. default:false
  43. }
  44. },
  45. data() {
  46. return {
  47. };
  48. }
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. .task-box {
  53. width: 100%;
  54. padding: 18rpx $pages-padding 0;
  55. .task-item {
  56. margin-bottom: 14rpx;
  57. width: 100%;
  58. background-color: #fff;
  59. display: flex;
  60. align-items: stretch;
  61. .task-info {
  62. width: calc(100% - 215rpx);
  63. height: 252rpx;
  64. padding: 20rpx 0;
  65. .info-title {
  66. width: 100%;
  67. display: flex;
  68. align-items: center;
  69. .info-tag {
  70. flex-shrink: 0;
  71. min-width: 75rpx;
  72. line-height: 25rpx;
  73. padding: 3rpx 20rpx;
  74. background: #05c175;
  75. border-radius: 0px 16rpx 16rpx 0px;
  76. font-size: 18rpx;
  77. font-family: PingFang SC, PingFang SC-Regular;
  78. font-weight: 400;
  79. color: #ffffff;
  80. letter-spacing: -0.36rpx;
  81. }
  82. .info-title-text {
  83. width: 100%;
  84. padding-left: 40rpx;
  85. font-size: 28rpx;
  86. font-family: PingFang SC, PingFang SC-Regular;
  87. font-weight: 400;
  88. color: #333333;
  89. letter-spacing: -0.56rpx;
  90. }
  91. }
  92. .info-content {
  93. padding-top: 47rpx;
  94. padding-left: 8rpx;
  95. display: flex;
  96. align-items: center;
  97. .info-icon {
  98. width: 90rpx;
  99. height: 90rpx;
  100. }
  101. .info {
  102. width: calc(100% - 90rpx);
  103. padding: 0 36rpx 0 22rpx;
  104. .info-nums {
  105. width: 100%;
  106. display: flex;
  107. justify-content: space-between;
  108. align-items: center;
  109. .info-nums-name {
  110. line-height: 40rpx;
  111. font-size: 28rpx;
  112. font-family: PingFang SC, PingFang SC-Regular;
  113. font-weight: 400;
  114. text-align: left;
  115. color: #808080;
  116. letter-spacing: -0.56rpx;
  117. }
  118. .info-nums-num {
  119. flex-shrink: 0;
  120. line-height: 30rpx;
  121. font-size: 22rpx;
  122. font-family: PingFang SC, PingFang SC-Regular;
  123. font-weight: 400;
  124. text-align: left;
  125. color: #fe9d04;
  126. letter-spacing: -0.44rpx;
  127. }
  128. }
  129. .info-ratio {
  130. width: 100%;
  131. height: 10rpx;
  132. background: #D0D0D0;
  133. border-radius: 5rpx;
  134. display: flex;
  135. .info-ratio-bg {
  136. display: inline-block;
  137. height: 10rpx;
  138. border-radius: 5rpx;
  139. background: #0abd76;
  140. }
  141. }
  142. .info-times {
  143. padding-top: 12rpx;
  144. display: flex;
  145. align-items: center;
  146. justify-content: space-between;
  147. .info-time {
  148. font-size: 22rpx;
  149. font-family: PingFang SC, PingFang SC-Regular;
  150. font-weight: 400;
  151. color: #808080;
  152. letter-spacing: -0.44rpx;
  153. line-height: 30rpx;
  154. }
  155. .info-detail {
  156. flex-shrink: 0;
  157. display: flex;
  158. align-items: center;
  159. margin-right: -20rpx;
  160. .detail-text {
  161. flex-shrink: 0;
  162. font-size: 22rpx;
  163. font-family: PingFang SC, PingFang SC-Regular;
  164. font-weight: 400;
  165. color: #0abd76;
  166. letter-spacing: -0.44rpx;
  167. line-height: 30rpx;
  168. padding-right: 10rpx;
  169. }
  170. .detail-icon {
  171. flex-shrink: 0;
  172. width: 10rpx;
  173. height: 13rpx;
  174. }
  175. }
  176. }
  177. }
  178. }
  179. }
  180. .task-btns {
  181. background-color: #202135;
  182. width: 215rpx;
  183. border-radius: 6rpx;
  184. display: flex;
  185. flex-direction: column;
  186. color: #fff;
  187. justify-content: center;
  188. align-items: center;
  189. .task-btn-nums{
  190. font-size: 42rpx;
  191. font-family: PingFang SC, PingFang SC-Bold;
  192. font-weight: 700;
  193. color: #ffffff;
  194. letter-spacing: 0.84rpx;
  195. }
  196. .task-btn-tag{
  197. font-size: 24rpx;
  198. font-family: PingFang SC, PingFang SC-Regular;
  199. font-weight: 400;
  200. color: #ffffff;
  201. // letter-spacing: 0.48rpx;
  202. }
  203. .task-btn-text{
  204. min-width: 176rpx;
  205. height: 60rpx;
  206. padding:0 10rpx;
  207. background: #4c4d5f;
  208. border-radius: 6px;
  209. text-align: center;
  210. line-height: 60rpx;
  211. margin-top: 36rpx;
  212. }
  213. // <text class="task-btn-nums">200</text>
  214. // <text class="task-btn-tag">USDT</text>
  215. // <text class="task-btn-text">待完成</text>
  216. // </view>
  217. }
  218. .active-task-btn{
  219. background: #d2d3d7;
  220. .task-btn-text{
  221. background: #c3c3cd;
  222. }
  223. }
  224. }
  225. }
  226. </style>