未登录状态下的通知公告列表

This commit is contained in:
谢思 2022-03-30 22:50:20 +08:00
parent 0aec942c75
commit b4edd42197
2 changed files with 10 additions and 4 deletions

View File

@ -54,6 +54,7 @@ function Notice({ current_user, qzDetail }) {
</Menu.Item>
</Menu>} placement="bottom" overlayClassName="edit">...</Popover>
</div>}
{current_user && !current_user.login && <Link to={`/competition/qz2022/notice/detail/${item.id}`}><div className="notCont_head border">{item.title}</div></Link>}
<Link to={`/competition/qz2022/notice/detail/${item.id}`} className="cont font-15"><RenderHtml className="_1818" value={item.content}/></Link>
<p>{item.updated_at.substring(0,10)}</p>
</div>

View File

@ -26,10 +26,15 @@
padding-bottom: 10px;
margin-bottom: 10px;
border-bottom: 1px solid rgba(153, 153, 153, 0.2);
.notCont_head{
font-weight:bold;
color:#2e5bfe;
cursor: pointer;
}
.notCont_head{
font-weight:bold;
color:#2e5bfe;
cursor: pointer;
&.border{
border-bottom: 1px solid rgba(153, 153, 153, 0.2);
padding-bottom: 10px;
margin-bottom: 15px;
}
}
>p{