bountyItem.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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" v-if="showTags">
  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. props:{
  36. showTags:{
  37. type:Boolean,
  38. default:true
  39. }
  40. },
  41. data() {
  42. return {};
  43. },
  44. onLoad() {},
  45. methods: {},
  46. };
  47. </script>
  48. <style scoped lang="scss">
  49. .bounty {
  50. width: 100%;
  51. height: 160rpx;
  52. display: flex;
  53. align-items: center;
  54. border-bottom: 2rpx solid #F7F7F7;
  55. .head {
  56. display: flex;
  57. .image {
  58. width: 96rpx;
  59. height: 96rpx;
  60. border-radius: 50%;
  61. }
  62. }
  63. .middle {
  64. width: 8rpx;
  65. height: 100%;
  66. }
  67. .main {
  68. flex: 1;
  69. height: 100%;
  70. display: flex;
  71. flex-direction: column;
  72. justify-content: center;
  73. .top_title {
  74. display: flex;
  75. align-items: center;
  76. .bounty_title {
  77. flex: 1;
  78. display: flex;
  79. align-items: center;
  80. .text {
  81. flex: 1;
  82. width: 0;
  83. overflow: hidden;
  84. white-space: nowrap;
  85. text-overflow: ellipsis;
  86. }
  87. .tips {
  88. width: 210rpx;
  89. display: flex;
  90. justify-content: space-between;
  91. .tip_item {
  92. display: flex;
  93. padding: 4rpx 8rpx;
  94. justify-content: center;
  95. align-items: center;
  96. border-radius: 0 6rpx 6rpx 6rpx;
  97. font-size: 24rpx;
  98. font-weight: 400;
  99. color: #fff;
  100. }
  101. }
  102. }
  103. .price {
  104. margin-left: 30rpx;
  105. text-align: end;
  106. }
  107. }
  108. }
  109. }
  110. .line {
  111. height: 80%;
  112. width: 1rpx;
  113. margin: 0 16rpx;
  114. background-color: #dadada;
  115. }
  116. .top_color {
  117. border: 1rpx solid #ffce31;
  118. background: #ffce31;
  119. }
  120. .quick_color {
  121. border: 1rpx solid #6b6df7;
  122. background: #6b6df7;
  123. }
  124. .hot_color {
  125. border: 1rpx solid #e02e24;
  126. background: #e02e24;
  127. }
  128. .new_color {
  129. border: 1rpx solid #fe6505;
  130. background: #fe6505;
  131. }
  132. </style>