专区CCFslgykc-根据需求定制
This commit is contained in:
parent
32830d3602
commit
c8dee117cd
|
|
@ -32,9 +32,9 @@ export function initAxiosInterceptors(props) {
|
|||
// 判断网络是否连接
|
||||
initOnlineOfflineListener();
|
||||
|
||||
var proxy = "https://testforgeplus.trustie.net";
|
||||
// var proxy = "https://testforgeplus.trustie.net";
|
||||
// var proxy = "http://172.20.32.201:4000";
|
||||
// var proxy = "https://www.gitlink.org.cn";
|
||||
var proxy = "https://www.gitlink.org.cn";
|
||||
|
||||
//响应前的设置
|
||||
axios.interceptors.request.use(
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@ import { Link } from 'react-router-dom';
|
|||
import shijian from '../img/shijian.png';
|
||||
import { getHomePageList , gethomePageDocList , getAllList, getPartnerList } from '../api';
|
||||
import axios from 'axios';
|
||||
import concatLogo from '../img/concat.jpg';
|
||||
import Partner from '../Component/partner';
|
||||
import {getUniqueIdentifier,getUserName,getBrowserPlatform,getBrowserBrand} from '../utils'
|
||||
import {setZoneVisits} from '../api'
|
||||
|
|
@ -16,6 +17,8 @@ function HeaderPage(props){
|
|||
const [ partnerList, setParterList ] = useState(undefined);
|
||||
const { deptId } = props.match.params;
|
||||
const { data, id, temp } = props;
|
||||
|
||||
const isCCFslgykc = Boolean(deptId==="CCFslgykc")
|
||||
|
||||
useEffect(()=>{
|
||||
let uuid = getUniqueIdentifier()
|
||||
|
|
@ -79,6 +82,24 @@ function HeaderPage(props){
|
|||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
function splitName(id){
|
||||
switch(id){
|
||||
case 1461720:
|
||||
return "高校动手学AI 人工智能通识与实践";
|
||||
case 1460351:
|
||||
return "深入浅出Apache Spark系列课程";
|
||||
case 1461782:
|
||||
return "开源大模型训练、推理和评测入门实践";
|
||||
case 1458006:
|
||||
return "从零开始的大模型原理与实践教程";
|
||||
case 1461740:
|
||||
return "动手学Agent应用开发";
|
||||
default://1461776
|
||||
return "FlagOS:面向多元算力的并行训推";
|
||||
}
|
||||
}
|
||||
return(
|
||||
<div className="zone_box">
|
||||
{data && <p className="in_title">{data.firstTitle}</p> }
|
||||
|
|
@ -147,9 +168,9 @@ function HeaderPage(props){
|
|||
projectList.map((i,k)=>{
|
||||
return(
|
||||
<li key={ k }>
|
||||
<div className="imgBox">{i.projectProperties && i.projectProperties.authorImageUrl && <img src={i.projectProperties.authorImageUrl} alt="" /> }</div>
|
||||
<div className="imgBox">{i.projectProperties && i.projectProperties.authorImageUrl && <img src={(isCCFslgykc && i.id ===675) ? concatLogo : i.projectProperties.authorImageUrl} alt="" /> }</div>
|
||||
<div className="infosBox">
|
||||
<a onClick={()=>window.open(i.projectURL)} className="z_p_title task-hide">{i.projectProperties && i.projectProperties.name}</a>
|
||||
<a onClick={()=>window.open(i.projectURL)} className="z_p_title task-hide">{isCCFslgykc ? splitName(i.gitlinkProjectId) : (i.projectProperties && i.projectProperties.name)}</a>
|
||||
<p className="z_p_desc task-hide-2">{i.projectProperties && i.projectProperties.description ? i.projectProperties.description : "暂无~"}</p>
|
||||
</div>
|
||||
</li>
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 378 KiB |
Loading…
Reference in New Issue