task_details.vue 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. <template>
  2. <view class="total-page page-env-20 page-box">
  3. <Nav :back="isReturn!==1" :title="'任务详情'" :genre="2" :fixedHeight="fixedHeight">
  4. <view class="task-tabs m-b20" :style=" {top:`${$tools.topHeight()}px`}">
  5. <view class="detail-bg m-lr20 m-b10 m-t10">
  6. <image class="detail-img" src="/page_task/static/img/task-details/top-bg.png" mode="aspectFill">
  7. </image>
  8. <view class="detail-content">
  9. <view class="row-c m-l10 m-t16 m-b20 text-color-fff">
  10. <image class="wh-45 r-circle" src="https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/307262/4/9992/255939/684f9a78Fbddd6f3f/e07bf46597371d37.jpg"
  11. mode="aspectFill">
  12. </image>
  13. <text class="size-28 m-lr16 m-t6">大连市甘井子区宜居园81号2单元1层1号房屋</text>
  14. <view class="row-c size-24 sys-bg-007038 r-100 p-lr16 p-tb6 m-l20" >
  15. <text>住宅</text>
  16. </view>
  17. <image class="wh-60 animate__animated animate__fadeInDownBig"
  18. style="position: absolute;right: 20rpx;"
  19. :src="'/page_task/static/img/task-details/icon-1.png'"
  20. mode="aspectFill">
  21. </image>
  22. </view>
  23. <view class="row-justify-sb center buttom-titke sys-bg-BFD2CC text-color-12 size-24">
  24. <text class="size-28 sys-weight-600">72.47万</text>
  25. <text ><text class="size-28 text-color-E21 sys-weight-600">65.27万</text>起拍</text>
  26. <text>7.01%</text>
  27. <view class="row-c">
  28. <image class="wh-25 m-r10" src="/page_task/static/img/task-details/usrr.png" mode="">
  29. </image>
  30. <text>京东</text>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. <TaskTab :current="current" @onChange="onChange"></TaskTab>
  36. </view>
  37. </Nav>
  38. <view class="sys-list-background-color task-tabs-width ">
  39. <view v-if="current === 1"></view>
  40. <view v-else-if="current ===2"></view>
  41. <view v-else-if="current ===3"></view>
  42. <view v-else>
  43. <word></word>
  44. </view>
  45. <graph></graph>
  46. </view>
  47. <uni-popup ref="executePopup" type="bottom">
  48. <EnSelect title="请选择任务接收人" :local-data="executeData" ref="system" v-model="executeId"
  49. @setAffirm="setNewExecute" @close="closeExecutePopup"></EnSelect>
  50. </uni-popup>
  51. </view>
  52. </template>
  53. <script>
  54. import TaskTab from "@/common/task/task_tab.vue"
  55. // 身份信息
  56. import Identity from "./module/identity.vue"
  57. // 申请信息
  58. import Apply from "./module/apply.vue"
  59. // 第三方信息
  60. import ThirdParty from "./module/third_party.vue"
  61. // 资产信息
  62. import Property from "./module/property.vue"
  63. // 审核进度
  64. import Word from "./module/word.vue"
  65. // 跟进记录
  66. import Record from "./module/record.vue"
  67. import tools from "@/service/tools";
  68. import EnSelect from "@/components/en-utils/en-select/en-select.vue";
  69. import CreditList from "@/page_task/credit/credit.vue";
  70. import Graph from "@/page_task/task_details/module/graph.vue";
  71. export default {
  72. components: {
  73. Graph,
  74. CreditList,
  75. EnSelect,
  76. TaskTab,
  77. Identity,
  78. ThirdParty,
  79. Apply,
  80. Property,
  81. Record,
  82. Word
  83. },
  84. data() {
  85. return {
  86. current: 1,
  87. fixedHeight: 150,
  88. options: {
  89. // autoHeight: true,
  90. slidesPerView: 1.1,
  91. centeredSlides: true,
  92. spaceBetween: 10,
  93. effect: 'cards'
  94. },
  95. list: [1, 2, 3],
  96. lists: [1, 2],
  97. businessId: '',
  98. product: {
  99. product_name: '',
  100. product_types: [],
  101. type_data: []
  102. },
  103. business: {
  104. id: 0,
  105. status: 0,
  106. phone: '',
  107. identity_one: '',
  108. identity_two: '',
  109. marriage_img: [],
  110. credit_img: [],
  111. }, //基本信息
  112. propertyList: [], //资产信息
  113. applyFor: {}, //申请信息
  114. credit: {}, //征信信息
  115. postLoan: {}, //贷后信息
  116. tripartite: [], //第三方信息
  117. linkman: [], //联系人信息
  118. stageData: {
  119. stageName: '',
  120. userName: ""
  121. },
  122. isAjax: false,
  123. isExecute: 0,
  124. msgList: [],
  125. executeData: [],
  126. showExecute: false,
  127. auditType: 0,
  128. previewList: [],
  129. imgKey: 0,
  130. imgList: [],
  131. replyId: "",
  132. stageList: [],
  133. businessStageList: [],
  134. businessFile: {
  135. fileList: [],
  136. imgList: [],
  137. videoList: [],
  138. },
  139. videoUrl: '',
  140. executeId: '',
  141. clientKey: [],
  142. propertyKey: [],
  143. appliesKey: [],
  144. tripartiteKey: [],
  145. linkmanKey: [],
  146. creditKey: [],
  147. identityHeight: 0,
  148. thirdPartHeight: 0,
  149. applyHeight: 0,
  150. propertyHeight: 0,
  151. creditListHeight: 0,
  152. maxHeight: '100%',
  153. creditHeight: '100%',
  154. basicType:['1'],
  155. restType:['2'],
  156. isReturn:0
  157. }
  158. },
  159. onLoad(data) {
  160. console.log('-----------aaaaa-----------')
  161. },
  162. mounted() {
  163. },
  164. methods: {
  165. makingCall(phone){
  166. tools.makingCall(phone)
  167. },
  168. onShowImg(item) {
  169. console.log(this.businessFile.imgList)
  170. let imgIndex=this.businessFile.imgList.indexOf(item)
  171. if (imgIndex < 0) {
  172. this.businessFile.imgList.push(item)
  173. imgIndex=this.businessFile.imgList.length-1
  174. }
  175. console.log(this.businessFile.imgList)
  176. // 预览图片
  177. uni.previewImage({
  178. current: imgIndex,
  179. urls: this.businessFile.imgList,
  180. });
  181. },
  182. auditTask(auditType) {
  183. },
  184. setPostLoan() {
  185. },
  186. editTask() {
  187. },
  188. cancellation() {
  189. },
  190. endTask() {
  191. },
  192. takeTask() {
  193. },
  194. closeExecutePopup(){
  195. },
  196. setNewExecute(type) {
  197. this.$refs.executePopup.close('bottom')
  198. },
  199. openExecute() {
  200. },
  201. setTaskOperate(type) {
  202. },
  203. async getTaskDetail() {
  204. },
  205. // 获取详情高度Swiper
  206. getDetailsHeight() {
  207. this.maxHeight = '100%'
  208. this.$nextTick(() => {
  209. const query = uni.createSelectorQuery().in(this);
  210. setTimeout(() => {
  211. query.select('.identity').boundingClientRect(data => {
  212. if (data) {
  213. this.maxHeight = data.height
  214. console.log(this.maxHeight);
  215. uni.pageScrollTo({
  216. scrollTop: 0,
  217. duration: 300
  218. });
  219. }
  220. }).exec();
  221. }, 200)
  222. })
  223. },
  224. // 获取详情高度Swiper
  225. onSwiper(swiper, index) {
  226. this.maxHeight = '100%'
  227. const query = uni.createSelectorQuery().in(this);
  228. this.$nextTick(() => {
  229. setTimeout(() => {
  230. if (index == 0) {
  231. query.select('.identity').boundingClientRect(data => {
  232. if (data) {
  233. this.maxHeight = data.height
  234. }
  235. }).exec();
  236. }
  237. if (index == 1) {
  238. query.select('.apply').boundingClientRect(data => {
  239. if (data) {
  240. this.maxHeight = data.height
  241. }
  242. }).exec();
  243. }
  244. if (index == 2) {
  245. query.select('.third_party').boundingClientRect(data => {
  246. if (data) {
  247. this.maxHeight = data.height
  248. }
  249. }).exec();
  250. }
  251. uni.pageScrollTo({
  252. scrollTop: 0,
  253. duration: 300
  254. });
  255. }, 200)
  256. })
  257. },
  258. // 征信高度Swiper
  259. onCreditHeight() {
  260. },
  261. // 征信高度Swiper
  262. onCreditSwiper(swiper, index) {
  263. },
  264. onChange(current) {
  265. if (current == 1) {
  266. this.getDetailsHeight()
  267. }
  268. if (current == 2) {
  269. this.onCreditHeight()
  270. }
  271. this.current = current
  272. uni.pageScrollTo({
  273. scrollTop: 0,
  274. duration: 300
  275. });
  276. },
  277. onSubmit() {
  278. }
  279. }
  280. }
  281. </script>
  282. <style lang="scss" scoped>
  283. .swiper-box{
  284. overflow: hidden;
  285. .swiper-item{
  286. transition: .5s ease;
  287. }
  288. .swiper-item-box{
  289. min-height: calc(100vh - 630rpx - 160rpx - env(safe-area-inset-bottom));
  290. }
  291. }
  292. .details_body {
  293. width: 100%;
  294. position: absolute;
  295. }
  296. .detail-bg {
  297. position: relative;
  298. }
  299. .detail-img {
  300. width: calc(100%);
  301. height: 220rpx;
  302. }
  303. .detail-content {
  304. position: absolute;
  305. top: 10rpx;
  306. left: 20rpx;
  307. .top-titke {
  308. height: 75rpx;
  309. line-height: 75rpx;
  310. // background: red;
  311. }
  312. .detail-line {
  313. width: 2rpx;
  314. height: 24rpx;
  315. background-color: #FFFFFF;
  316. }
  317. .buttom-titke {
  318. flex: 1;
  319. margin-top: 40rpx;
  320. height: 90rpx;
  321. width: 635rpx;
  322. line-height: 90rpx;
  323. border-radius: 20rpx;
  324. padding: 0 20rpx;
  325. }
  326. }
  327. .swiper-wrapper {
  328. z-index: 0 !important;
  329. }
  330. .video-box {
  331. height: 70vh;
  332. width: 100vw;
  333. .myVideo {
  334. height: 70vh;
  335. width: 100vw;
  336. }
  337. }
  338. </style>