task_details.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  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 class="p-20" v-if="current === 1">
  40. <property :property-list="propertyList"></property>
  41. </view>
  42. <view v-else-if="current ===2">
  43. <graph @setNode="setNode"></graph>
  44. </view>
  45. <view v-else-if="current ===3">
  46. <entities></entities>
  47. </view>
  48. <view v-else>
  49. <word></word>
  50. </view>
  51. </view>
  52. <popupModuleVue ref="popupModuleRef"></popupModuleVue>
  53. </view>
  54. </template>
  55. <script>
  56. import TaskTab from "@/common/task/task_tab.vue"
  57. // 身份信息
  58. import Identity from "./module/identity.vue"
  59. // 申请信息
  60. import Apply from "./module/apply.vue"
  61. // 第三方信息
  62. import ThirdParty from "./module/third_party.vue"
  63. // 资产信息
  64. import Property from "./module/property.vue"
  65. // 审核进度
  66. import Word from "./module/word.vue"
  67. // 跟进记录
  68. import Record from "./module/record.vue"
  69. import tools from "@/service/tools";
  70. import EnSelect from "@/components/en-utils/en-select/en-select.vue";
  71. import CreditList from "@/page_task/credit/credit.vue";
  72. import Graph from "@/page_task/task_details/module/graph.vue";
  73. import Entities from "@/page_task/task_details/module/entities.vue";
  74. import popupModuleVue from "@/pages/index/module/popup-module.vue";
  75. export default {
  76. components: {
  77. popupModuleVue,
  78. Entities,
  79. Graph,
  80. CreditList,
  81. EnSelect,
  82. TaskTab,
  83. Identity,
  84. ThirdParty,
  85. Apply,
  86. Property,
  87. Record,
  88. Word
  89. },
  90. data() {
  91. return {
  92. current: 1,
  93. fixedHeight: 220,
  94. options: {
  95. // autoHeight: true,
  96. slidesPerView: 1.1,
  97. centeredSlides: true,
  98. spaceBetween: 10,
  99. effect: 'cards'
  100. },
  101. list: [1, 2, 3],
  102. lists: [1, 2],
  103. businessId: '',
  104. product: {
  105. product_name: '',
  106. product_types: [],
  107. type_data: []
  108. },
  109. business: {
  110. id: 0,
  111. status: 0,
  112. phone: '',
  113. identity_one: '',
  114. identity_two: '',
  115. marriage_img: [],
  116. credit_img: [],
  117. }, //基本信息
  118. propertyList: [], //资产信息
  119. applyFor: {}, //申请信息
  120. credit: {}, //征信信息
  121. postLoan: {}, //贷后信息
  122. tripartite: [], //第三方信息
  123. linkman: [], //联系人信息
  124. stageData: {
  125. stageName: '',
  126. userName: ""
  127. },
  128. isAjax: false,
  129. isExecute: 0,
  130. msgList: [],
  131. executeData: [],
  132. showExecute: false,
  133. auditType: 0,
  134. previewList: [],
  135. imgKey: 0,
  136. imgList: [],
  137. replyId: "",
  138. stageList: [],
  139. businessStageList: [],
  140. businessFile: {
  141. fileList: [],
  142. imgList: [],
  143. videoList: [],
  144. },
  145. videoUrl: '',
  146. executeId: '',
  147. clientKey: [],
  148. propertyKey: [],
  149. appliesKey: [],
  150. tripartiteKey: [],
  151. linkmanKey: [],
  152. creditKey: [],
  153. identityHeight: 0,
  154. thirdPartHeight: 0,
  155. applyHeight: 0,
  156. propertyHeight: 0,
  157. creditListHeight: 0,
  158. maxHeight: '100%',
  159. creditHeight: '100%',
  160. basicType:['1'],
  161. restType:['2'],
  162. isReturn:0,
  163. }
  164. },
  165. onLoad(data) {
  166. // #ifdef H5
  167. this.fixedHeight=150
  168. //#endif
  169. },
  170. mounted() {
  171. this.propertyList=[{
  172. 'house_city':'大连市',
  173. 'build_date':'2018',
  174. 'covered_area':'98.75',
  175. 'deed_num':'202000122985',
  176. 'currentPrice':'1165710.00',
  177. 'startPrice':'652798.00',
  178. 'house_address':'宜居园81号2单元1层1号房屋',
  179. 'property':[
  180. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/340792/30/21785/86397/68f6f6d7Ff0fdb2ab/d9ad7c8f2cdef1dc.jpg',
  181. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/338664/12/22399/52751/68f6f6d7F6fd72b4b/6ed837bd5826b6f7.jpg',
  182. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/347815/36/15489/64283/68f6f6d6F385e4cb9/0bdb5d185413939e.jpg',
  183. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/247415/33/34929/101756/68f6f6d6F1fcacd2d/ebd5f58bd3299959.jpg',
  184. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/338536/26/21976/65848/68f6f6d6F9e69fc0e/9abb292a0b12c485.jpg',
  185. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/300340/7/16860/116238/68f6f6d6Fe3e55ad4/628c7839402fde8f.jpg',
  186. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/341569/12/14423/82158/68f6f6d5F60b3c33d/0052294617b20ac9.jpg',
  187. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/338017/16/22104/211768/68f6f6d5Ff213b5a7/e02c819294a0f54e.jpg',
  188. ],
  189. },{
  190. 'house_city':'大连市',
  191. 'build_date':'2015',
  192. 'covered_area':'158.75',
  193. 'currentPrice':'1733994.00',
  194. 'startPrice':'971100.00',
  195. 'deed_num':'201800091904',
  196. 'house_address':'景山东园7号13层2号房屋',
  197. 'property':[
  198. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/336828/3/23029/147354/68f88ca1Fea4587dd/df1bf78aafd25a47.jpg',
  199. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/333084/1/26093/211684/68f88ca0F4d5d776f/75d941dd88e60852.jpg',
  200. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/246517/14/36611/138443/68f88ca0F32cbe247/b6dad4e0cd5b7d6c.jpg',
  201. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/329093/21/26448/175950/68f88c9fF28d563a6/b25361a29a36d51d.jpg',
  202. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/337862/13/18345/185848/68f88c9eFc9f70bd8/bd0ac6b32e4907da.jpg',
  203. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/344813/19/15929/106687/68f88c9eFf8d93ccc/41e7a6521c8100ab.jpg',
  204. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/247350/15/32118/248714/68f88c9dFb9c7a4b1/798b50954163dadf.jpg',
  205. 'https://img10.360buyimg.com/imgw/s288x1000_jfs/t1/332110/23/25736/365991/68f88c9cF9d0da101/c5f5f6030115d550.jpg',
  206. ],
  207. }]
  208. },
  209. methods: {
  210. setNode(node){
  211. node.attachmentName=node.name
  212. this.$refs.popupModuleRef.openPop(node.nodeType,node)
  213. },
  214. makingCall(phone){
  215. tools.makingCall(phone)
  216. },
  217. onShowImg(item) {
  218. console.log(this.businessFile.imgList)
  219. let imgIndex=this.businessFile.imgList.indexOf(item)
  220. if (imgIndex < 0) {
  221. this.businessFile.imgList.push(item)
  222. imgIndex=this.businessFile.imgList.length-1
  223. }
  224. console.log(this.businessFile.imgList)
  225. // 预览图片
  226. uni.previewImage({
  227. current: imgIndex,
  228. urls: this.businessFile.imgList,
  229. });
  230. },
  231. auditTask(auditType) {
  232. },
  233. setPostLoan() {
  234. },
  235. editTask() {
  236. },
  237. cancellation() {
  238. },
  239. endTask() {
  240. },
  241. takeTask() {
  242. },
  243. closeExecutePopup(){
  244. },
  245. setNewExecute(type) {
  246. this.$refs.executePopup.close('bottom')
  247. },
  248. openExecute() {
  249. },
  250. setTaskOperate(type) {
  251. },
  252. async getTaskDetail() {
  253. },
  254. // 获取详情高度Swiper
  255. getDetailsHeight() {
  256. this.maxHeight = '100%'
  257. this.$nextTick(() => {
  258. const query = uni.createSelectorQuery().in(this);
  259. setTimeout(() => {
  260. query.select('.identity').boundingClientRect(data => {
  261. if (data) {
  262. this.maxHeight = data.height
  263. console.log(this.maxHeight);
  264. uni.pageScrollTo({
  265. scrollTop: 0,
  266. duration: 300
  267. });
  268. }
  269. }).exec();
  270. }, 200)
  271. })
  272. },
  273. // 获取详情高度Swiper
  274. onSwiper(swiper, index) {
  275. this.maxHeight = '100%'
  276. const query = uni.createSelectorQuery().in(this);
  277. this.$nextTick(() => {
  278. setTimeout(() => {
  279. if (index == 0) {
  280. query.select('.identity').boundingClientRect(data => {
  281. if (data) {
  282. this.maxHeight = data.height
  283. }
  284. }).exec();
  285. }
  286. if (index == 1) {
  287. query.select('.apply').boundingClientRect(data => {
  288. if (data) {
  289. this.maxHeight = data.height
  290. }
  291. }).exec();
  292. }
  293. if (index == 2) {
  294. query.select('.third_party').boundingClientRect(data => {
  295. if (data) {
  296. this.maxHeight = data.height
  297. }
  298. }).exec();
  299. }
  300. uni.pageScrollTo({
  301. scrollTop: 0,
  302. duration: 300
  303. });
  304. }, 200)
  305. })
  306. },
  307. // 征信高度Swiper
  308. onCreditHeight() {
  309. },
  310. // 征信高度Swiper
  311. onCreditSwiper(swiper, index) {
  312. },
  313. onChange(current) {
  314. if (current == 1) {
  315. this.getDetailsHeight()
  316. }
  317. if (current == 2) {
  318. this.onCreditHeight()
  319. }
  320. this.current = current
  321. uni.pageScrollTo({
  322. scrollTop: 0,
  323. duration: 300
  324. });
  325. },
  326. onSubmit() {
  327. }
  328. }
  329. }
  330. </script>
  331. <style lang="scss" scoped>
  332. .swiper-box{
  333. overflow: hidden;
  334. .swiper-item{
  335. transition: .5s ease;
  336. }
  337. .swiper-item-box{
  338. min-height: calc(100vh - 630rpx - 160rpx - env(safe-area-inset-bottom));
  339. }
  340. }
  341. .details_body {
  342. width: 100%;
  343. position: absolute;
  344. }
  345. .detail-bg {
  346. position: relative;
  347. }
  348. .detail-img {
  349. width: calc(100%);
  350. height: 220rpx;
  351. }
  352. .detail-content {
  353. position: absolute;
  354. top: 10rpx;
  355. left: 20rpx;
  356. .top-titke {
  357. height: 75rpx;
  358. line-height: 75rpx;
  359. // background: red;
  360. }
  361. .detail-line {
  362. width: 2rpx;
  363. height: 24rpx;
  364. background-color: #FFFFFF;
  365. }
  366. .buttom-titke {
  367. flex: 1;
  368. margin-top: 40rpx;
  369. height: 90rpx;
  370. width: 635rpx;
  371. line-height: 90rpx;
  372. border-radius: 20rpx;
  373. padding: 0 20rpx;
  374. }
  375. }
  376. .swiper-wrapper {
  377. z-index: 0 !important;
  378. }
  379. .video-box {
  380. height: 70vh;
  381. width: 100vw;
  382. .myVideo {
  383. height: 70vh;
  384. width: 100vw;
  385. }
  386. }
  387. </style>