From 6649db21b119015cb513f820d39436e4fbe2e5cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E7=AB=A5=E5=B4=87?= Date: Tue, 12 Apr 2022 17:25:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/glcc/home/news/index.jsx | 42 +---------------------------------- src/glcc/home/news/index.scss | 4 ++-- 2 files changed, 3 insertions(+), 43 deletions(-) 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() { }) } - {/*
-

此处为新闻中心的标题内容此处为新闻中心的标题内容此处为新闻中心

-
-
2022-04-02
- -
-
- -
-

此处为新闻中心的标题内容此处为新闻中心的标题内容此处为新闻中心

-
-
2022-04-02
- -
-
- -
-

此处为新闻中心的标题内容此处为新闻中心的标题内容此处为新闻中心

-
-
2022-04-02
- -
-
- -
-

此处为新闻中心的标题内容此处为新闻中心的标题内容此处为新闻中心

-
-
2022-04-02
- -
-
*/}
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; } }