<!--材料附件上传页面-->
|
<common-page
|
bind:onCancelPicker="handleClosePopup"
|
bind:onClosePopup="handleClosePopup"
|
bind:onConfirmPicker="handleConfirmPicker"
|
popup="{{ popup }}"
|
>
|
<view class="upload-card">
|
<view bindtap="handleShowPopup" class="cell" data-title="材料类型" data-type="materialtype" data-value="{{ data[activeMaterial].title }}">
|
<view class="cell-title">材料类型</view>
|
<view class="cell-select">{{ data[activeMaterial].title || '' }}</view>
|
<view class="cell-arrow">
|
<van-icon name="arrow" />
|
</view>
|
</view>
|
<view class="upload-card-text">{{ data[activeMaterial].explain }}</view>
|
</view>
|
<view class="upload-card" wx:if="{{ activeMaterial === 2 }}">
|
<view bindtap="handleShowPopup" class="cell" data-title="选择对象" data-type="person" data-value="{{ person[activePerson].trueName }}">
|
<view class="cell-title">选择对象</view>
|
<view class="cell-select">{{ person[activePerson].trueName || '' }}</view>
|
<view class="cell-arrow">
|
<van-icon name="arrow" />
|
</view>
|
</view>
|
</view>
|
<view class="upload-card" wx:if="{{ activeMaterial !== 2 }}">
|
<!-- 证据材料 or 申请材料 or 其他材料 -->
|
<view class="cell2">
|
<view class="cell-title">材料上传</view>
|
<view class="upload-main">
|
<view class="upload-main-item" wx:for="{{ formatData.fileList }}" wx:if="{{ !!item.id }}" wx:key="index">
|
<view bindtap="handleDelImage" class="upload-main-item-close" data-id="{{ item.id }}" data-ownertype="{{ item.ownerType }}">
|
<van-icon name="clear" size="14" />
|
</view>
|
<van-image
|
bind:click="handlePreviewImage"
|
data-index="{{ index }}"
|
fit="contain"
|
height="84rpx"
|
radius="2"
|
src="{{ item.wxurl }}"
|
width="84rpx"
|
wx:if="{{ !!item.wxurl }}"
|
/>
|
<van-image
|
bind:click="handlePreviewImage"
|
data-index="{{ index }}"
|
fit="contain"
|
height="84rpx"
|
radius="2"
|
src="{{ fileUrl }}{{ item.id }}"
|
width="84rpx"
|
wx:else
|
/>
|
</view>
|
<view bindtap="handleUploadFile" class="upload-main-add" data-id="{{ caseId }}" data-type="{{ data[activeMaterial].type }}">
|
<van-icon name="plus" size="44rpx" />
|
</view>
|
</view>
|
</view>
|
</view>
|
<!-- 身份材料 -->
|
<block wx:else>
|
<view class="upload-card" wx:for="{{ formatData.personFile }}" wx:key="index">
|
<view class="cell2">
|
<view class="cell-title">{{ item.title }}</view>
|
<view class="upload-main">
|
<view class="upload-main-item" wx:for="{{ item.fileList }}" wx:for-index="t" wx:for-item="x" wx:if="{{ !!x.id }}" wx:key="t">
|
<view bindtap="handleDelImage" class="upload-main-item-close" data-id="{{ x.id }}" data-ownerid="{{ item.ownerId }}">
|
<van-icon name="clear" size="14" />
|
</view>
|
<van-image
|
bind:click="handlePreviewImage"
|
data-index="{{ t }}"
|
data-personindex="{{ index }}"
|
fit="contain"
|
height="84rpx"
|
radius="2"
|
src="{{ x.wxurl }}"
|
width="84rpx"
|
wx:if="{{ !!x.wxurl }}"
|
/>
|
<van-image
|
bind:click="handlePreviewImage"
|
data-index="{{ t }}"
|
data-personindex="{{ index }}"
|
fit="contain"
|
height="84rpx"
|
radius="2"
|
src="{{ fileUrl }}{{ x.id }}"
|
width="84rpx"
|
wx:else
|
/>
|
</view>
|
<view bindtap="handleUploadFile" class="upload-main-add" data-id="{{ person[activePerson].id }}" data-type="{{ item.value }}">
|
<van-icon name="plus" size="44rpx" />
|
</view>
|
</view>
|
<view class="upload-card-text upload-card-text2">{{ item.text }}</view>
|
</view>
|
</view>
|
</block>
|
</common-page>
|