loan-item.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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">
  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">核算</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">客户分类</button>
  42. </view>
  43. </view>
  44. </view>
  45. <view class="accomplish-text" :class="{'unfinished':!is_accomplish}">
  46. 已完成
  47. </view>
  48. </view>
  49. </view>
  50. <view class="placeholder sys-list-background-color" v-if="is_bottom && taskList.length"></view>
  51. </view>
  52. <en-blank v-else></en-blank>
  53. </view>
  54. </template>
  55. <script>
  56. import EnButton from "@/components/en-utils/en-button/en-button.vue";
  57. import tools from "@/service/tools";
  58. import EnBlank from "@/components/en-utils/en-blank/en-blank.vue";
  59. export default {
  60. components: {
  61. EnBlank,
  62. EnButton
  63. },
  64. props: {
  65. type: {
  66. type: Number,
  67. default: 1
  68. },
  69. taskList: {
  70. type: Array,
  71. default: () => [1]
  72. },
  73. iconStatus: {
  74. type: Number,
  75. default: 1
  76. },
  77. leftImgStatus: {
  78. type: Number,
  79. default: 0
  80. },
  81. opacity: {
  82. type: Number,
  83. default: 0
  84. },
  85. back: {
  86. type: Boolean,
  87. default: false
  88. },
  89. is_bottom: {
  90. type: Boolean,
  91. default: false
  92. },
  93. },
  94. data() {
  95. return {
  96. leftImg: ['task-house', 'task-business', 'task-repayment'],
  97. iconList: ['task-audit', 'task-do', 'task-stay'],
  98. lineColor: ['#EF8F27', '#DE5847', '#0FB160'],
  99. isAjax: false
  100. }
  101. },
  102. methods: {
  103. onCalculate() {
  104. this.$emit('onCalculate')
  105. },
  106. makCall(phone) {
  107. tools.makingCall(phone)
  108. }
  109. }
  110. }
  111. </script>
  112. <style lang="scss" scoped>
  113. .en_button {
  114. border: none;
  115. }
  116. .task-body {
  117. height: 100%;
  118. }
  119. .left_button {
  120. width: 122rpx;
  121. height: 56rpx;
  122. color: #008FD6;
  123. line-height: 56rpx;
  124. background: #FFFFFF;
  125. border: 1rpx solid #008FD6;
  126. border-radius: 100rpx;
  127. }
  128. .right_button {
  129. width: 160rpx;
  130. }
  131. .placeholder {
  132. height: 40rpx;
  133. }
  134. .main_string {
  135. width: 6rpx;
  136. height: 60rpx;
  137. border-radius: 100rpx;
  138. background: red;
  139. }
  140. .loan-item {
  141. position: relative;
  142. }
  143. .accomplish-text {
  144. font-size: 24rpx;
  145. color: #00994D;
  146. background-color: #e7f7ef;
  147. padding: 6rpx 30rpx;
  148. line-height: 30rpx;
  149. border-radius: 0 30rpx 0 30rpx;
  150. position: absolute;
  151. right: 0;
  152. top: 0;
  153. }
  154. .unfinished {
  155. color: #F64646;
  156. background-color: #feeded;
  157. }
  158. button::after {
  159. border: none;
  160. }
  161. </style>