task_tab.vue 3.3 KB

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