关于我们0.1版

This commit is contained in:
谢思 2021-11-23 17:30:05 +08:00
parent d5b4c5425f
commit 982536b547
4 changed files with 49 additions and 2 deletions

View File

@ -97,13 +97,18 @@ const ProjectIndex = Loadable({
loading: Loading, loading: Loading,
}); });
const AboutUs = Loadable({
loader: () => import("./forge/AboutUs/AboutUs"),
loading: Loading,
})
// const CreateMerge = Loadable({ // const CreateMerge = Loadable({
// loader: () => import('./forge/Merge/NewMerge'), // loader: () => import('./forge/Merge/NewMerge'),
// loading: Loading, // 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 { class App extends Component {
constructor(props) { constructor(props) {
@ -330,6 +335,11 @@ class App extends Component {
} }
/> />
{/* 关于我们 */}
<Route
path = "/aboutus"
render = {(props)=><AboutUs {...this.props} {...props}/>}
></Route>
{/* 组织 */} {/* 组织 */}
<Route path={"/organize"} <Route path={"/organize"}

View File

@ -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);

View File

@ -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);
}

View File

@ -414,7 +414,10 @@ class NewHeader extends Component {
if (user_login && (new_link && new_link.indexOf("homes") > -1)) { if (user_login && (new_link && new_link.indexOf("homes") > -1)) {
new_link = new_link.replace(/homes/g, user_login + "/user_activities") 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 waiLian = (new_link && str.filter(item=>new_link.indexOf(item)>-1) );
var wl = waiLian && waiLian.length>0; var wl = waiLian && waiLian.length>0;
return ( return (