task_details.vue 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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">
  41. <graph @setNode="setNode"></graph>
  42. </view>
  43. <view v-else-if="current ===3">
  44. </view>
  45. <view v-else>
  46. <word></word>
  47. </view>
  48. <entities></entities>
  49. </view>
  50. <uni-popup ref="executePopup" type="bottom">
  51. <EnSelect title="请选择任务接收人" :local-data="executeData" ref="system" v-model="executeId"
  52. @setAffirm="setNewExecute" @close="closeExecutePopup"></EnSelect>
  53. </uni-popup>
  54. </view>
  55. </template>
  56. <script>
  57. import TaskTab from "@/common/task/task_tab.vue"
  58. // 身份信息
  59. import Identity from "./module/identity.vue"
  60. // 申请信息
  61. import Apply from "./module/apply.vue"
  62. // 第三方信息
  63. import ThirdParty from "./module/third_party.vue"
  64. // 资产信息
  65. import Property from "./module/property.vue"
  66. // 审核进度
  67. import Word from "./module/word.vue"
  68. // 跟进记录
  69. import Record from "./module/record.vue"
  70. import tools from "@/service/tools";
  71. import EnSelect from "@/components/en-utils/en-select/en-select.vue";
  72. import CreditList from "@/page_task/credit/credit.vue";
  73. import Graph from "@/page_task/task_details/module/graph.vue";
  74. import Entities from "@/page_task/task_details/module/entities.vue";
  75. export default {
  76. components: {
  77. Entities,
  78. Graph,
  79. CreditList,
  80. EnSelect,
  81. TaskTab,
  82. Identity,
  83. ThirdParty,
  84. Apply,
  85. Property,
  86. Record,
  87. Word
  88. },
  89. data() {
  90. return {
  91. current: 1,
  92. fixedHeight: 220,
  93. options: {
  94. // autoHeight: true,
  95. slidesPerView: 1.1,
  96. centeredSlides: true,
  97. spaceBetween: 10,
  98. effect: 'cards'
  99. },
  100. list: [1, 2, 3],
  101. lists: [1, 2],
  102. businessId: '',
  103. product: {
  104. product_name: '',
  105. product_types: [],
  106. type_data: []
  107. },
  108. business: {
  109. id: 0,
  110. status: 0,
  111. phone: '',
  112. identity_one: '',
  113. identity_two: '',
  114. marriage_img: [],
  115. credit_img: [],
  116. }, //基本信息
  117. propertyList: [], //资产信息
  118. applyFor: {}, //申请信息
  119. credit: {}, //征信信息
  120. postLoan: {}, //贷后信息
  121. tripartite: [], //第三方信息
  122. linkman: [], //联系人信息
  123. stageData: {
  124. stageName: '',
  125. userName: ""
  126. },
  127. isAjax: false,
  128. isExecute: 0,
  129. msgList: [],
  130. executeData: [],
  131. showExecute: false,
  132. auditType: 0,
  133. previewList: [],
  134. imgKey: 0,
  135. imgList: [],
  136. replyId: "",
  137. stageList: [],
  138. businessStageList: [],
  139. businessFile: {
  140. fileList: [],
  141. imgList: [],
  142. videoList: [],
  143. },
  144. videoUrl: '',
  145. executeId: '',
  146. clientKey: [],
  147. propertyKey: [],
  148. appliesKey: [],
  149. tripartiteKey: [],
  150. linkmanKey: [],
  151. creditKey: [],
  152. identityHeight: 0,
  153. thirdPartHeight: 0,
  154. applyHeight: 0,
  155. propertyHeight: 0,
  156. creditListHeight: 0,
  157. maxHeight: '100%',
  158. creditHeight: '100%',
  159. basicType:['1'],
  160. restType:['2'],
  161. isReturn:0
  162. }
  163. },
  164. onLoad(data) {
  165. // #ifdef H5
  166. this.fixedHeight=150
  167. //#endif
  168. },
  169. mounted() {
  170. },
  171. methods: {
  172. setNode(node){
  173. console.log("----------事件回调----------")
  174. console.log(node)
  175. },
  176. makingCall(phone){
  177. tools.makingCall(phone)
  178. },
  179. onShowImg(item) {
  180. console.log(this.businessFile.imgList)
  181. let imgIndex=this.businessFile.imgList.indexOf(item)
  182. if (imgIndex < 0) {
  183. this.businessFile.imgList.push(item)
  184. imgIndex=this.businessFile.imgList.length-1
  185. }
  186. console.log(this.businessFile.imgList)
  187. // 预览图片
  188. uni.previewImage({
  189. current: imgIndex,
  190. urls: this.businessFile.imgList,
  191. });
  192. },
  193. auditTask(auditType) {
  194. },
  195. setPostLoan() {
  196. },
  197. editTask() {
  198. },
  199. cancellation() {
  200. },
  201. endTask() {
  202. },
  203. takeTask() {
  204. },
  205. closeExecutePopup(){
  206. },
  207. setNewExecute(type) {
  208. this.$refs.executePopup.close('bottom')
  209. },
  210. openExecute() {
  211. },
  212. setTaskOperate(type) {
  213. },
  214. async getTaskDetail() {
  215. },
  216. // 获取详情高度Swiper
  217. getDetailsHeight() {
  218. this.maxHeight = '100%'
  219. this.$nextTick(() => {
  220. const query = uni.createSelectorQuery().in(this);
  221. setTimeout(() => {
  222. query.select('.identity').boundingClientRect(data => {
  223. if (data) {
  224. this.maxHeight = data.height
  225. console.log(this.maxHeight);
  226. uni.pageScrollTo({
  227. scrollTop: 0,
  228. duration: 300
  229. });
  230. }
  231. }).exec();
  232. }, 200)
  233. })
  234. },
  235. // 获取详情高度Swiper
  236. onSwiper(swiper, index) {
  237. this.maxHeight = '100%'
  238. const query = uni.createSelectorQuery().in(this);
  239. this.$nextTick(() => {
  240. setTimeout(() => {
  241. if (index == 0) {
  242. query.select('.identity').boundingClientRect(data => {
  243. if (data) {
  244. this.maxHeight = data.height
  245. }
  246. }).exec();
  247. }
  248. if (index == 1) {
  249. query.select('.apply').boundingClientRect(data => {
  250. if (data) {
  251. this.maxHeight = data.height
  252. }
  253. }).exec();
  254. }
  255. if (index == 2) {
  256. query.select('.third_party').boundingClientRect(data => {
  257. if (data) {
  258. this.maxHeight = data.height
  259. }
  260. }).exec();
  261. }
  262. uni.pageScrollTo({
  263. scrollTop: 0,
  264. duration: 300
  265. });
  266. }, 200)
  267. })
  268. },
  269. // 征信高度Swiper
  270. onCreditHeight() {
  271. },
  272. // 征信高度Swiper
  273. onCreditSwiper(swiper, index) {
  274. },
  275. onChange(current) {
  276. if (current == 1) {
  277. this.getDetailsHeight()
  278. }
  279. if (current == 2) {
  280. this.onCreditHeight()
  281. }
  282. this.current = current
  283. uni.pageScrollTo({
  284. scrollTop: 0,
  285. duration: 300
  286. });
  287. },
  288. onSubmit() {
  289. }
  290. }
  291. }
  292. </script>
  293. <style lang="scss" scoped>
  294. .swiper-box{
  295. overflow: hidden;
  296. .swiper-item{
  297. transition: .5s ease;
  298. }
  299. .swiper-item-box{
  300. min-height: calc(100vh - 630rpx - 160rpx - env(safe-area-inset-bottom));
  301. }
  302. }
  303. .details_body {
  304. width: 100%;
  305. position: absolute;
  306. }
  307. .detail-bg {
  308. position: relative;
  309. }
  310. .detail-img {
  311. width: calc(100%);
  312. height: 220rpx;
  313. }
  314. .detail-content {
  315. position: absolute;
  316. top: 10rpx;
  317. left: 20rpx;
  318. .top-titke {
  319. height: 75rpx;
  320. line-height: 75rpx;
  321. // background: red;
  322. }
  323. .detail-line {
  324. width: 2rpx;
  325. height: 24rpx;
  326. background-color: #FFFFFF;
  327. }
  328. .buttom-titke {
  329. flex: 1;
  330. margin-top: 40rpx;
  331. height: 90rpx;
  332. width: 635rpx;
  333. line-height: 90rpx;
  334. border-radius: 20rpx;
  335. padding: 0 20rpx;
  336. }
  337. }
  338. .swiper-wrapper {
  339. z-index: 0 !important;
  340. }
  341. .video-box {
  342. height: 70vh;
  343. width: 100vw;
  344. .myVideo {
  345. height: 70vh;
  346. width: 100vw;
  347. }
  348. }
  349. </style>