From d1eb2c28acf4fde3fd341fadd34478c36093bb61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Thu, 27 Apr 2023 13:39:19 +0800 Subject: [PATCH] issue --- src/glcc/home/index.jsx | 4 +-- src/glcc/home/partner/index.jsx | 49 ++++++++++++++++++++------- src/glcc/home/timerShaft/index.jsx | 53 ++++++++++++++++++++++++++++-- 3 files changed, 90 insertions(+), 16 deletions(-) diff --git a/src/glcc/home/index.jsx b/src/glcc/home/index.jsx index d71443730..3bb8e85bd 100644 --- a/src/glcc/home/index.jsx +++ b/src/glcc/home/index.jsx @@ -198,10 +198,10 @@ export default (props) => { - + - + ) diff --git a/src/glcc/home/partner/index.jsx b/src/glcc/home/partner/index.jsx index ae045815e..03c42fbfc 100644 --- a/src/glcc/home/partner/index.jsx +++ b/src/glcc/home/partner/index.jsx @@ -38,13 +38,13 @@ import log69 from '../../img/69@2x.png'; import log70 from '../../img/浙江大学.png'; import logo1 from '../../img/logo1.png'; import logo2 from '../../img/logo2.png'; -function Partner() { +function Partner({round}) { return (

组织方及合作伙伴

-
+ {round === 2 &&
主办方
{ window.open("https://www.ccf.org.cn/") }} className='div8b9'>
@@ -60,39 +60,64 @@ function Partner() {
{ window.open("http://111.8.36.180:81/#/about") }} className='div8b9'>
-
+
} -
+ {round === 2 &&
钻石赞助商
{ window.open("https://www.bytedance.com/") }}>字节跳动
-
-{/* -
+
} + + {round === 1 &&
+
+ 主办方 +
{ window.open("https://www.ccf.org.cn/") }} className='div8b9'>
+
+
+ 承办方 +
{ window.open("https://www.ccf.org.cn/kyfzwyh/") }} className='div8b9'>
+
+
+ 协办方 +
+
{ window.open("https://www.gitlink.org.cn/") }} className='div8b9 mr35'>
+
{ window.open("http://111.8.36.180:81/#/about") }} className='div8b9'>
+
+
+
} + + {round === 1 &&
+ 特邀合作单位 +
+
{ window.open("https://github.com/open-mmlab") }}>OpenMMLab
+
+
} + + {round === 1 &&
白金赞助商
{ window.open("http://www.baidu.com/") }}>百度
{ window.open("https://www.antgroup.com/") }}>蚂蚁集团
{ window.open("https://www.alibaba.com/") }}>阿里巴巴
-
+
} -
+ {round === 1 &&
黄金赞助商
{ window.open("https://aws.amazon.com/cn/") }}>亚马逊云科技
{ window.open("https://www.didiglobal.com/") }}>滴滴出行
{ window.open("https://www.99cloud.net/") }}>九州云
-
+
} -
+ {round === 1 &&
白银赞助商
{ window.open(" https://www.cloudwego.io/") }}>cloudwego
-
*/} +
}
diff --git a/src/glcc/home/timerShaft/index.jsx b/src/glcc/home/timerShaft/index.jsx index a8a397de4..902ae44d1 100644 --- a/src/glcc/home/timerShaft/index.jsx +++ b/src/glcc/home/timerShaft/index.jsx @@ -2,6 +2,54 @@ import React from 'react'; import Step from './step'; import './index.scss'; +const stepArr2022 = [{ + title: "Step1", + date: "4.15", + content: "GLCC夏令营活动发布" +}, +{ + title: "Step2", + date: "4.15-5.19", + content: "社区项目报名,提交课题" +}, +{ + title: "Step2", + date: "5.20-5.25", + content: "公示社区项目名单" +}, +{ + title: "Step2", + date: "5.26-6.24", + content: "学生报名,提交Proposal" +}, +{ + title: "Step2", + date: "7.1", + content: "公示入选学生名单", + noArrow: true, +}, +{ + title: "Step2", + date: "7.1-8.12", + content: "项目开发第一阶段", +}, +{ + title: "Step2", + date: "8.12-9.30", + content: "项目开发第二阶段", +}, +{ + title: "Step2", + date: "10.1-10.21", + content: "结项审核,并公示考核结果", +}, +{ + title: "Step2", + date: "10.21-11.11", + content: "评选公布优秀项目和学员", + noArrow: true, +} +] const stepArr = [{ title: "Step1", date: "4.29", @@ -56,7 +104,8 @@ const stepArr = [{ } ] -function TimerShaft() { +function TimerShaft({round}) { + const step = round === 2 ? stepArr : stepArr2022 return (
@@ -64,7 +113,7 @@ function TimerShaft() {

时间规划

{ - stepArr.map((item, i) => { + step.map((item, i) => { return }) }