task-item.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <view>
  3. <view class="task-body m-20">
  4. <view class="row-c page-box-bg-fff m-b20 r-30 p-30 box-shadow-197" v-for="(item,index) in 10" :key="index">
  5. <image class="wh-80" :src="getLeftImg(leftImg)" mode=""></image>
  6. <view class="flex m-l20">
  7. <view class="row-justify-sb center flex">
  8. <text class="text-color-333 sys-weight-600">垫资还款</text>
  9. <view class="row-c line-40">
  10. <text class="size-26 text-color-333">刘芳芳{{index}}</text>
  11. <image class="wh-30 m-l16" src="/static/img/task/task-phone.png" mode=""></image>
  12. </view>
  13. </view>
  14. <view
  15. class="p-tb14 p-lr30 m-tb20 r-100 row-justify-sb center size-24 text-color-12 sys-from-background-color"
  16. style="line-height: 40rpx;">
  17. <text class="size-28 text-color-E21 sys-weight-600">120万</text>
  18. <text>初审</text>
  19. <text>2024/12/24用款</text>
  20. </view>
  21. <view class="row-justify-sb center" style="line-height: 40rpx;">
  22. <text class="size-24 text-color-999 flex">2024.10.11 12:45</text>
  23. <image style="width: 65rpx;height: 32rpx;" :src="getIconStatus(iconStatus)" v-if="type == 1">
  24. </image>
  25. <button class="button-background en_button sys-weight-500 text-color-fff size-28 r-100"
  26. style="width: 200rpx;height: 70rpx;line-height: 70rpx;" type="default"
  27. hover-class="is-hover" v-if="type == 2">领取任务</button>
  28. <view class="row-c" v-if="type == 3">
  29. <button
  30. class="button-backgroun en_buttond left_button sys-weight-500 button_color-008FD6 size-26 r-100 m-r20"
  31. type="default" hover-class="is-hover">核算</button>
  32. <button
  33. class="button-background en_button left_button right_button sys-weight-500 button_color-008FD6 size-26 r-100"
  34. type="default" hover-class="is-hover">客户分类</button>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="placeholder sys-list-background-color" v-if="is_bottom"></view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import EnButton from "@/components/en-utils/en-button/en-button.vue";
  45. export default {
  46. components: {
  47. EnButton
  48. },
  49. props: {
  50. type: {
  51. type: Number,
  52. default: 1
  53. },
  54. taskList: {
  55. type: Array,
  56. default: () => []
  57. },
  58. iconStatus: {
  59. type: Number,
  60. default: 0
  61. },
  62. leftImgStatus: {
  63. type: Number,
  64. default: 0
  65. },
  66. opacity: {
  67. type: Number,
  68. default: 0
  69. },
  70. back: {
  71. type: Boolean,
  72. default: false
  73. },
  74. is_bottom: {
  75. type: Boolean,
  76. default: false
  77. },
  78. },
  79. data() {
  80. return {
  81. leftImg: ['task-house', 'task-business', 'task-repayment'],
  82. iconList: ['task-audit', 'task-do', 'task-stay']
  83. }
  84. },
  85. methods: {
  86. getIconStatus() {
  87. return `/static/img/task/${this.iconList[this.iconStatus]}.png`
  88. },
  89. getLeftImg() {
  90. return `/static/img/task/${this.leftImg[this.leftImgStatus]}.png`
  91. },
  92. }
  93. }
  94. </script>
  95. <style lang="scss" scoped>
  96. .en_button {
  97. border: none;
  98. }
  99. .task-body {
  100. height: 100%;
  101. }
  102. .left_button {
  103. width: 122rpx;
  104. height: 56rpx;
  105. color: #008FD6;
  106. line-height: 56rpx;
  107. background: #FFFFFF;
  108. border: 1rpx solid #008FD6;
  109. border-radius: 100rpx;
  110. }
  111. .right_button {
  112. width: 150rpx;
  113. }
  114. .placeholder {
  115. height: 40rpx;
  116. }
  117. button::after {
  118. border: none;
  119. }
  120. </style>