task-item.vue 3.4 KB

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