task-item.vue 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 30" :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">
  10. <text class="size-26 text-color-333">刘芳芳1</text>
  11. <image class="wh-30 m-l16" style="margin-top: 4rpx;" src="/static/img/task/task-phone.png"
  12. mode=""></image>
  13. </view>
  14. </view>
  15. <view
  16. class="p-tb14 p-lr30 m-tb20 r-100 row-justify-sb center size-24 text-color-12 sys-from-background-color"
  17. style="line-height: 40rpx;">
  18. <text class="size-28 text-color-E21 sys-weight-600">120万</text>
  19. <text>初审</text>
  20. <text>2024/12/24用款</text>
  21. </view>
  22. <view class="row-justify-sb center" style="line-height: 40rpx;">
  23. <text class="size-24 text-color-999 flex">2024.10.11 12:45</text>
  24. <image style="width: 65rpx;height: 32rpx;" :src="getIconStatus(iconStatus)" v-if="type == 1">
  25. </image>
  26. <button class="button-background en-button sys-weight-500 text-color-fff size-28 r-100" style="width: 220rpx;height: 70rpx;line-height: 70rpx;" type="default" hover-class="is-hover"
  27. v-if="type == 2">领取任务</button>
  28. <image style="width: 45rpx;height: 30rpx;" :src="getIconStatus(iconStatus)" v-if="type == 3">
  29. </image>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="content-row sys-list-background-color"></view>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. import EnButton from "@/components/en-utils/en-button/en-button.vue";
  39. export default {
  40. components: {
  41. EnButton
  42. },
  43. props: {
  44. type: {
  45. type: Number,
  46. default: 1
  47. },
  48. iconStatus: {
  49. type: Number,
  50. default: 0
  51. },
  52. leftImgStatus: {
  53. type: Number,
  54. default: 0
  55. },
  56. opacity: {
  57. type: Number,
  58. default: 0
  59. },
  60. back: {
  61. type: Boolean,
  62. default: false
  63. },
  64. },
  65. data() {
  66. return {
  67. leftImg: ['task-house', 'task-business', 'task-repayment'],
  68. iconList: ['task-audit', 'task-do', 'task-stay']
  69. }
  70. },
  71. methods: {
  72. getIconStatus() {
  73. return `/static/img/task/${this.iconList[this.iconStatus]}.png`
  74. },
  75. getLeftImg() {
  76. return `/static/img/task/${this.leftImg[this.leftImgStatus]}.png`
  77. },
  78. }
  79. }
  80. </script>
  81. <style lang="scss" scoped>
  82. .en-button {
  83. border: none;
  84. }
  85. button::after {
  86. border: none;
  87. }
  88. </style>