|
|
@@ -54,7 +54,7 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
|
|
|
// 兼容字段映射 - 使用实际存在的字段
|
|
|
salary: 0, // 薪资字段不存在,使用默认值0
|
|
|
joinDate: undefined, // 入职日期字段不存在
|
|
|
- disabilityId: data.disabilityType || data.disabilityLevel || '未提供', // 使用残疾类型或等级
|
|
|
+ disabilityId: data.disabilityId || '未提供', // 使用后端返回的残疾证号
|
|
|
idAddress: '未提供', // 地址字段不存在
|
|
|
phone: data.phone || '未提供'
|
|
|
}
|
|
|
@@ -271,6 +271,13 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
|
|
|
return `¥${amount.toLocaleString()}`
|
|
|
}
|
|
|
|
|
|
+ // 脱敏身份证号
|
|
|
+ const maskIdCard = (idCard?: string) => {
|
|
|
+ if (!idCard) return '未提供'
|
|
|
+ if (idCard.length !== 18) return idCard
|
|
|
+ return idCard.replace(/(\d{6})(\d{10})(\d{2})/, '$1********$3')
|
|
|
+ }
|
|
|
+
|
|
|
return (
|
|
|
<PageContainer padding={false} className="pb-0">
|
|
|
<ScrollView
|
|
|
@@ -364,7 +371,7 @@ const TalentDetail: React.FC<TalentDetailProps> = () => {
|
|
|
</View>
|
|
|
<View className="flex flex-col">
|
|
|
<Text className="text-gray-500">身份证号</Text>
|
|
|
- <Text className="text-gray-800">{talentDetail.idCard || '未提供'}</Text>
|
|
|
+ <Text className="text-gray-800">{maskIdCard(talentDetail.idCard)}</Text>
|
|
|
</View>
|
|
|
<View className="flex flex-col">
|
|
|
<Text className="text-gray-500">残疾证号</Text>
|