This commit is contained in:
@@ -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>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user