forked from Gitlink/forgeplus-react
关于我们0.1版
This commit is contained in:
parent
d5b4c5425f
commit
982536b547
12
src/App.js
12
src/App.js
|
@ -97,13 +97,18 @@ const ProjectIndex = Loadable({
|
|||
loading: Loading,
|
||||
});
|
||||
|
||||
const AboutUs = Loadable({
|
||||
loader: () => import("./forge/AboutUs/AboutUs"),
|
||||
loading: Loading,
|
||||
})
|
||||
|
||||
// const CreateMerge = Loadable({
|
||||
// loader: () => import('./forge/Merge/NewMerge'),
|
||||
// loading: Loading,
|
||||
// })
|
||||
|
||||
// 此处仅维护前端可能的一级路由,不用进行项目或者组织判断的字段。
|
||||
const keyWord = ["explore", "settings", "setting", "mulan", "wiki", "issues", "setting", "trending", "code", "projects", "pulls", "mine", "login", "register", "email", "export", "nopage", "404", "403", "500", "501", "search", "organize"];
|
||||
const keyWord = ["explore", "settings", "setting", "mulan", "wiki", "issues", "setting", "trending", "code", "projects", "pulls", "mine", "login", "register", "email", "export", "nopage", "404", "403", "500", "501", "search", "organize", "aboutus"];
|
||||
|
||||
class App extends Component {
|
||||
constructor(props) {
|
||||
|
@ -330,6 +335,11 @@ class App extends Component {
|
|||
}
|
||||
/>
|
||||
|
||||
{/* 关于我们 */}
|
||||
<Route
|
||||
path = "/aboutus"
|
||||
render = {(props)=><AboutUs {...this.props} {...props}/>}
|
||||
></Route>
|
||||
|
||||
{/* 组织 */}
|
||||
<Route path={"/organize"}
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
import React , { useEffect , useState } from 'react';
|
||||
import {TPMIndexHOC} from '../../modules/tpm/TPMIndexHOC';
|
||||
import './AboutUs.scss';
|
||||
|
||||
function AboutUs(){
|
||||
return(
|
||||
<div className="aboutUs">
|
||||
<div className="aboutUs_head">
|
||||
|
||||
</div>
|
||||
<div className="aboutUs_title">
|
||||
<table><tr>
|
||||
<td>关于我们</td>
|
||||
<td>平台统计</td>
|
||||
<td>加入我们</td>
|
||||
<td>合作单位</td>
|
||||
</tr></table>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
export default TPMIndexHOC(AboutUs);
|
|
@ -0,0 +1,12 @@
|
|||
.aboutUs{
|
||||
// width: 1200px;
|
||||
}
|
||||
.aboutUs_head{
|
||||
min-height: 560px;
|
||||
background-color: beige;
|
||||
}
|
||||
.aboutUs_title{
|
||||
height: 62px;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0px 2px 7px 2px rgba(7,26,70,0.12);
|
||||
}
|
|
@ -414,7 +414,10 @@ class NewHeader extends Component {
|
|||
if (user_login && (new_link && new_link.indexOf("homes") > -1)) {
|
||||
new_link = new_link.replace(/homes/g, user_login + "/user_activities")
|
||||
}
|
||||
|
||||
//【关于我们】页面
|
||||
if(item.name === "关于我们"){
|
||||
new_link = `/aboutus`;
|
||||
}
|
||||
var waiLian = (new_link && str.filter(item=>new_link.indexOf(item)>-1) );
|
||||
var wl = waiLian && waiLian.length>0;
|
||||
return (
|
||||
|
|
Loading…
Reference in New Issue