glcc学生报名

This commit is contained in:
谢思 2022-06-25 08:36:37 +08:00
parent ccc97628fe
commit be8c9734fc
2 changed files with 4 additions and 2 deletions

View File

@ -118,7 +118,7 @@ export default (props) => {
</div>
</div>
</div>
<Lightspot isGlccApplyDate={isGlccApplyDate} current_user={current_user} showNotification={showNotification} studentApplyStart={studentApplyStart} />
<Lightspot isGlccApplyDate={isGlccApplyDate} current_user={current_user} showNotification={showNotification} studentApplyStart={studentApplyStart} studentApplyEnd={studentApplyEnd}/>
<TimerShaft />
<Award />
<News />

View File

@ -12,7 +12,7 @@ import { Link } from 'react-router-dom';
function Lightspot(props) {
const {current_user, isGlccApplyDate, showNotification, studentApplyStart} = props;
const {current_user, isGlccApplyDate, showNotification, studentApplyStart, studentApplyEnd} = props;
function goToApply(){
if(isGlccApplyDate){
@ -31,6 +31,8 @@ function Lightspot(props) {
//
if(!studentApplyStart){
showNotification("不在报名时间报名开始时间为5月26日");
} else if(studentApplyEnd) {
showNotification("课题申请时间已截止");
}else{
window.location.href="/glcc/subjects";
}