loan-item.vue 7.5 KB

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