forked from Gitlink/forgeplus-react
Merge branch 'feature_GLCC' of http://106.75.45.236:3000/tongChong/forgeplus-react into feature_GLCC
This commit is contained in:
commit
947b7a4be6
|
@ -8,7 +8,7 @@ function News() {
|
|||
|
||||
const [list, setList] = useState([]);
|
||||
useEffect(() => {
|
||||
const url = `/topics.json?topic_type=glcc_news`;
|
||||
const url = `/topics.json?topic_type=glcc_news&limit=5`;
|
||||
axios.get(url).then(result => {
|
||||
if (result && result.data) {
|
||||
setList(result.data.topics);
|
||||
|
@ -20,15 +20,6 @@ function News() {
|
|||
<div className="news">
|
||||
<div className="glcc-content">
|
||||
<h3 className="glcc-tit">新闻中心</h3>
|
||||
{/* <Row gutter={[{ xs: 8, sm: 16, md: 24, lg: 32 }, 20]}>
|
||||
<Col className="gutter-row" span={6}>
|
||||
<div className="gutter-box">col-6</div>
|
||||
</Col>
|
||||
<Col className="gutter-row" span={6}>
|
||||
<div className="gutter-box">col-6</div>
|
||||
</Col>
|
||||
|
||||
</Row> */}
|
||||
<div className="news-content">
|
||||
|
||||
{list.length && <div className="main-news">
|
||||
|
@ -50,37 +41,6 @@ function News() {
|
|||
|
||||
})
|
||||
}
|
||||
{/* <div className="news-item">
|
||||
<h3 className="news-tit ellipsis-2">此处为新闻中心的标题内容此处为新闻中心的标题内容此处为新闻中心</h3>
|
||||
<div className="news-content">
|
||||
<div className="news-date">2022-04-02</div>
|
||||
<Button type="link">查看详情</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="news-item">
|
||||
<h3 className="news-tit ellipsis-2">此处为新闻中心的标题内容此处为新闻中心的标题内容此处为新闻中心</h3>
|
||||
<div className="news-content">
|
||||
<div className="news-date">2022-04-02</div>
|
||||
<Button type="link">查看详情</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="news-item">
|
||||
<h3 className="news-tit ellipsis-2">此处为新闻中心的标题内容此处为新闻中心的标题内容此处为新闻中心</h3>
|
||||
<div className="news-content">
|
||||
<div className="news-date">2022-04-02</div>
|
||||
<Button type="link">查看详情</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="news-item">
|
||||
<h3 className="news-tit ellipsis-2">此处为新闻中心的标题内容此处为新闻中心的标题内容此处为新闻中心</h3>
|
||||
<div className="news-content">
|
||||
<div className="news-date">2022-04-02</div>
|
||||
<Button type="link">查看详情</Button>
|
||||
</div>
|
||||
</div> */}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -30,12 +30,12 @@
|
|||
min-height: 56px;
|
||||
}
|
||||
.news-date {
|
||||
opacity: 85%;
|
||||
opacity: .85;
|
||||
font-size: 14px;
|
||||
margin:15px 0 44px;
|
||||
}
|
||||
.main-news-content {
|
||||
opacity: 85%;
|
||||
opacity: .85;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue