fix:kyc拒绝原因显示
This commit is contained in:
@@ -16,7 +16,7 @@ const kycInfo = ref<Partial<Api.KYC.KYCInfo>>({
|
|||||||
status: 'UNVERIFIED',
|
status: 'UNVERIFIED',
|
||||||
fullName: '',
|
fullName: '',
|
||||||
birthDate: '',
|
birthDate: '',
|
||||||
rejectReason: '',
|
description: '',
|
||||||
verifiedTime: ''
|
verifiedTime: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -122,7 +122,7 @@ const getKYCStatus = async () => {
|
|||||||
status: normalizedStatus,
|
status: normalizedStatus,
|
||||||
fullName: kycData.realName || '',
|
fullName: kycData.realName || '',
|
||||||
birthDate: kycData.birthDate || '',
|
birthDate: kycData.birthDate || '',
|
||||||
rejectReason: kycData.description || '',
|
description: kycData.description || '',
|
||||||
verifiedTime: kycData.updateTime || kycData.createTime || '',
|
verifiedTime: kycData.updateTime || kycData.createTime || '',
|
||||||
idType: kycData.idType,
|
idType: kycData.idType,
|
||||||
idFile: kycData.idFile,
|
idFile: kycData.idFile,
|
||||||
@@ -140,7 +140,7 @@ const getKYCStatus = async () => {
|
|||||||
status: 'UNVERIFIED',
|
status: 'UNVERIFIED',
|
||||||
fullName: '',
|
fullName: '',
|
||||||
birthDate: '',
|
birthDate: '',
|
||||||
rejectReason: '',
|
description: '',
|
||||||
verifiedTime: ''
|
verifiedTime: ''
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@ const getKYCStatus = async () => {
|
|||||||
status: 'UNVERIFIED',
|
status: 'UNVERIFIED',
|
||||||
fullName: '',
|
fullName: '',
|
||||||
birthDate: '',
|
birthDate: '',
|
||||||
rejectReason: '',
|
description: '',
|
||||||
verifiedTime: ''
|
verifiedTime: ''
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -369,10 +369,11 @@ onMounted(() => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 如果有拒绝原因,显示拒绝信息 -->
|
<!-- 如果有拒绝原因,显示拒绝信息 -->
|
||||||
<div v-if="kycInfo.rejectReason" class="reject-reason">
|
<div v-if="kycStatus === 'REJECTED'" class="reject-reason">
|
||||||
<a-alert
|
<a-alert
|
||||||
type="warning"
|
type="error"
|
||||||
:message="kycInfo.rejectReason"
|
:message="t('page.kyc.rejectReason')"
|
||||||
|
:description="kycInfo.description"
|
||||||
show-icon
|
show-icon
|
||||||
banner
|
banner
|
||||||
/>
|
/>
|
||||||
@@ -681,5 +682,23 @@ onMounted(() => {
|
|||||||
.reject-reason {
|
.reject-reason {
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
}
|
}
|
||||||
|
.page-header {
|
||||||
|
margin-bottom: 32px;
|
||||||
|
}
|
||||||
|
.status-header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 16px 0;
|
||||||
|
border-bottom: 1px solid #f0f0f0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-title {
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #1f1f1f;
|
||||||
|
}
|
||||||
|
|
||||||
|
.status-tag {
|
||||||
|
margin-left: 16px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user