Handy_Cao 1 vuosi sitten
vanhempi
commit
1db68290bd

+ 7 - 2
src/packages/mobile/views/account/authresult/Index.vue

@@ -14,7 +14,7 @@
                 <Cell :title="$t('user.authentication.cardbackphoto')" v-if="showCardBackPhoto === '1'">
                     <Image fit="contain" :src="getFileUrl(userInfo.cardbackphotourl)" width="100" height="100" />
                 </Cell>
-                <Cell :title="$t('user.authentication.halfbodyphoto')" v-if="showHalfBodyPhoto === '1'">
+                <Cell :title="halfBodyPhotoTitle" v-if="showHalfBodyPhoto === '1'">
                     <Image fit="contain" :src="getFileUrl(userInfo.halfbodyphotourl)" width="100" height="100" />
                 </Cell>
                 <Cell :title="$t('user.authentication.authstatus')" :value="getAuthStatusName(2)" />
@@ -33,10 +33,14 @@ import { useRequest } from '@/hooks/request'
 import { getCertificateTypeCodeName } from '@/constants/account'
 import { getFileUrl } from '@/filters'
 import { getWskhOpenAccountConfigs } from '@/services/api/account'
+import { i18n } from "@/stores";
+
+const { t } = i18n.global
 
 const userInfo = shallowRef<Model.UserInfo>()
 const showHalfBodyPhoto = shallowRef('0')
 const showCardBackPhoto = shallowRef('0')
+const halfBodyPhotoTitle = shallowRef(t('user.authentication.halfbodyphoto'))
 
 /// 查询托管银行信息
 useRequest(queryWrDraftUserInfo, {
@@ -49,12 +53,13 @@ useRequest(queryWrDraftUserInfo, {
 // 获取网上开户配置
 useRequest(getWskhOpenAccountConfigs, {
     params: {
-        configs: '53,54'
+        configs: '53,54,78'
     },
     onSuccess: (res) => {
         /// 是否显示半身照和 证件背面照
         showHalfBodyPhoto.value = res.data.filter(e => { e.configid === 54})[0].configvalue ?? '0'
         showCardBackPhoto.value = res.data.filter(e => { e.configid === 53})[0].configvalue ?? '0'
+        halfBodyPhotoTitle.value = res.data.filter(e => { e.configid === 78})[0].configvalue ?? t('user.authentication.halfbodyphoto')
     }
 })
 

+ 4 - 2
src/packages/mobile/views/account/certification/Index.vue

@@ -25,7 +25,7 @@
                         <app-uploader @success="f_afterRead" />
                     </template>
                 </Field>
-                <Field name="halfbodyphotourl" v-if="showHalfBodyPhoto === '1'" :label="$t('user.authentication.halfbodyphoto')" :rules="formRules.halfbodyphotourl">
+                <Field name="halfbodyphotourl" v-if="showHalfBodyPhoto === '1'" :label="halfBodyPhotoTitle" :rules="formRules.halfbodyphotourl">
                     <template #input>
                         <app-uploader @success="h_afterRead" />
                     </template>
@@ -64,16 +64,18 @@ const { global: { t }} = i18n
 
 const showHalfBodyPhoto = shallowRef('0')
 const showCardBackPhoto = shallowRef('0')
+const halfBodyPhotoTitle = shallowRef(t('user.authentication.halfbodyphoto'))
 
 // 获取网上开户配置
 useRequest(getWskhOpenAccountConfigs, {
     params: {
-        configs: '53,54'
+        configs: '53,54,78'
     },
     onSuccess: (res) => {
         /// 是否显示半身照和 证件背面照
         showHalfBodyPhoto.value = res.data.filter(e => { e.configid === 54})[0].configvalue ?? '0'
         showCardBackPhoto.value = res.data.filter(e => { e.configid === 53})[0].configvalue ?? '0'
+        halfBodyPhotoTitle.value = res.data.filter(e => { e.configid ===  78})[0].configvalue ?? t('user.authentication.halfbodyphoto')
     }
 })