rate_compare.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <view class="total-page page_env-20 page-box sys-list-background-color task-bg">
  3. <Nav title="利率对比" :genre="1" is_fixed></Nav>
  4. <view class="m-20 text-color-12">
  5. <view class="sys-background-fff p-30 r-30">
  6. <view class="center">
  7. <image class="wh-60" src="/static/img/task/task-else.png" mode="aspectFill"></image>
  8. <text class="size-28 sys-weight-600 m-l20">垫资还款</text>
  9. </view>
  10. <view class="row-justify-sb center sys-from-background-color p-tb30 p-lr40 r-30 m-t30">
  11. <view class="column-c">
  12. <view class="size-26 m-b10">张三</view>
  13. <text class="size-24 text-color-666">贷款人姓名</text>
  14. </view>
  15. <view class="column-c">
  16. <view class="size-26 m-b10">{{hidePhone('17717888888')}}</view>
  17. <text class="size-24 text-color-666">联系方式</text>
  18. </view>
  19. <view class="column-c">
  20. <view class="size-26 m-b10">2024-08-08</view>
  21. <text class="size-24 text-color-666">申请时间</text>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="sys-background-fff p-tb30 r-30 m-t20">
  26. <view class="container">
  27. <view class="box left-box">
  28. <text class="title">核算前年利率</text>
  29. <text class="number">23.27%</text>
  30. </view>
  31. <view class="box middle-box">
  32. <text class="title">差值</text>
  33. <text class="number">5.76%</text>
  34. </view>
  35. <view class="box right-box">
  36. <text class="title">核算后年利率</text>
  37. <text class="number">18.00%</text>
  38. </view>
  39. </view>
  40. <view class="p-lr30 flex row-justify-sb">
  41. <view class="list-item">
  42. <ColumnItem></ColumnItem>
  43. </view>
  44. <view class="list-item">
  45. <ColumnItem is_center></ColumnItem>
  46. </view>
  47. <view class="list-item">
  48. <ColumnItem></ColumnItem>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. </template>
  55. <script>
  56. import tools from "@/service/tools";
  57. import ColumnItem from "../components/column-item.vue"
  58. export default {
  59. components: {
  60. ColumnItem
  61. },
  62. data() {
  63. return {}
  64. },
  65. methods: {
  66. hidePhone(phone) {
  67. return tools.hidePhone(phone)
  68. }
  69. }
  70. }
  71. </script>
  72. <style lang="scss" scoped>
  73. .list-item {
  74. flex: 1;
  75. text-align: center;
  76. }
  77. .container {
  78. display: flex;
  79. justify-content: space-between;
  80. }
  81. .box {
  82. position: relative;
  83. flex: 1;
  84. height: 125rpx;
  85. background-color: red;
  86. text-align: center;
  87. color: #fff;
  88. flex-direction: column;
  89. display: flex;
  90. justify-content: center;
  91. .title {
  92. font-size: 26rpx
  93. }
  94. .number {
  95. font-size: 28;
  96. font-weight: 600;
  97. padding-top: 10rpx;
  98. }
  99. }
  100. .left-box {
  101. position: relative;
  102. right: -15px;
  103. border-radius: 20rpx 0 0 20rpx;
  104. clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 0% 100%);
  105. background: linear-gradient(270deg, #FEA666 0%, #F9503D 100%);
  106. }
  107. .middle-box {
  108. position: relative;
  109. clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  110. background: linear-gradient(270deg, #745CFF 0%, #3993FD 100%);
  111. }
  112. .right-box {
  113. position: relative;
  114. left: -15px;
  115. border-radius: 0 20rpx 20rpx 0;
  116. clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 20% 100%);
  117. background: linear-gradient(270deg, #F9503D 0%, #FEA666 100%);
  118. }
  119. .box::before {
  120. content: '';
  121. position: absolute;
  122. top: -15rpx;
  123. left: -15rpx;
  124. right: -15rpx;
  125. bottom: -15rpx;
  126. border: 15rpx solid #f0f0f0;
  127. border-radius: 20rpx;
  128. pointer-events: none;
  129. }
  130. .left-box::before {
  131. clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%);
  132. }
  133. .middle-box::before {
  134. clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  135. }
  136. .right-box::before {
  137. clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 20% 100%);
  138. }
  139. </style>