loan-item.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <template>
  2. <view class="p-30 box-border-box flex-1 flex-direction">
  3. <swiper class="swiper-box flex-direction animate__animated animate__fadeIn flex-1" circular>
  4. <swiper-item v-for="(item,index) in taskList" :key="index" class="flex-direction flex-1">
  5. <view class="item-box flex-direction flex-1 page-box-bg-fff m-b20 r-30 box-shadow-197">
  6. <view class="item-top box-border-box" :style="{background:lineColor[item.id%2]}">
  7. <view class="center row-justify-sb mb-24">
  8. <view class="center">
  9. <uni-icons type="home-filled" size="30" class="mr-10"></uni-icons>
  10. <view class="fc-155DFB sys-size-24 sys-weight-600 title-box">
  11. Commercial Real Estate
  12. </view>
  13. </view>
  14. <view class="heart-box" @click.stop="heartBut(item,true)" v-if="!item.live">
  15. <uni-icons type="heart" size="18" color="#99A1AF"></uni-icons>
  16. </view>
  17. <view class="heart-box animate__animated animate__zoomIn" @click.stop="heartBut(item,false)"
  18. v-else>
  19. <uni-icons type="heart-filled" size="18" color="#FB2C36"></uni-icons>
  20. </view>
  21. </view>
  22. <view class="mb-16 sys-size-32">
  23. {{item.name}}
  24. </view>
  25. <view class="center">
  26. <uni-icons v-for="item in item.percentage" class="mr-8" type="star-filled" size="18"
  27. color="#FFB900"></uni-icons>
  28. <view class="size-28 fc-4B5666">
  29. {{item.percentage}} Quality
  30. </view>
  31. </view>
  32. </view>
  33. <view class="item-bot box-border-box">
  34. <view class="center mb-14">
  35. <uni-icons type="home" size="18" color="#99A1AF" class="mr-10"></uni-icons>
  36. <view class="size-28 fc-99A1AF">
  37. Borrower
  38. </view>
  39. </view>
  40. <view class="sys-size-32 mb-12">
  41. {{item.description}}
  42. </view>
  43. <view class="size-22 fc-99A1AF mb-40">
  44. #{{item.time}}
  45. </view>
  46. </view>
  47. </view>
  48. </swiper-item>
  49. </swiper>
  50. <!-- <view class="task-body animate__animated animate__fadeIn flex-1" v-if="taskList.length>0">
  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. import ClientType from "@/pages/loan/components/clientType.vue";
  60. export default {
  61. components: {
  62. ClientType,
  63. EnBlank,
  64. EnButton
  65. },
  66. props: {
  67. type: {
  68. type: Number,
  69. default: 1
  70. },
  71. taskList: {
  72. type: Array,
  73. default: () => []
  74. },
  75. iconStatus: {
  76. type: Number,
  77. default: 1
  78. },
  79. leftImgStatus: {
  80. type: Number,
  81. default: 0
  82. },
  83. opacity: {
  84. type: Number,
  85. default: 0
  86. },
  87. back: {
  88. type: Boolean,
  89. default: false
  90. },
  91. is_bottom: {
  92. type: Boolean,
  93. default: false
  94. },
  95. },
  96. data() {
  97. return {
  98. leftImg: ['task-house', 'task-business', 'task-repayment'],
  99. iconList: ['task-audit', 'task-do', 'task-stay'],
  100. lineColor: ['#EEFDF4', '#EFF4FF'],
  101. isAjax: false,
  102. item: {}
  103. }
  104. },
  105. methods: {
  106. moveHandle() {
  107. return false
  108. },
  109. onCalculate(item, type) {
  110. this.$emit('onCalculate', {
  111. 'item': item,
  112. 'type': type
  113. })
  114. },
  115. makCall(phone) {
  116. tools.makingCall(phone)
  117. }
  118. }
  119. }
  120. </script>
  121. <style lang="scss" scoped>
  122. .en_button {
  123. border: none;
  124. }
  125. .task-body {
  126. height: 100%;
  127. }
  128. .left_button {
  129. height: 56rpx;
  130. color: #008FD6;
  131. line-height: 56rpx;
  132. background: #FFFFFF;
  133. border: 1rpx solid #008FD6;
  134. border-radius: 100rpx;
  135. }
  136. .right_button {}
  137. .placeholder {
  138. height: 40rpx;
  139. }
  140. .item-box {
  141. // display: block;
  142. position: relative;
  143. box-shadow: 5rpx 5rpx 5px 0 rgba(0, 0, 0, 0.2);
  144. overflow: auto;
  145. }
  146. .loan-item {
  147. position: relative;
  148. }
  149. .accomplish-text {
  150. font-size: 24rpx;
  151. color: #00994D;
  152. background-color: #e7f7ef;
  153. padding: 6rpx 30rpx;
  154. line-height: 30rpx;
  155. border-radius: 0 30rpx 0 30rpx;
  156. position: absolute;
  157. right: 0;
  158. top: 0;
  159. }
  160. .unfinished {
  161. color: #F64646;
  162. background-color: #feeded;
  163. }
  164. button::after {
  165. border: none;
  166. }
  167. .item-top {
  168. width: 100%;
  169. padding: 48rpx 48rpx 32rpx;
  170. border-radius: 30rpx 30rpx 0 0;
  171. }
  172. .item-bot {
  173. width: 100%;
  174. height: 100%;
  175. padding: 48rpx 48rpx 32rpx;
  176. border-radius: 0 0 30rpx 30rpx;
  177. overflow: auto;
  178. // max-height: ;
  179. }
  180. .title-box {
  181. padding: 4rpx 24rpx;
  182. border-radius: 20rpx;
  183. background: #DBEAFE;
  184. }
  185. .heart-box {
  186. width: 80rpx;
  187. height: 80rpx;
  188. background: #fff;
  189. border-radius: 50%;
  190. line-height: 80rpx;
  191. text-align: center;
  192. }
  193. </style>