forked from Gitlink/forgeplus-react
glcc学生报名
This commit is contained in:
parent
ccc97628fe
commit
be8c9734fc
|
@ -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 />
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue