task_detailsa.vue 8.6 KB

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