From 201841d618dfcb5486908c9d18ba9b2c3a224f88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E5=BF=83=E5=AE=87?= Date: Fri, 28 Jun 2024 11:05:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=94=AE=E8=AF=8D=E5=89=8D=E5=8F=B0?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E3=80=81=E6=96=87=E6=A1=88=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Information/Pages/newsCreate.jsx | 6 +++--- src/forge/Information/Pages/newsDetail.jsx | 6 ++++-- src/forge/Information/index.scss | 18 ++++++++++++++++++ 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/src/forge/Information/Pages/newsCreate.jsx b/src/forge/Information/Pages/newsCreate.jsx index a2728e77..cd7b17d8 100644 --- a/src/forge/Information/Pages/newsCreate.jsx +++ b/src/forge/Information/Pages/newsCreate.jsx @@ -161,11 +161,11 @@ function NewsCreate(props){ )} - + {getFieldDecorator("keywords", { - rules:[{type: 'string', max: 30, message: "请精简关键词,最大长度30"}], + rules:[{type: 'string', max: 30, message: "请精简文章标签,最大长度30"}], })( - + )} diff --git a/src/forge/Information/Pages/newsDetail.jsx b/src/forge/Information/Pages/newsDetail.jsx index 133d2014..3ea8718c 100644 --- a/src/forge/Information/Pages/newsDetail.jsx +++ b/src/forge/Information/Pages/newsDetail.jsx @@ -132,8 +132,10 @@ function NewsDetail(props){ { !isPhone() && } { - content ? - + content ? <> + { detail.keywords &&

文章标签:{ detail.keywords }

} + + : 暂无详情~ } diff --git a/src/forge/Information/index.scss b/src/forge/Information/index.scss index 3a32f3e9..b37bd539 100644 --- a/src/forge/Information/index.scss +++ b/src/forge/Information/index.scss @@ -487,6 +487,15 @@ background-image:linear-gradient(180deg,#f8f9fd 0%,#f8f9fd 100%); border:1px solid #ffffff; box-sizing: border-box; + .keywords { + color: #232b3f; + font-size: 14px; + line-height: 28px; + padding-bottom: 10px; + span { + color:#466aff; + } + } } .info_text_main{ margin-bottom: 2em; @@ -553,6 +562,15 @@ background-color: #fff; border-radius: 4px; padding:30px 35px 50px; + .keywords { + color: #232b3f; + font-size: 14px; + line-height: 28px; + padding-bottom: 10px; + span { + color:#466aff; + } + } .info_text_main{ .i_name{ color:#1f2329;