|
|
@@ -7,7 +7,8 @@
|
|
|
</image>
|
|
|
<view class="detail-content">
|
|
|
<view class="row-c m-l10 m-t16 m-b20 text-color-fff">
|
|
|
- <image class="wh-45 r-circle" src="/page_task/static/img/task-details/head.png" mode="aspectFill">
|
|
|
+ <image class="wh-45 r-circle" src="/page_task/static/img/task-details/head.png"
|
|
|
+ mode="aspectFill">
|
|
|
</image>
|
|
|
<text class="size-28 m-lr16">{{business.name}}</text>
|
|
|
<view class="size-24 row-c sys-bg-007038 r-100 p-lr16 p-tb6">
|
|
|
@@ -45,25 +46,33 @@
|
|
|
<view class="sys-list-background-color task-tabs-width page-env-160"
|
|
|
:style="{top:`${$tools.topHeight()+fixedHeight}px`}">
|
|
|
<view class="m-t20">
|
|
|
- <z-swiper ref="zSwiper" v-model="list" :options="options" v-if="current === 1">
|
|
|
+ <z-swiper ref="zSwiper" v-model="list" :options="options" v-if="current === 1" @slideChange="onSwiper">
|
|
|
<z-swiper-item>
|
|
|
- <Identity :business="business" :linkman="linkman" :client-key="clientKey" @onShowImg="onShowImg"
|
|
|
- :linkman-key="linkmanKey"></Identity>
|
|
|
+ <Identity ref="identity" class="identity" :height="`${maxHeight-60}px`" :business="business"
|
|
|
+ :linkman="linkman" :client-key="clientKey" @onShowImg="onShowImg" :linkman-key="linkmanKey">
|
|
|
+ </Identity>
|
|
|
</z-swiper-item>
|
|
|
<z-swiper-item v-show="product.product_types.indexOf('3')>=0">
|
|
|
- <Apply :apply-for="applyFor" :applies-key="appliesKey" @onShowImg="onShowImg"></Apply>
|
|
|
+ <Apply class="apply" :height="`${maxHeight-60}px`" :apply-for="applyFor"
|
|
|
+ :applies-key="appliesKey" @onShowImg="onShowImg">
|
|
|
+ </Apply>
|
|
|
</z-swiper-item>
|
|
|
<z-swiper-item v-show="product.product_types.indexOf('4')>=0">
|
|
|
- <ThirdParty :tripartite="tripartite" :tripartite-key="tripartiteKey" @onShowImg="onShowImg"></ThirdParty>
|
|
|
+ <ThirdParty class="third_party" :height="`${maxHeight-60}px`" :tripartite="tripartite"
|
|
|
+ :tripartite-key="tripartiteKey" @onShowImg="onShowImg">
|
|
|
+ </ThirdParty>
|
|
|
</z-swiper-item>
|
|
|
</z-swiper>
|
|
|
<view class="" v-if="current === 2">
|
|
|
- <z-swiper v-model="lists" :options="options">
|
|
|
+ <z-swiper v-model="lists" :options="options" @slideChange="onCreditSwiper">
|
|
|
<z-swiper-item>
|
|
|
- <Property :property-list="propertyList" :property-key="propertyKey" @onShowImg="onShowImg"></Property>
|
|
|
+ <Property class="property" :height="`${creditHeight-60}px`" :property-list="propertyList"
|
|
|
+ :property-key="propertyKey" @onShowImg="onShowImg">
|
|
|
+ </Property>
|
|
|
</z-swiper-item>
|
|
|
<z-swiper-item>
|
|
|
- <credit-list :credit-data="credit" :credit-key="creditKey" @onShowImg="onShowImg"></credit-list>
|
|
|
+ <credit-list class="credit_list" :height="`${creditHeight-60}px`" :credit-data="credit"
|
|
|
+ :credit-key="creditKey" @onShowImg="onShowImg"></credit-list>
|
|
|
</z-swiper-item>
|
|
|
</z-swiper>
|
|
|
</view>
|
|
|
@@ -122,11 +131,11 @@
|
|
|
takeTask
|
|
|
} from "@/api/task";
|
|
|
import EnSelect from "@/components/en-utils/en-select/en-select.vue";
|
|
|
- import CreditList from "@/page_task/credit/credit.vue";
|
|
|
+ import CreditList from "@/page_task/credit/credit.vue";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
- CreditList,
|
|
|
+ CreditList,
|
|
|
EnSelect,
|
|
|
TaskTab,
|
|
|
Identity,
|
|
|
@@ -139,13 +148,13 @@
|
|
|
data() {
|
|
|
return {
|
|
|
current: 1,
|
|
|
- fixedHeight: 195,
|
|
|
+ fixedHeight: 200,
|
|
|
options: {
|
|
|
- autoHeight: true,
|
|
|
+ // autoHeight: true,
|
|
|
slidesPerView: 1.1,
|
|
|
centeredSlides: true,
|
|
|
spaceBetween: 10,
|
|
|
- effect: 'cards'
|
|
|
+ effect: 'cards'
|
|
|
},
|
|
|
list: [1, 2, 3],
|
|
|
lists: [1, 2],
|
|
|
@@ -156,7 +165,7 @@
|
|
|
type_data: []
|
|
|
},
|
|
|
business: {
|
|
|
- id:0,
|
|
|
+ id: 0,
|
|
|
status: 0,
|
|
|
phone: '',
|
|
|
identity_one: '',
|
|
|
@@ -199,6 +208,13 @@
|
|
|
tripartiteKey: [],
|
|
|
linkmanKey: [],
|
|
|
creditKey: [],
|
|
|
+ identityHeight: 0,
|
|
|
+ thirdPartHeight: 0,
|
|
|
+ applyHeight: 0,
|
|
|
+ propertyHeight: 0,
|
|
|
+ creditListHeight: 0,
|
|
|
+ maxHeight: '100%',
|
|
|
+ creditHeight: '100%',
|
|
|
}
|
|
|
},
|
|
|
onLoad(data) {
|
|
|
@@ -215,16 +231,16 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- onShowImg(item) {
|
|
|
- if (this.businessFile.imgList.length < 0) {
|
|
|
- this.businessFile.imgList.push(item)
|
|
|
- }
|
|
|
- // 预览图片
|
|
|
- uni.previewImage({
|
|
|
- current: item,
|
|
|
- urls: this.businessFile.imgList,
|
|
|
- });
|
|
|
- },
|
|
|
+ onShowImg(item) {
|
|
|
+ if (this.businessFile.imgList.length < 0) {
|
|
|
+ this.businessFile.imgList.push(item)
|
|
|
+ }
|
|
|
+ // 预览图片
|
|
|
+ uni.previewImage({
|
|
|
+ current: item,
|
|
|
+ urls: this.businessFile.imgList,
|
|
|
+ });
|
|
|
+ },
|
|
|
auditTask(auditType) {
|
|
|
uni.navigateTo({
|
|
|
url: '/page_task/task_operate/task_operate?businessId=' + this.business.id +
|
|
|
@@ -365,6 +381,7 @@
|
|
|
this.businessFile = res.data.businessFile
|
|
|
this.$refs.recordObj.startData()
|
|
|
this.$refs.zSwiper.swiper
|
|
|
+ this.getDetailsHeight()
|
|
|
this.setShowKey()
|
|
|
} else {
|
|
|
tools.leftClick()
|
|
|
@@ -394,9 +411,116 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
+ // 获取详情高度Swiper
|
|
|
+ getDetailsHeight() {
|
|
|
+ this.maxHeight = '100%'
|
|
|
+ this.$nextTick(() => {
|
|
|
+ const query = uni.createSelectorQuery().in(this);
|
|
|
+ setTimeout(() => {
|
|
|
+ query.select('.identity').boundingClientRect(data => {
|
|
|
+ if (data) {
|
|
|
+ this.maxHeight = data.height
|
|
|
+ console.log(this.maxHeight);
|
|
|
+ uni.pageScrollTo({
|
|
|
+ scrollTop: 0,
|
|
|
+ duration: 300
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).exec();
|
|
|
+ }, 200)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 获取详情高度Swiper
|
|
|
+ onSwiper(swiper, index) {
|
|
|
+ this.maxHeight = '100%'
|
|
|
+ const query = uni.createSelectorQuery().in(this);
|
|
|
+ this.$nextTick(() => {
|
|
|
+ setTimeout(() => {
|
|
|
+ if (index == 0) {
|
|
|
+ query.select('.identity').boundingClientRect(data => {
|
|
|
+ if (data) {
|
|
|
+ this.maxHeight = data.height
|
|
|
+ }
|
|
|
+ }).exec();
|
|
|
+ }
|
|
|
+ if (index == 1) {
|
|
|
+ query.select('.apply').boundingClientRect(data => {
|
|
|
+ if (data) {
|
|
|
+ this.maxHeight = data.height
|
|
|
+ }
|
|
|
+ }).exec();
|
|
|
+ }
|
|
|
+ if (index == 2) {
|
|
|
+ query.select('.third_party').boundingClientRect(data => {
|
|
|
+ if (data) {
|
|
|
+ this.maxHeight = data.height
|
|
|
+ }
|
|
|
+ }).exec();
|
|
|
+ }
|
|
|
+ uni.pageScrollTo({
|
|
|
+ scrollTop: 0,
|
|
|
+ duration: 300
|
|
|
+ });
|
|
|
+ }, 200)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 征信高度Swiper
|
|
|
+ onCreditHeight() {
|
|
|
+ this.creditHeight = '100%'
|
|
|
+ this.$nextTick(() => {
|
|
|
+ const query = uni.createSelectorQuery().in(this);
|
|
|
+ setTimeout(() => {
|
|
|
+ query.select('.property').boundingClientRect(data => {
|
|
|
+ if (data) {
|
|
|
+ this.creditHeight = data.height
|
|
|
+ uni.pageScrollTo({
|
|
|
+ scrollTop: 0,
|
|
|
+ duration: 300
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).exec();
|
|
|
+ }, 200)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 征信高度Swiper
|
|
|
+ onCreditSwiper(swiper, index) {
|
|
|
+ this.creditHeight = '100%'
|
|
|
+ const query = uni.createSelectorQuery().in(this);
|
|
|
+ this.$nextTick(() => {
|
|
|
+ setTimeout(() => {
|
|
|
+ if (index == 0) {
|
|
|
+ query.select('.property').boundingClientRect(data => {
|
|
|
+ if (data) {
|
|
|
+ this.creditHeight = data.height
|
|
|
+ }
|
|
|
+ }).exec();
|
|
|
+ }
|
|
|
+ if (index == 1) {
|
|
|
+ query.select('.credit_list').boundingClientRect(data => {
|
|
|
+ if (data) {
|
|
|
+ this.creditHeight = data.height
|
|
|
+ }
|
|
|
+ }).exec();
|
|
|
+ }
|
|
|
+ uni.pageScrollTo({
|
|
|
+ scrollTop: 0,
|
|
|
+ duration: 300
|
|
|
+ });
|
|
|
+ }, 200)
|
|
|
+ })
|
|
|
+ },
|
|
|
onChange(current) {
|
|
|
+ if (current == 1) {
|
|
|
+ this.getDetailsHeight()
|
|
|
+ }
|
|
|
+ if (current == 2) {
|
|
|
+ this.onCreditHeight()
|
|
|
+ }
|
|
|
this.current = current
|
|
|
+ uni.pageScrollTo({
|
|
|
+ scrollTop: 0,
|
|
|
+ duration: 300
|
|
|
+ });
|
|
|
},
|
|
|
onSubmit() {
|
|
|
uni.navigateTo({
|