loan-item.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <template>
  2. <view class="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"
  5. class="flex-direction p-30 box-border-box flex-1">
  6. <view class="item-box flex-direction flex-1 page-box-bg-fff r-30 box-shadow-197">
  7. <view class="item-top box-border-box" :style="{background:lineColor[item.id%2]}">
  8. <view class="center row-justify-sb mb-24">
  9. <view class="center">
  10. <uni-icons type="home-filled" size="30" class="mr-10"></uni-icons>
  11. <view class="fc-155DFB sys-size-24 sys-weight-600 title-box">
  12. Commercial Real Estate
  13. </view>
  14. </view>
  15. <view class="heart-box" @click.stop="heartBut(item,true)" v-if="!item.live">
  16. <uni-icons type="heart" size="18" color="#99A1AF"></uni-icons>
  17. </view>
  18. <view class="heart-box animate__animated animate__zoomIn" @click.stop="heartBut(item,false)"
  19. v-else>
  20. <uni-icons type="heart-filled" size="18" color="#FB2C36"></uni-icons>
  21. </view>
  22. </view>
  23. <view class="mb-16 sys-size-32">
  24. {{item.name}}
  25. </view>
  26. <view class="center">
  27. <uni-icons v-for="item in item.percentage" class="mr-8" type="star-filled" size="18"
  28. color="#FFB900"></uni-icons>
  29. <view class="size-28 fc-4B5666">
  30. {{item.percentage}} Quality
  31. </view>
  32. </view>
  33. </view>
  34. <view class="item-bot box-border-box">
  35. <view class="center mb-14">
  36. <uni-icons type="home" size="18" color="#99A1AF" class="mr-10"></uni-icons>
  37. <view class="size-28 fc-99A1AF">
  38. Borrower
  39. </view>
  40. </view>
  41. <view class="sys-size-32 mb-12">
  42. {{item.description}}
  43. </view>
  44. <view class="size-22 fc-99A1AF mb-40">
  45. #{{item.time}}
  46. </view>
  47. <view class="amount-box box-border-box sys-radius-20 center">
  48. <view class="mr-20 amount-icon">
  49. <uni-icons type="wallet" size="18" color="#F54900"></uni-icons>
  50. </view>
  51. <view class="flex-direction">
  52. <view class="fc-343C47 size-24">
  53. Principal Amount
  54. </view>
  55. <view class="size-48">
  56. ${{item.amount}}M
  57. </view>
  58. </view>
  59. </view>
  60. <view class="center flex-wrap mb-32">
  61. <view class="mb-16 mr-20 bgc-F9FAFB r-40 b-F3F4F6-1 p-24 box-border-box w-49">
  62. <view class="icon-box mb-16 bgc-fff">
  63. <uni-icons type="arrow-up" size="18" color="#0F41AF"></uni-icons>
  64. </view>
  65. <view class="fc-6A7383 size-24 mb-16">
  66. Interest Rate
  67. </view>
  68. <view class="size-36">
  69. {{item.trend}}
  70. </view>
  71. </view>
  72. <view class="mb-16 flex-1 bgc-F0FDF4 r-40 b-B9F8CF-1 p-24 box-border-box">
  73. <view class="icon-box mb-16 bgc-DBFCE7">
  74. <uni-icons type="locked" size="18" color="#00A63D"></uni-icons>
  75. </view>
  76. <view class="fc-6A7383 size-24 mb-16">
  77. LTV Ratio
  78. </view>
  79. <view class="size-36">
  80. {{item.risk}}
  81. </view>
  82. </view>
  83. <view class="mr-20 bgc-F9FAFB r-40 b-F3F4F6-1 p-24 box-border-box w-49">
  84. <view class="icon-box mb-16 bgc-fff">
  85. <uni-icons type="calendar" size="18" color="#9810FA"></uni-icons>
  86. </view>
  87. <view class="fc-6A7383 size-24 mb-16">
  88. Maturity
  89. </view>
  90. <view class="size-36">
  91. Dec 31, 2027
  92. </view>
  93. </view>
  94. <view class="bgc-F9FAFB flex-1 r-40 b-F3F4F6-1 p-24 box-border-box">
  95. <view class="icon-box mb-16 bgc-fff">
  96. <uni-icons type="close" size="18" color="#4E38F5"></uni-icons>
  97. </view>
  98. <view class="fc-6A7383 size-24 mb-16">
  99. Collateral
  100. </view>
  101. <view class="size-36">
  102. $13.5M
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. </swiper-item>
  109. </swiper>
  110. <!-- <view class="task-body animate__animated animate__fadeIn flex-1" v-if="taskList.length>0">
  111. </view>
  112. <en-blank v-else></en-blank> -->
  113. </view>
  114. </template>
  115. <script>
  116. import EnButton from "@/components/en-utils/en-button/en-button.vue";
  117. import tools from "@/service/tools";
  118. import EnBlank from "@/components/en-utils/en-blank/en-blank.vue";
  119. import ClientType from "@/pages/loan/components/clientType.vue";
  120. export default {
  121. components: {
  122. ClientType,
  123. EnBlank,
  124. EnButton
  125. },
  126. props: {
  127. type: {
  128. type: Number,
  129. default: 1
  130. },
  131. taskList: {
  132. type: Array,
  133. default: () => []
  134. },
  135. iconStatus: {
  136. type: Number,
  137. default: 1
  138. },
  139. leftImgStatus: {
  140. type: Number,
  141. default: 0
  142. },
  143. opacity: {
  144. type: Number,
  145. default: 0
  146. },
  147. back: {
  148. type: Boolean,
  149. default: false
  150. },
  151. is_bottom: {
  152. type: Boolean,
  153. default: false
  154. },
  155. },
  156. data() {
  157. return {
  158. leftImg: ['task-house', 'task-business', 'task-repayment'],
  159. iconList: ['task-audit', 'task-do', 'task-stay'],
  160. lineColor: ['#EEFDF4', '#EFF4FF'],
  161. isAjax: false,
  162. item: {}
  163. }
  164. },
  165. methods: {
  166. moveHandle() {
  167. return false
  168. },
  169. onCalculate(item, type) {
  170. this.$emit('onCalculate', {
  171. 'item': item,
  172. 'type': type
  173. })
  174. },
  175. makCall(phone) {
  176. tools.makingCall(phone)
  177. }
  178. }
  179. }
  180. </script>
  181. <style lang="scss" scoped>
  182. .icon-box {
  183. width: 64rpx;
  184. height: 64rpx;
  185. line-height: 64rpx;
  186. text-align: center;
  187. border-radius: 50%;
  188. }
  189. .w-49 {
  190. width: 49%;
  191. }
  192. .amount-icon {
  193. width: 96rpx;
  194. height: 96rpx;
  195. background: #fff;
  196. line-height: 96rpx;
  197. text-align: center;
  198. border-radius: 40rpx;
  199. box-shadow: 0 2rpx 12rpx 0 rgba(0, 0, 0, 0.2);
  200. }
  201. .amount-box {
  202. width: 100%;
  203. padding: 32rpx;
  204. margin-bottom: 32rpx;
  205. border: .1rpx solid #FFEED5;
  206. background-image: linear-gradient(45deg, #FFF7ED 4%, #FDF3F7);
  207. }
  208. .en_button {
  209. border: none;
  210. }
  211. .task-body {
  212. height: 100%;
  213. }
  214. .left_button {
  215. height: 56rpx;
  216. color: #008FD6;
  217. line-height: 56rpx;
  218. background: #FFFFFF;
  219. border: 1rpx solid #008FD6;
  220. border-radius: 100rpx;
  221. }
  222. .right_button {}
  223. .placeholder {
  224. height: 40rpx;
  225. }
  226. .item-box {
  227. // display: block;
  228. position: relative;
  229. box-shadow: 5rpx 5rpx 5px 0 rgba(0, 0, 0, 0.2);
  230. overflow: auto;
  231. }
  232. .loan-item {
  233. position: relative;
  234. }
  235. .accomplish-text {
  236. font-size: 24rpx;
  237. color: #00994D;
  238. background-color: #e7f7ef;
  239. padding: 6rpx 30rpx;
  240. line-height: 30rpx;
  241. border-radius: 0 30rpx 0 30rpx;
  242. position: absolute;
  243. right: 0;
  244. top: 0;
  245. }
  246. .unfinished {
  247. color: #F64646;
  248. background-color: #feeded;
  249. }
  250. button::after {
  251. border: none;
  252. }
  253. .item-top {
  254. width: 100%;
  255. padding: 48rpx 48rpx 32rpx;
  256. border-radius: 30rpx 30rpx 0 0;
  257. }
  258. .item-bot {
  259. width: 100%;
  260. height: 100%;
  261. padding: 48rpx 48rpx 32rpx;
  262. border-radius: 0 0 30rpx 30rpx;
  263. overflow: auto;
  264. // max-height: ;
  265. }
  266. .title-box {
  267. padding: 4rpx 24rpx;
  268. border-radius: 20rpx;
  269. background: #DBEAFE;
  270. }
  271. .heart-box {
  272. width: 80rpx;
  273. height: 80rpx;
  274. background: #fff;
  275. border-radius: 50%;
  276. line-height: 80rpx;
  277. text-align: center;
  278. }
  279. </style>