bountyItem.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <view class="bounty">
  3. <view class="head">
  4. <image class="image" src="/static/image/index/default_avatar.png" mode="scaleToFill" />
  5. </view>
  6. <view class="middle"></view>
  7. <view class="main">
  8. <view class="top_title">
  9. <view class="bounty_title">
  10. <view class="text-32 text-500 text-070602 text">
  11. 这是一条悬赏任务悬赏任务
  12. </view>
  13. <view class="flex ai_center tips">
  14. <view class="tip_item top_color">顶</view>
  15. <view class="tip_item quick_color">快审</view>
  16. <view class="tip_item hot_color">热</view>
  17. <view class="tip_item new_color">新</view>
  18. </view>
  19. </view>
  20. <view class="price text-32 text-600 text-DD3D3D">+3.02元</view>
  21. </view>
  22. <view class="flex jc_between mgt-16">
  23. <view class="flex ai_center text-24 text-400 text-7E7E7E">
  24. <view>671已赚</view>
  25. <view class="line"></view>
  26. <view>剩余21个</view>
  27. </view>
  28. <view class="text-24 text-400 text-7E7E7E">支持设备:苹果</view>
  29. </view>
  30. </view>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data() {
  36. return {};
  37. },
  38. onLoad() {},
  39. methods: {},
  40. };
  41. </script>
  42. <style scoped lang="scss">
  43. .bounty {
  44. width: 100%;
  45. height: 160rpx;
  46. display: flex;
  47. align-items: center;
  48. border-bottom: 2rpx solid #F7F7F7;
  49. .head {
  50. display: flex;
  51. .image {
  52. width: 96rpx;
  53. height: 96rpx;
  54. border-radius: 50%;
  55. }
  56. }
  57. .middle {
  58. width: 8rpx;
  59. height: 100%;
  60. }
  61. .main {
  62. flex: 1;
  63. height: 100%;
  64. display: flex;
  65. flex-direction: column;
  66. justify-content: center;
  67. .top_title {
  68. display: flex;
  69. align-items: center;
  70. .bounty_title {
  71. flex: 1;
  72. display: flex;
  73. align-items: center;
  74. .text {
  75. flex: 1;
  76. width: 0;
  77. overflow: hidden;
  78. white-space: nowrap;
  79. text-overflow: ellipsis;
  80. }
  81. .tips {
  82. width: 210rpx;
  83. display: flex;
  84. justify-content: space-between;
  85. .tip_item {
  86. display: flex;
  87. padding: 4rpx 8rpx;
  88. justify-content: center;
  89. align-items: center;
  90. border-radius: 0 6rpx 6rpx 6rpx;
  91. font-size: 24rpx;
  92. font-weight: 400;
  93. color: #fff;
  94. }
  95. }
  96. }
  97. .price {
  98. margin-left: 30rpx;
  99. text-align: end;
  100. }
  101. }
  102. }
  103. }
  104. .line {
  105. height: 80%;
  106. width: 1rpx;
  107. margin: 0 16rpx;
  108. background-color: #dadada;
  109. }
  110. .top_color {
  111. border: 1rpx solid #ffce31;
  112. background: #ffce31;
  113. }
  114. .quick_color {
  115. border: 1rpx solid #6b6df7;
  116. background: #6b6df7;
  117. }
  118. .hot_color {
  119. border: 1rpx solid #e02e24;
  120. background: #e02e24;
  121. }
  122. .new_color {
  123. border: 1rpx solid #fe6505;
  124. background: #fe6505;
  125. }
  126. </style>