task_details.vue 8.0 KB

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