样式优化

This commit is contained in:
黄心宇 2024-06-28 14:48:33 +08:00
parent c7695ac13e
commit fe8f9797bb
2 changed files with 14 additions and 21 deletions

View File

@ -128,19 +128,14 @@ function NewsDetail(props){
{ !!detail.visits && <li><img src={liulan} alt="" className="mr5" />{detail.visits}</li> }
{ detail.auditStatus === '2' && <li><Badge color={temp === "zone" ? "#466aff" : "#089f7f"} text="待审核" className='pass'/></li>}
{ detail.auditStatus === '0' && <li><Badge color="#eb1212" text="未通过" className='failed'/></li>}
{ detail.keywords && !isPhone() && <li className='keywords'>文章标签{ detail.keywords.split(',').map(e => (
<span>{ e }</span>
)) }</li>}
</ul>
{ detail.keywords && <div className='keywords'>文章标签{ detail.keywords.split(',').map(e => (
<span>{ e }</span>
)) }</div>}
</div>
{ !isPhone() && <Divider dashed={true} /> }
{
content ? <>
{ detail.keywords && isPhone() && <li className='keywords'>文章标签{ detail.keywords.split(',').map(e => (
<span>{ e }</span>
)) }</li>}
<RenderHtml className="informations_detail imageLayerParent" value={content} url={props.history.location} />
</>
content ? <RenderHtml className="informations_detail imageLayerParent" value={content} url={props.history.location} />
:
<span>暂无详情~</span>
}

View File

@ -491,15 +491,14 @@
color: #232b3f;
font-size: 14px;
line-height: 28px;
padding-bottom: 10px;
margin-top: 10px;
span {
display: inline-block;
color:#1F2329;
margin-right: 5px;
border: 1px solid;
border-color: #d6d8e0;
background-color: #eff2ff;
border-radius: 4px;
padding: 2px 10px;
padding: 0 10px;
color: #466aff;
margin-right: 5px;
margin-bottom: 10px !important;
}
}
@ -573,15 +572,14 @@
color: #232b3f;
font-size: 14px;
line-height: 28px;
padding-bottom: 10px;
margin-top: 10px;
span {
display: inline-block;
color:#1F2329;
margin-right: 5px;
border: 1px solid;
border-color: #d6d8e0;
background-color: #eff2ff;
border-radius: 4px;
padding: 2px 10px;
padding: 0 10px;
color: #466aff;
margin-right: 5px;
}
}
.info_text_main{