|
|
@@ -20,12 +20,12 @@
|
|
|
<app-uploader @success="b_afterRead" />
|
|
|
</template>
|
|
|
</Field>
|
|
|
- <Field name="cardbackphotourl" label="证件反面照片" :rules="formRules.cardbackphotourl">
|
|
|
+ <Field name="cardbackphotourl" v-if="showCardBackPhoto === 1" label="证件反面照片" :rules="formRules.cardbackphotourl">
|
|
|
<template #input>
|
|
|
<app-uploader @success="f_afterRead" />
|
|
|
</template>
|
|
|
</Field>
|
|
|
- <Field name="halfbodyphotourl" label="手持证件照" :rules="formRules.halfbodyphotourl">
|
|
|
+ <Field name="halfbodyphotourl" v-if="showHalfBodyPhoto === 1" label="手持证件照" :rules="formRules.halfbodyphotourl">
|
|
|
<template #input>
|
|
|
<app-uploader @success="h_afterRead" />
|
|
|
</template>
|
|
|
@@ -51,13 +51,30 @@ import { getCerTypePersonList } from "@/constants/account"
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
import { getIdCardAge } from '@/filters'
|
|
|
import { validateRules } from '@/constants/regex'
|
|
|
+import { useRequest } from '@/hooks/request'
|
|
|
import AppUploader from '@mobile/components/base/uploader/index.vue'
|
|
|
import AppSelect from '@mobile/components/base/select/index.vue'
|
|
|
+import { getWskhOpenAccountConfigs } from '@/services/api/account'
|
|
|
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
|
const { formData, formSubmit, modifyremark } = addAuthReq()
|
|
|
const { router } = useNavigation()
|
|
|
|
|
|
+const showHalfBodyPhoto = shallowRef(0)
|
|
|
+const showCardBackPhoto = shallowRef(0)
|
|
|
+
|
|
|
+// 获取网上开户配置
|
|
|
+useRequest(getWskhOpenAccountConfigs, {
|
|
|
+ params: {
|
|
|
+ configs: '53,54'
|
|
|
+ },
|
|
|
+ onSuccess: (res) => {
|
|
|
+ /// 是否显示半身照和 证件背面照
|
|
|
+ showHalfBodyPhoto.value = res.data.filter(e => { e.configid === 54})[0].configid ?? 0
|
|
|
+ showCardBackPhoto.value = res.data.filter(e => { e.configid === 53})[0].configid ?? 0
|
|
|
+ }
|
|
|
+})
|
|
|
+
|
|
|
const b_afterRead = (filePath: string) => {
|
|
|
formData.cardfrontphotourl = filePath
|
|
|
}
|