commit
All checks were successful
Deploy to Server / deploy (push) Successful in 26s

This commit is contained in:
jeremygan2021
2026-03-11 22:56:03 +08:00
parent dbd752b833
commit 8b11d0aab1
3 changed files with 40 additions and 8 deletions

View File

@@ -315,7 +315,7 @@ const CompetitionDetail = () => {
<div style={{ color: '#888', fontSize: 12 }}>{project.contestant_info?.nickname}</div> <div style={{ color: '#888', fontSize: 12 }}>{project.contestant_info?.nickname}</div>
</div> </div>
<div style={{ fontSize: isMobile ? 18 : 24, color: '#00b96b', fontWeight: 'bold' }}> <div style={{ fontSize: isMobile ? 18 : 24, color: '#00b96b', fontWeight: 'bold' }}>
{enrollment && project.contestant === enrollment.id ? project.final_score : '**'} {project.final_score ?? '待定'}
</div> </div>
</div> </div>
))} ))}

View File

@@ -235,15 +235,42 @@
.comment-header { .comment-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-bottom: 16px; align-items: center;
margin-bottom: 12px;
.judge-name { .judge-info {
font-size: 18px; display: flex;
font-weight: bold; align-items: baseline;
color: #00b96b;
.judge-name {
font-size: 16px;
font-weight: bold;
color: #00b96b;
margin-right: 8px;
}
.judge-score-box {
display: flex;
align-items: baseline;
.score-num {
font-size: 24px;
font-weight: bold;
color: #fff;
line-height: 1;
margin-right: 2px;
}
.score-unit {
font-size: 14px;
color: #999;
font-weight: normal;
}
}
} }
.comment-time { .comment-time {
font-size: 16px; font-size: 12px;
color: #666; color: #666;
} }
} }

View File

@@ -143,7 +143,12 @@ export default function ProjectDetail() {
<View className='comment-header'> <View className='comment-header'>
<View className='judge-info'> <View className='judge-info'>
<Text className='judge-name'>{c.judge_name || '评委'}</Text> <Text className='judge-name'>{c.judge_name || '评委'}</Text>
{c.score && <Text className='judge-score'>{c.score}</Text>} {c.score && (
<View className='judge-score-box'>
<Text className='score-num'>{c.score}</Text>
<Text className='score-unit'></Text>
</View>
)}
</View> </View>
<Text className='comment-time'>{c.created_at?.substring(0, 16)}</Text> <Text className='comment-time'>{c.created_at?.substring(0, 16)}</Text>
</View> </View>