Index.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <template>
  2. <!-- 贷款 -->
  3. <div class="loan-header">
  4. <div class="header-content pf600 fs16 fc1F2937">
  5. <img
  6. class="left-arrow-image"
  7. src="@/assets/icon/index/left-arrow.svg"
  8. @click="toPath()" />
  9. 贷款
  10. <div class="save pf500 fs14 fcDF384C">
  11. <img src="@/assets/icon/index/Headphones.svg" alt="" />
  12. </div>
  13. </div>
  14. </div>
  15. <div class="loan-index">
  16. <div class="loan-info">
  17. <div class="info-left">
  18. <img src="../../../assets/img/index/user/default-head.png" alt="" />
  19. <div class="info-name">
  20. <div class="pf500 fs18 fc121212">用户昵称</div>
  21. <div class="pf400 fs14 fc6A7187">ID: 658908</div>
  22. </div>
  23. </div>
  24. <div class="info-right"></div>
  25. </div>
  26. <div class="loan-product margin-top19 pf500 fs14 fc333333">
  27. 请选择借贷产品
  28. <img src="../../../assets/icon/market/bottom-arrow.svg" alt="" />
  29. </div>
  30. <div class="loan-product-tips pf500 fs12 fcDF384C" v-show="productTips">
  31. 当前信用分不足,无法进行贷款,请选择其他借贷产品
  32. </div>
  33. <div class="loan-time margin-top10 pf500 fs14 fc333333">
  34. <div>还款周期</div>
  35. <div>15 天</div>
  36. </div>
  37. <div class="loan-price margin-top10">
  38. <input type="text" class="input pf500 fs14 fc333333" placeholder="借贷金额" />
  39. <div class="pf500 fs14 fc333333">USDT</div>
  40. </div>
  41. <div class="loan-range pf400 fs12 fc999999">借贷金额范围 10 USDT - 10000 USDT</div>
  42. <div class="loan-desc margin-top16 pf500 fs14 fc666666">
  43. <div>日利率</div>
  44. <div>0.16%</div>
  45. </div>
  46. <div class="loan-desc margin-top26 pf500 fs14 fc666666">
  47. <div>利息</div>
  48. <div>100 USDT</div>
  49. </div>
  50. <div class="loan-desc margin-top26 pf500 fs14 fc666666">
  51. <div>还款方式</div>
  52. <div>到期一次性还清</div>
  53. </div>
  54. <div class="loan-desc margin-top26 pf500 fs14 fc666666">
  55. <div>放款机构</div>
  56. <div>SDFFG508020</div>
  57. </div>
  58. <div class="loan-btn pf600 fs14 fcFFFFFF" @click="goCommitMessage">贷款</div>
  59. <div class="loan-rules pf600 fs14 fcDF384C" @click="goRules">贷款规则</div>
  60. </div>
  61. </template>
  62. <script setup>
  63. import { useRoute, useRouter } from "vue-router";
  64. import { ref } from "vue";
  65. const productTips = ref(false);
  66. const router = useRouter();
  67. const goRules = () => {
  68. router.push("/loanRules");
  69. };
  70. const toPath = () => {
  71. router.back();
  72. };
  73. const goCommitMessage = () => {
  74. router.push("/commitMessage");
  75. };
  76. </script>
  77. <style lang="less" scoped>
  78. .loan-header {
  79. position: fixed;
  80. left: 0;
  81. top: 0;
  82. z-index: 1;
  83. width: 100%;
  84. height: 48px;
  85. background: #ffffff;
  86. overflow: hidden;
  87. .header-content {
  88. display: flex;
  89. flex-direction: row;
  90. justify-content: center;
  91. align-items: center;
  92. position: relative;
  93. width: 100%;
  94. height: 48px;
  95. .left-arrow-image {
  96. position: absolute;
  97. left: 14px;
  98. top: 16px;
  99. width: 9px;
  100. height: 16px;
  101. }
  102. .save {
  103. position: absolute;
  104. top: 12px;
  105. right: 16px;
  106. width: 24px;
  107. height: 24px;
  108. }
  109. }
  110. }
  111. .loan-index {
  112. display: flex;
  113. flex-direction: column;
  114. justify-content: flex-start;
  115. align-items: center;
  116. margin-top: calc(48px + 15px);
  117. width: 100%;
  118. .margin-top19 {
  119. margin-top: 19px;
  120. }
  121. .margin-top10 {
  122. margin-top: 10px;
  123. }
  124. .margin-top16 {
  125. margin-top: 16px;
  126. }
  127. .margin-top26 {
  128. margin-top: 26px;
  129. }
  130. .loan-info {
  131. display: flex;
  132. flex-direction: row;
  133. justify-content: space-between;
  134. align-items: center;
  135. width: calc(349px - 22px);
  136. height: 90px;
  137. .info-left {
  138. display: flex;
  139. flex-direction: row;
  140. justify-content: flex-start;
  141. height: 56px;
  142. img {
  143. width: 56px;
  144. height: 56px;
  145. }
  146. .info-name {
  147. display: flex;
  148. flex-direction: column;
  149. justify-content: space-evenly;
  150. margin-left: 16px;
  151. height: 56px;
  152. }
  153. }
  154. .info-right {
  155. width: 90px;
  156. height: 90px;
  157. }
  158. }
  159. .loan-product,
  160. .loan-time {
  161. display: flex;
  162. flex-direction: row;
  163. justify-content: space-between;
  164. align-items: center;
  165. padding: 0 11px;
  166. width: 349px;
  167. height: 45px;
  168. border-radius: 6px;
  169. background: #f5f5f5;
  170. box-sizing: border-box;
  171. img {
  172. width: 12px;
  173. height: 8px;
  174. }
  175. }
  176. .loan-product-tips {
  177. margin-top: 6px;
  178. width: 349px;
  179. }
  180. .loan-price {
  181. display: flex;
  182. flex-direction: row;
  183. justify-content: space-between;
  184. align-items: center;
  185. padding-right: 11px;
  186. width: 349px;
  187. height: 45px;
  188. background: #f5f5f5;
  189. box-sizing: border-box;
  190. .input {
  191. padding-left: 11px;
  192. width: 80%;
  193. height: 100%;
  194. box-sizing: border-box;
  195. outline: none;
  196. border: none;
  197. border-radius: 6px;
  198. background: #f5f5f5;
  199. }
  200. }
  201. .loan-range {
  202. margin-top: 7px;
  203. width: 349px;
  204. height: 18px;
  205. line-height: 18px;
  206. }
  207. .loan-desc {
  208. display: flex;
  209. flex-direction: row;
  210. justify-content: space-between;
  211. align-items: center;
  212. width: 349px;
  213. height: 20px;
  214. }
  215. .loan-btn {
  216. margin-top: 76px;
  217. width: 311px;
  218. height: 40px;
  219. line-height: 40px;
  220. text-align: center;
  221. border-radius: 100px;
  222. background: #df384c;
  223. }
  224. .loan-rules {
  225. margin-top: 38px;
  226. }
  227. }
  228. </style>