task_details.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <view class="total-page page-env-20 page-box">
  3. <Nav :title="'任务详情'" :genre="1" :fixedHeight="fixedHeight">
  4. <view class="task-tabs m-b20" style="z-index: 9999;" :style=" {top:`${$tools.topHeight()}px`}">
  5. <view class="detail-bg m-lr20 m-b10 m-t10">
  6. <image class="detail-img" src="/static/img/task-details/top-bg.png" mode="aspectFill"></image>
  7. <view class="detail-content">
  8. <view class="row-c m-l10 m-t16 m-b20 text-color-fff">
  9. <image class="wh-45 r-circle" src="../../static/img/logo.png" mode="aspectFill"></image>
  10. <text class="size-28 m-lr16">刘方伟</text>
  11. <view class="size-24 row-c sys-bg-007038 r-100 p-lr16 p-tb6">
  12. <text>男</text>
  13. <view class="detail-line m-lr10"></view>
  14. <text>45岁</text>
  15. </view>
  16. <view class="row-c size-24 sys-bg-007038 r-100 p-lr16 p-tb6 m-l20">
  17. <image class="wh-20" src="/static/img/task-details/phone-two.png" mode="aspectFill">
  18. </image>
  19. <text>12154131313</text>
  20. </view>
  21. <image class="wh-60 animate__animated animate__zoomIn"
  22. style="position: absolute;right: 20rpx;" src="/static/img/task-details/icon-one.png"
  23. mode="aspectFill">
  24. </image>
  25. </view>
  26. <view class="row-justify-sb center buttom-titke sys-bg-BFD2CC text-color-12 size-24">
  27. <text class="size-28 text-color-E21 sys-weight-600">120万</text>
  28. <text>确认归档</text>
  29. <text>2024/12/24用款</text>
  30. <view class="row-c">
  31. <image class="wh-25 m-r10" src="/static/img/task-details/usrr.png" mode=""></image>
  32. <text>张单丹</text>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <TaskTab :current="current" @onChange="onChange"></TaskTab>
  38. </view>
  39. </Nav>
  40. <view class="details_body sys-list-background-color task-tabs-width page-env-160"
  41. :style="{top:`${$tools.topHeight()+fixedHeight}px`}">
  42. <view class="m-lr20 m-t20">
  43. <z-swiper v-model="list" :options="options" v-if="current === 1">
  44. <z-swiper-item>
  45. <Identity></Identity>
  46. </z-swiper-item>
  47. <z-swiper-item>
  48. <Apply></Apply>
  49. </z-swiper-item>
  50. <z-swiper-item>
  51. <ThirdParty></ThirdParty>
  52. </z-swiper-item>
  53. </z-swiper>
  54. <view class="" v-if="current === 2">
  55. <z-swiper v-model="lists" :options="options">
  56. <z-swiper-item>
  57. <Property></Property>
  58. </z-swiper-item>
  59. </z-swiper>
  60. </view>
  61. </view>
  62. <Record v-if="current === 3"></Record>
  63. <Steps v-if="current === 4"></Steps>
  64. </view>
  65. <EnButton :text="'冲销'" v-if="current === 1"></EnButton>
  66. <EnButton is_both :leftText="'交接'" :rightText="'操作'" v-if="current === 2" @onSubmit="onSubmit"></EnButton>
  67. </view>
  68. </template>
  69. <script>
  70. import TaskTab from "@/page_task/module/task_tab.vue"
  71. // 身份信息
  72. import Identity from "./module/identity.vue"
  73. // 申请信息
  74. import Apply from "./module/apply.vue"
  75. // 第三方信息
  76. import ThirdParty from "./module/third_party.vue"
  77. // 资产信息
  78. import Property from "./module/property.vue"
  79. // 审核进度
  80. import Steps from "./module/steps.vue"
  81. // 跟进记录
  82. import Record from "./module/record.vue"
  83. export default {
  84. components: {
  85. TaskTab,
  86. Identity,
  87. ThirdParty,
  88. Apply,
  89. Property,
  90. Record,
  91. Steps
  92. },
  93. data() {
  94. return {
  95. current: 1,
  96. fixedHeight: 200,
  97. options: {
  98. autoHeight: true,
  99. },
  100. list: [1, 2, 3],
  101. lists: [1, 2],
  102. }
  103. },
  104. methods: {
  105. onChange(current) {
  106. this.current = current
  107. },
  108. onSubmit() {
  109. uni.navigateTo({
  110. url: "/page_task/task_operate/task_operate"
  111. })
  112. }
  113. }
  114. }
  115. </script>
  116. <style lang="scss" scoped>
  117. .details_body {
  118. width: 100%;
  119. position: absolute;
  120. }
  121. .detail-bg {
  122. position: relative;
  123. }
  124. .detail-img {
  125. width: calc(100%);
  126. height: 220rpx;
  127. }
  128. .detail-content {
  129. position: absolute;
  130. top: 10rpx;
  131. left: 20rpx;
  132. .top-titke {
  133. height: 75rpx;
  134. line-height: 75rpx;
  135. // background: red;
  136. }
  137. .detail-line {
  138. width: 2rpx;
  139. height: 24rpx;
  140. background-color: #FFFFFF;
  141. }
  142. .buttom-titke {
  143. flex: 1;
  144. margin-top: 40rpx;
  145. height: 90rpx;
  146. width: 635rpx;
  147. line-height: 90rpx;
  148. border-radius: 20rpx;
  149. padding: 0 20rpx;
  150. }
  151. }
  152. </style>