loan-item.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <template>
  2. <view class="p-t20">
  3. <view class="task-body m-lr20 animate__animated animate__fadeIn" v-if="taskList.length>0">
  4. <view class="row-c page-box-bg-fff m-b20 r-30 box-shadow-197 loan-item" v-for="(item,index) in taskList"
  5. :key="index">
  6. <view class="main_string" :style="{background:lineColor[item.product_id%3]}"></view>
  7. <view class="row-c flex p-30 p-t60">
  8. <image class="wh-80" :src="item.product_icon" mode=""></image>
  9. <view class="flex m-l20">
  10. <view class="row-justify-sb center flex">
  11. <text class="text-color-333 sys-weight-600">{{item.product_name}}</text>
  12. <view class="row-c line-40" @click.stop="makCall(item.phone)">
  13. <text class="size-26 text-color-333">{{item.name}}</text>
  14. <image class="wh-30 m-l16"
  15. src="https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/new-xcx/task/task-phone.png"
  16. mode=""></image>
  17. </view>
  18. </view>
  19. <view
  20. class="p-tb14 p-lr30 m-tb20 r-100 row-justify-sb center size-24 text-color-12 sys-from-background-color sys-weight-600"
  21. style="line-height: 40rpx;">
  22. <text class="size-28 text-color-E21">{{(item.loans_money/10000).toFixed(2)}}万</text>
  23. <view class="">
  24. <text>{{item.refund_num-item.residue_num}}/{{item.refund_num}}</text><text
  25. class="sys-weight-400">期</text>
  26. </view>
  27. <view class="" v-if="item.status === 1">
  28. <text>{{(item.repayment_money*1).toFixed(2)}}</text><text
  29. class="sys-weight-400">元</text>
  30. </view>
  31. <text class="color-FF730E">{{(item.interest_rate*1).toFixed(2)}}%</text>
  32. </view>
  33. <view class="row-justify-sb center" v-if="item.status === 1">
  34. <text></text>
  35. <view class="row-c">
  36. <button
  37. class="button-backgroun en_buttond left_button sys-weight-500 button_color-008FD6 size-26 r-100 m-r20"
  38. type="default" hover-class="is-hover" @click="onCalculate(item,1)">核算</button>
  39. <button
  40. class="button-background en_button left_button right_button sys-weight-500 button_color-008FD6 size-26 r-100"
  41. type="default" hover-class="is-hover"
  42. @click.stop="onCalculate(item,2)">客户分类</button>
  43. </view>
  44. </view>
  45. </view>
  46. <view class="accomplish-text" :class="{'unfinished':item.status === 1}">
  47. {{item.status === 2?'已完成':'未完成'}}
  48. </view>
  49. </view>
  50. </view>
  51. <view class="placeholder sys-list-background-color" v-if="is_bottom && taskList.length"></view>
  52. </view>
  53. <en-blank v-else></en-blank>
  54. </view>
  55. </template>
  56. <script>
  57. import EnButton from "@/components/en-utils/en-button/en-button.vue";
  58. import tools from "@/service/tools";
  59. import EnBlank from "@/components/en-utils/en-blank/en-blank.vue";
  60. import ClientType from "@/pages/loan/components/clientType.vue";
  61. export default {
  62. components: {
  63. ClientType,
  64. EnBlank,
  65. EnButton
  66. },
  67. props: {
  68. type: {
  69. type: Number,
  70. default: 1
  71. },
  72. taskList: {
  73. type: Array,
  74. default: () => [1]
  75. },
  76. iconStatus: {
  77. type: Number,
  78. default: 1
  79. },
  80. leftImgStatus: {
  81. type: Number,
  82. default: 0
  83. },
  84. opacity: {
  85. type: Number,
  86. default: 0
  87. },
  88. back: {
  89. type: Boolean,
  90. default: false
  91. },
  92. is_bottom: {
  93. type: Boolean,
  94. default: false
  95. },
  96. },
  97. data() {
  98. return {
  99. leftImg: ['task-house', 'task-business', 'task-repayment'],
  100. iconList: ['task-audit', 'task-do', 'task-stay'],
  101. lineColor: ['#EF8F27', '#DE5847', '#0FB160'],
  102. isAjax: false,
  103. item: {}
  104. }
  105. },
  106. methods: {
  107. moveHandle() {
  108. return false
  109. },
  110. onCalculate(item, type) {
  111. this.$emit('onCalculate', {
  112. 'item': item,
  113. 'type': type
  114. })
  115. },
  116. makCall(phone) {
  117. tools.makingCall(phone)
  118. }
  119. }
  120. }
  121. </script>
  122. <style lang="scss" scoped>
  123. .en_button {
  124. border: none;
  125. }
  126. .task-body {
  127. height: 100%;
  128. }
  129. .left_button {
  130. height: 56rpx;
  131. color: #008FD6;
  132. line-height: 56rpx;
  133. background: #FFFFFF;
  134. border: 1rpx solid #008FD6;
  135. border-radius: 100rpx;
  136. }
  137. .right_button {}
  138. .placeholder {
  139. height: 40rpx;
  140. }
  141. .main_string {
  142. width: 6rpx;
  143. height: 60rpx;
  144. border-radius: 100rpx;
  145. background: red;
  146. }
  147. .loan-item {
  148. position: relative;
  149. }
  150. .accomplish-text {
  151. font-size: 24rpx;
  152. color: #00994D;
  153. background-color: #e7f7ef;
  154. padding: 6rpx 30rpx;
  155. line-height: 30rpx;
  156. border-radius: 0 30rpx 0 30rpx;
  157. position: absolute;
  158. right: 0;
  159. top: 0;
  160. }
  161. .unfinished {
  162. color: #F64646;
  163. background-color: #feeded;
  164. }
  165. button::after {
  166. border: none;
  167. }
  168. </style>