|
|
@@ -46,33 +46,38 @@
|
|
|
<view class="sys-list-background-color task-tabs-width page-env-160"
|
|
|
:style="{top:`${$tools.topHeight()+fixedHeight}px`}">
|
|
|
<view class="m-t20 swiper-box">
|
|
|
- <z-swiper ref="zSwiper" v-model="list" :options="options" v-if="current === 1" @slideChange="onSwiper">
|
|
|
- <z-swiper-item>
|
|
|
- <Identity ref="identity" class="identity swiper-item" :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 class="apply swiper-item" :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 class="third_party swiper-item" :height="`${maxHeight-60}px`" :tripartite="tripartite"
|
|
|
- :tripartite-key="tripartiteKey" @onShowImg="onShowImg">
|
|
|
- </ThirdParty>
|
|
|
+ <z-swiper ref="zSwiper" v-model="basicType" :options="options" v-if="current === 1" @slideChange="onSwiper">
|
|
|
+ <z-swiper-item v-for="itemType in basicType">
|
|
|
+ <view v-if="itemType==='1'">
|
|
|
+ <Identity ref="identity" class="identity swiper-item" :height="`${maxHeight-60}px`" :business="business"
|
|
|
+ :linkman="linkman" :client-key="clientKey" @onShowImg="onShowImg" :linkman-key="linkmanKey">
|
|
|
+ </Identity>
|
|
|
+ </view>
|
|
|
+ <view v-else-if="itemType==='3'">
|
|
|
+ <Apply class="apply swiper-item" :height="`${maxHeight-60}px`" :apply-for="applyFor"
|
|
|
+ :applies-key="appliesKey" @onShowImg="onShowImg">
|
|
|
+ </Apply>
|
|
|
+ </view>
|
|
|
+ <view v-else-if="itemType==='4'">
|
|
|
+ <ThirdParty class="third_party swiper-item" :height="`${maxHeight-60}px`" :tripartite="tripartite"
|
|
|
+ :tripartite-key="tripartiteKey" @onShowImg="onShowImg">
|
|
|
+ </ThirdParty>
|
|
|
+ </view>
|
|
|
</z-swiper-item>
|
|
|
+
|
|
|
</z-swiper>
|
|
|
<view class="" v-if="current === 2">
|
|
|
- <z-swiper v-model="lists" :options="options" @slideChange="onCreditSwiper">
|
|
|
- <z-swiper-item>
|
|
|
+ <z-swiper v-model="restType" :options="options" @slideChange="onCreditSwiper">
|
|
|
+ <z-swiper-item v-for="itemType in restType">
|
|
|
+ <view v-if="itemType==='2'">
|
|
|
<Property class="property swiper-item" :height="`${creditHeight-60}px`" :property-list="propertyList"
|
|
|
:property-key="propertyKey" @onShowImg="onShowImg">
|
|
|
</Property>
|
|
|
- </z-swiper-item>
|
|
|
- <z-swiper-item>
|
|
|
- <credit-list class="credit_list swiper-item" :height="`${creditHeight-60}px`" :credit-data="credit"
|
|
|
- :credit-key="creditKey" @onShowImg="onShowImg"></credit-list>
|
|
|
+ </view>
|
|
|
+ <view v-else-if="itemType==='6'">
|
|
|
+ <credit-list class="credit_list swiper-item" :height="`${creditHeight-60}px`" :credit-data="credit"
|
|
|
+ :credit-key="creditKey" @onShowImg="onShowImg"></credit-list>
|
|
|
+ </view>
|
|
|
</z-swiper-item>
|
|
|
</z-swiper>
|
|
|
</view>
|
|
|
@@ -132,6 +137,7 @@
|
|
|
} from "@/api/task";
|
|
|
import EnSelect from "@/components/en-utils/en-select/en-select.vue";
|
|
|
import CreditList from "@/page_task/credit/credit.vue";
|
|
|
+ import {type} from "@/uni_modules/uni-forms/components/uni-forms/utils";
|
|
|
|
|
|
export default {
|
|
|
components: {
|
|
|
@@ -215,6 +221,8 @@
|
|
|
creditListHeight: 0,
|
|
|
maxHeight: '100%',
|
|
|
creditHeight: '100%',
|
|
|
+ basicType:['1'],
|
|
|
+ restType:['2'],
|
|
|
}
|
|
|
},
|
|
|
onLoad(data) {
|
|
|
@@ -231,6 +239,7 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ type,
|
|
|
makingCall(phone){
|
|
|
tools.makingCall(phone)
|
|
|
},
|
|
|
@@ -391,6 +400,14 @@
|
|
|
this.stageData = res.data.stageData
|
|
|
this.isExecute = res.data.isExecute
|
|
|
this.businessFile = res.data.businessFile
|
|
|
+ this.product.product_types.forEach(itemType=>{
|
|
|
+ if(itemType==='3' || itemType==='4'){
|
|
|
+ this.basicType.push(itemType)
|
|
|
+ }
|
|
|
+ if(itemType==='6'){
|
|
|
+ this.restType.push(itemType)
|
|
|
+ }
|
|
|
+ })
|
|
|
this.$refs.recordObj.startData()
|
|
|
this.$refs.zSwiper.swiper
|
|
|
this.getDetailsHeight()
|
|
|
@@ -546,6 +563,7 @@
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
.swiper-box{
|
|
|
+ overflow: hidden;
|
|
|
.swiper-item{
|
|
|
transition: .5s ease;
|
|
|
}
|