This commit is contained in:
张成
2025-09-07 18:22:07 +08:00
parent 98bf0fbe13
commit 45f85a8572
12 changed files with 72 additions and 858 deletions

View File

@@ -15,7 +15,6 @@ export interface UserInfo {
hosted: number;
participated: number;
};
tags: string[];
bio: string;
location: string;
occupation: string;
@@ -126,18 +125,34 @@ export const UserInfoCard: React.FC<UserInfoCardProps> = ({
{/* 标签和简介 */}
<View className="tags_bio_section">
<View className="tags_container">
<View className="tag_item">
{user_info.gender === "0" && (
<Image
className="tag_icon"
src={require('../../static/userInfo/male.svg')}
/>
)}
{user_info.gender === "1" && (
<Image
className="tag_icon"
src={require('../../static/userInfo/female.svg')}
/>
)}
</View>
<View className="tag_item">
<Text className="tag_text">{user_info.ntrp_level || '未设置'}</Text>
</View>
<View className="tag_item">
<Text className="tag_text">{user_info.occupation || '未设置'}</Text>
</View>
<View className="tag_item">
<Image
className="tag_icon"
src={require('../../static/userInfo/location.svg')}
/>
<Text className="tag_text">{user_info.location}</Text>
</View>
<View className="tag_item">
<Text className="tag_text">{user_info.occupation}</Text>
</View>
<View className="tag_item">
<Text className="tag_text">{user_info.ntrp_level}</Text>
<Text className="tag_text">{user_info.location || '未设置'}</Text>
</View>
</View>
<Text className="bio_text">{user_info.bio}</Text>