|
|
@@ -245,7 +245,6 @@
|
|
|
<uni-row class="demo-uni-row uni-row1">
|
|
|
<uni-col :xs="24" :sm="24" :md="10" :lg="10" :xl="10">
|
|
|
<cwg-file-picker
|
|
|
- v-if="!fileListID1.path"
|
|
|
v-model="fileListID1.path"
|
|
|
:editable="fileListID1.status != 2"
|
|
|
:limit="1"
|
|
|
@@ -258,27 +257,41 @@
|
|
|
:canDelete="false"
|
|
|
:uploadError="false"
|
|
|
:showProgress="false"
|
|
|
+ :canChoose="true"
|
|
|
+ :showError="false"
|
|
|
+ :show-progress="false"
|
|
|
+ disablePreview
|
|
|
:image-styles="imageStyle"
|
|
|
@update:modelValue="(val) => handleFileUpdate(val, '1')"
|
|
|
customClass="avatar-uploader"
|
|
|
- />
|
|
|
- <view v-else>
|
|
|
+ >
|
|
|
<view class="file-item">
|
|
|
<image
|
|
|
v-if="!isPdf(fileListID1.path)"
|
|
|
class="avatar"
|
|
|
- :src="updateUrl + fileListID1.path"
|
|
|
+ :src="updateUrl + (fileListID1.path)"
|
|
|
></image>
|
|
|
<view v-else>
|
|
|
<image class="icon" :src="icon_doc" />
|
|
|
</view>
|
|
|
-
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </cwg-file-picker>
|
|
|
+<!-- <view v-else>-->
|
|
|
+<!-- <view class="file-item">-->
|
|
|
+<!-- <image-->
|
|
|
+<!-- v-if="!isPdf(fileListID1.path)"-->
|
|
|
+<!-- class="avatar"-->
|
|
|
+<!-- :src="updateUrl + fileListID1.path"-->
|
|
|
+<!-- ></image>-->
|
|
|
+<!-- <view v-else>-->
|
|
|
+<!-- <image class="icon" :src="icon_doc" />-->
|
|
|
+<!-- </view>-->
|
|
|
+
|
|
|
+<!-- </view>-->
|
|
|
+<!-- </view>-->
|
|
|
</uni-col>
|
|
|
<uni-col :xs="24" :sm="24" :md="10" :lg="10" :xl="10">
|
|
|
<cwg-file-picker
|
|
|
- v-if="!fileListID2.path"
|
|
|
v-model="fileListID2.path"
|
|
|
:editable="fileListID2.status != 2"
|
|
|
:limit="1"
|
|
|
@@ -291,23 +304,25 @@
|
|
|
:canDelete="false"
|
|
|
:uploadError="false"
|
|
|
:showProgress="false"
|
|
|
+ :canChoose="true"
|
|
|
+ :showError="false"
|
|
|
+ :show-progress="false"
|
|
|
+ disablePreview
|
|
|
:image-styles="imageStyle"
|
|
|
@update:modelValue="(val) => handleFileUpdate(val, '2')"
|
|
|
customClass="avatar-uploader"
|
|
|
>
|
|
|
- </cwg-file-picker>
|
|
|
- <view v-else>
|
|
|
<view class="file-item">
|
|
|
<image
|
|
|
v-if="!isPdf(fileListID2.path)"
|
|
|
class="avatar"
|
|
|
- :src="updateUrl + fileListID2.path"
|
|
|
+ :src="updateUrl + (fileListID2.path)"
|
|
|
></image>
|
|
|
<view v-else>
|
|
|
<image class="icon" :src="icon_doc" />
|
|
|
</view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
+ </cwg-file-picker>
|
|
|
</uni-col>
|
|
|
<uni-col :xs="24" :sm="24" :md="4" :lg="4" :xl="4">
|
|
|
<view class="refresh">
|
|
|
@@ -505,7 +520,7 @@
|
|
|
:uploadError="false"
|
|
|
:showProgress="false"
|
|
|
:image-styles="imageStyle"
|
|
|
- @update:modelValue="(val) => handleFileUpdate(val, '1')"
|
|
|
+ @update:modelValue="(val) => handleFileUpdate(val, '10')"
|
|
|
custom-class="fileOther"
|
|
|
:showError="false"
|
|
|
>
|
|
|
@@ -903,14 +918,17 @@
|
|
|
})
|
|
|
|
|
|
function goStep(step: number) {
|
|
|
+ console.log(step,'step')
|
|
|
if ( step == 4){
|
|
|
if (currentUploadCard.value == 1){
|
|
|
if (!formData.value.cardType){
|
|
|
- uni.showToast(t('vaildate.CardType.empty'))
|
|
|
+ uni.showToast({ title:t('vaildate.CardType.empty'),icon:'error'
|
|
|
+ })
|
|
|
return
|
|
|
}
|
|
|
- if (!fileListID1.value.path || !fileListID1.value.path){
|
|
|
- uni.showToast(t('vaildate.IDPhoto.empty'))
|
|
|
+ if (!fileListID1.value.path || !fileListID2.value.path){
|
|
|
+ uni.showToast({ title: t('vaildate.IDPhoto.empty'),icon: 'error'
|
|
|
+ })
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
@@ -1093,6 +1111,10 @@
|
|
|
|
|
|
function handleFileUpdate(value, type) {
|
|
|
console.log(value, type, 'uplaod')
|
|
|
+ if (type == 10){
|
|
|
+ uni.showToast({ title: t('card.New1.d5'),icon: 'none' })
|
|
|
+ getCustomFileList();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
async function fileOtherDelete(id) {
|