diff --git a/src/glcc/home/news/index.jsx b/src/glcc/home/news/index.jsx
index f2e52372..532d05c9 100644
--- a/src/glcc/home/news/index.jsx
+++ b/src/glcc/home/news/index.jsx
@@ -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() {
新闻中心
- {/*
-
- col-6
-
-
- col-6
-
-
-
*/}
{list.length &&
@@ -50,37 +41,6 @@ function News() {
})
}
- {/*
-
此处为新闻中心的标题内容此处为新闻中心的标题内容此处为新闻中心
-
-
-
-
-
此处为新闻中心的标题内容此处为新闻中心的标题内容此处为新闻中心
-
-
-
-
-
此处为新闻中心的标题内容此处为新闻中心的标题内容此处为新闻中心
-
-
-
-
-
此处为新闻中心的标题内容此处为新闻中心的标题内容此处为新闻中心
-
-
*/}
diff --git a/src/glcc/home/news/index.scss b/src/glcc/home/news/index.scss
index e7f03687..f2339af8 100644
--- a/src/glcc/home/news/index.scss
+++ b/src/glcc/home/news/index.scss
@@ -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;
}
}