index.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <template>
  2. <view class="page-box">
  3. <en-nav title="垫资还款" :bgckground-box="''" title-color="#FF121212"></en-nav>
  4. <view class="top">
  5. <image class="top-img" src="/static/img/test/top.png" mode="widthFix" />
  6. <image class="top-status animate__animated animate__fadeInDownBig" src="/static/img/test/status.png" mode="widthFix" />
  7. </view>
  8. <view class="from-title sys-radius-20">
  9. <view class="title-list">
  10. <view class="title-text sys-size-28 text-center sys-weight-600" :class="{'default-text':type===1}" @click="setType(1)">基础信息</view>
  11. <view class="title-text sys-size-28 text-center sys-weight-600" :class="{'default-text':type===2}" @click="setType(2)">资产/征信</view>
  12. <view class="title-text sys-size-28 text-center sys-weight-600" :class="{'default-text':type===3}" @click="setType(3)">跟进记录</view>
  13. <view class="title-text sys-size-28 text-center sys-weight-600" :class="{'default-text':type===4}" @click="setType(4)">审核进度</view>
  14. </view>
  15. <view class="title-bg" :class="{'title-bg-two':type===2,'title-bg-three':type===3,'title-bg-four':type===4}">
  16. <view class="bg-icon sys-background-dominant sys-radius-100" ></view>
  17. </view>
  18. </view>
  19. <view class="data-box">
  20. <z-swiper v-model="list" :options="options">
  21. <z-swiper-item :custom-style="{width:'88vw'}">
  22. <image class="image" src="/static/img/test/one.png" mode="widthFix">
  23. </image>
  24. </z-swiper-item>
  25. <z-swiper-item :custom-style="{width:'88vw'}">
  26. <image class="image" src="/static/img/test/two.png" mode="widthFix">
  27. </image>
  28. </z-swiper-item>
  29. <z-swiper-item :custom-style="{width:'88vw'}" >
  30. <image class="image" src="/static/img/test/therr.png" mode="widthFix">
  31. </image>
  32. </z-swiper-item>
  33. </z-swiper>
  34. </view>
  35. </view>
  36. </template>
  37. <script>
  38. import EnNav from "@/components/en-utils/en-nav/en-nav.vue";
  39. export default {
  40. components: {EnNav},
  41. data() {
  42. return {
  43. type:1,
  44. list:[
  45. 'https://cdn.zebraui.com/zebra-ui/images/swipe-demo/swipe1.jpg',
  46. 'https://cdn.zebraui.com/zebra-ui/images/swipe-demo/swipe2.jpg',
  47. 'https://cdn.zebraui.com/zebra-ui/images/swipe-demo/swipe2.jpg',
  48. ],
  49. options: {
  50. effect: 'coverflow',
  51. centeredSlides: true,
  52. slidesPerView: 'auto',
  53. coverflowEffect: {
  54. rotate: 50,
  55. stretch: 0,
  56. depth: 100,
  57. modifier: 1,
  58. slideShadows: true,
  59. },
  60. },
  61. slideCustomStyle: {
  62. display: 'flex',
  63. alignItems: 'center',
  64. justifyContent: 'center',
  65. borderRadius: '6rpx'
  66. },
  67. };
  68. },
  69. methods:{
  70. setType(type){
  71. if(type!==this.type){
  72. this.type=type
  73. }
  74. },
  75. }
  76. }
  77. </script>
  78. <style lang="scss">
  79. .page-box{
  80. min-height: 100vh;
  81. background-image: url("https://wealfavor-1257406827.cos.ap-beijing.myqcloud.com/app-serve/2024-4-18/gvd571v9s9.png?imageMogr2/quality/20");
  82. background-repeat: no-repeat;
  83. background-size: 100% auto;
  84. .top{
  85. position: relative;
  86. padding: 20rpx;
  87. .top-img{
  88. width: calc(100vw - 40rpx);
  89. }
  90. .top-status{
  91. position: absolute;
  92. top: 47rpx;
  93. right: 54rpx;
  94. width: 75rpx;
  95. }
  96. }
  97. .from-title{
  98. margin: 20rpx 20rpx 34rpx 20rpx;
  99. height: 90rpx;
  100. position: relative;
  101. background: linear-gradient( 180deg, rgba(255,255,255,0.57) 0%, rgba(255,255,255,0.86) 100%);
  102. .title-bg{
  103. position: absolute;
  104. top: 0;
  105. left: 0;
  106. transition: .5s ease;
  107. z-index: 1;
  108. background-image: url("/static/img/test/tab-bg.png");
  109. background-repeat: no-repeat;
  110. background-size: 100% auto;
  111. height:103rpx;
  112. width: 161rpx;
  113. .bg-icon{
  114. margin-top: 68rpx;
  115. margin-left: 63rpx;
  116. width: 45rpx;
  117. height: 4rpx;
  118. }
  119. }
  120. .title-bg-two{
  121. left: 25%;
  122. transition: .5s ease;
  123. }
  124. .title-bg-three{
  125. left: 50%;
  126. transition: .5s ease;
  127. }
  128. .title-bg-four{
  129. left: 75%;
  130. transition: .5s ease;
  131. }
  132. .title-list{
  133. display: flex;
  134. justify-content: space-between;
  135. z-index: 2;
  136. position: relative;
  137. .title-text{
  138. width: 25%;
  139. height: 90rpx;
  140. line-height: 90rpx;
  141. color: #333333;
  142. }
  143. .default-text{
  144. color: #10B261;
  145. }
  146. }
  147. }
  148. .data-box{
  149. margin-top: 20rpx;
  150. .image{
  151. width: 90vw;
  152. }
  153. }
  154. }
  155. </style>