diff --git a/src/factory/components/Feature/index.jsx b/src/factory/components/Feature/index.jsx index 3b121e07..bf25439f 100644 --- a/src/factory/components/Feature/index.jsx +++ b/src/factory/components/Feature/index.jsx @@ -107,8 +107,8 @@ function Feature(props) {
{item.title}
-

{item.name}

-

{item.summary}

+

{item.name}

+

{item.summary}

})} {forumListByTag.length === 0 && ( diff --git a/src/news/list/index.jsx b/src/news/list/index.jsx index bf390499..b0d5adc6 100644 --- a/src/news/list/index.jsx +++ b/src/news/list/index.jsx @@ -24,7 +24,7 @@ function List() { const [current, setCurrent] = useState(0); const list1ByShowAll = isShowAll ? list1.slice(4) : list1.slice(4, 10) const list3_img =[icon16, icon17, icon18, icon19, icon20]; - const page_max = Math.floor(list3.length/5) + const page_max = Math.floor(list3.length) useEffect(() => { document.title = "社区动态"; @@ -135,18 +135,18 @@ function List() {
社区开发团队研发进度一览 - = page_max || list3.length <= 5 ? 'unclick' : ''}`} onClick={()=>current < page_max && list3.length > 5 && setCurrent(current+1)}> + page_max - 2 ? 'unclick' : ''}`} onClick={()=>current <= page_max - 2 && setCurrent(current+1)}> current>0 && setCurrent(current-1)}>
- {list3.slice(current*5, current*5+5).map((item, index)=>{ - return
- -
{item.name}
-
{item.summary}
- {moment(item.publishTime).format('MM月DD日')} + { + list3[current] &&
+ +
{list3[current].name}
+
{list3[current].summary}
+ {moment(list3[current].publishTime).format('MM月DD日')}
- })} + }
diff --git a/src/news/list/index.scss b/src/news/list/index.scss index 3593d98a..650b395c 100644 --- a/src/news/list/index.scss +++ b/src/news/list/index.scss @@ -228,7 +228,6 @@ } .dynamics-item{ flex: none; - width: calc(20% - 30px); } .go1, .go2{ width:32px;