From 3fb1b9496e0feda096382cf40903665cf07de6c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= Date: Tue, 10 May 2022 17:42:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E6=BA=90=E5=A4=8F=E4=BB=A4=E8=90=A5?= =?UTF-8?q?=E6=8A=A5=E5=90=8D=E8=B7=B3=E8=BD=AC=E5=88=B0=E5=8F=A6=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/glcc/home/index.jsx | 18 ++++++++++++++++-- src/glcc/home/index.scss | 1 + src/glcc/home/lightspot/index.jsx | 16 +++++++++++++++- src/glcc/home/lightspot/index.scss | 1 + 4 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/glcc/home/index.jsx b/src/glcc/home/index.jsx index f93cd2294..a3ef69b68 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 6063018cb..593014cc5 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 9ff96d8b5..c9d255329 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 485a7a2bd..a99e5e664 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; } } }