diff --git a/src/glcc/home/index.jsx b/src/glcc/home/index.jsx index f93cd229..a3ef69b6 100644 --- a/src/glcc/home/index.jsx +++ b/src/glcc/home/index.jsx @@ -12,16 +12,30 @@ import './index.scss'; export default (props) => { const {current_user, isGlccApplyDate, showNotification} = props; + function goToApply(){ + if(isGlccApplyDate){ + if(current_user && current_user.login){ + window.location.href="https://wj.qq.com/s2/10175205/e8df/"; + }else{ + window.location.href="/login?go_page=https://wj.qq.com/s2/10175205/e8df/"; + } + }else{ + showNotification("不在报名时间,报名时间为4月15日~5月20日"); + window.location.href="/glcc"; + } + } return (
{/* */} {/*
*/} - {!isGlccApplyDate && showNotification("不在报名时间,报名时间为4月15日~5月20日")}}> + {/* {!isGlccApplyDate && showNotification("不在报名时间,报名时间为4月15日~5月20日")}}> */} +
立即报名
- +
+ {/* */} {/*
*/}
活动简介
diff --git a/src/glcc/home/index.scss b/src/glcc/home/index.scss index 6063018c..593014cc 100644 --- a/src/glcc/home/index.scss +++ b/src/glcc/home/index.scss @@ -33,6 +33,7 @@ border: 1px solid #466aff; color: #fff; padding-left: 18px; + cursor: pointer; } .apply-text { font-family: Alibaba PuHuiTi; diff --git a/src/glcc/home/lightspot/index.jsx b/src/glcc/home/lightspot/index.jsx index 9ff96d8b..c9d25532 100644 --- a/src/glcc/home/lightspot/index.jsx +++ b/src/glcc/home/lightspot/index.jsx @@ -14,6 +14,19 @@ import { Link } from 'react-router-dom'; function Lightspot(props) { const {current_user, isGlccApplyDate, showNotification} = props; + function goToApply(){ + if(isGlccApplyDate){ + if(current_user && current_user.login){ + window.location.href="https://wj.qq.com/s2/10175205/e8df/"; + }else{ + window.location.href="/login?go_page=https://wj.qq.com/s2/10175205/e8df/"; + } + }else{ + showNotification("不在报名时间,报名时间为4月15日~5月20日"); + window.location.href="/glcc"; + } + } + return (
@@ -23,7 +36,8 @@ function Lightspot(props) {

有兴趣成为GLCC的导师吗?

想要扩大项目知名度和影响力,为开源项目吸引新鲜血液,培养长期开发者。通过GitLink平台,与高校建立连接,指导开源新人传授他们的开源文化,享受开源的乐趣
- {!isGlccApplyDate && showNotification("不在报名时间,报名时间为4月15日~5月20日")}}>立即报名 + {/* {!isGlccApplyDate && showNotification("不在报名时间,报名时间为4月15日~5月20日")}}>立即报名 */} +
立即报名
diff --git a/src/glcc/home/lightspot/index.scss b/src/glcc/home/lightspot/index.scss index 485a7a2b..a99e5e66 100644 --- a/src/glcc/home/lightspot/index.scss +++ b/src/glcc/home/lightspot/index.scss @@ -25,6 +25,7 @@ &:hover{ opacity: .8; color: white !important; + cursor: pointer; } } }