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;