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

This commit is contained in:
谢思 2022-03-30 22:50:20 +08:00 committed by 何童崇
parent aa9e75b4fd
commit b138d774fc
2 changed files with 10 additions and 4 deletions

View File

@ -54,6 +54,7 @@ function Notice({ current_user, qzDetail }) {
</Menu.Item> </Menu.Item>
</Menu>} placement="bottom" overlayClassName="edit">...</Popover> </Menu>} placement="bottom" overlayClassName="edit">...</Popover>
</div>} </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> <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> <p>{item.updated_at.substring(0,10)}</p>
</div> </div>

View File

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