diff --git a/src/glcc/apply/index.jsx b/src/glcc/apply/index.jsx index 956ef7144..f09e39418 100644 --- a/src/glcc/apply/index.jsx +++ b/src/glcc/apply/index.jsx @@ -71,24 +71,18 @@ function Apply(props) { e.preventDefault(); validateFieldsAndScroll((err, values) => { if (!err) { - Modal.confirm({ - title: "确认提交", - content: "确定提交报名信息,提交后报名信息将无法修改。", - onOk: ()=>{ - const params ={ - ...values, - projectLogoId: values.logo.file.response.data.id, - userId: current_user.user_id, - userName: current_user.username - } - applyGlcc(params).then(response=>{ - if(response && response.message === "success"){ - showNotification("报名成功"); - setReload(Math.random()); - } - })} - }) - } + const params ={ + ...values, + projectLogoId: values.logo.file.response.data.id, + userId: current_user.user_id, + userName: current_user.username + } + applyGlcc(params).then(response=>{ + if(response && response.message === "success"){ + showNotification("报名成功"); + setReload(Math.random()); + } + })} }); }; @@ -129,6 +123,9 @@ function Apply(props) { 开源夏令营 项目报名 + {userApplyInfo &&
+ 您已报名成功,请关注活动后续新闻公告! +
}
{helper('项目名称', '', @@ -148,9 +145,9 @@ function Apply(props) { {helper('GitLink项目地址', '', 'gitlinkUrl', - [{ required: true, message: "请正确输入GitLink项目地址" }, + [{ required: true, message: "请正确输入预申报项目在GitLink平台的地址" }, { max: 252, message: '超出限制长度252位字符,请重新编辑' }], - {verify("gitlink")}} disabled = {userApplyInfo ? true : false} className={userApplyInfo? "disabledInput":""}/> + {verify("gitlink")}} disabled = {userApplyInfo ? true : false} className={userApplyInfo? "disabledInput":""}/> )} {helper('官网地址', '', @@ -163,7 +160,7 @@ function Apply(props) { 'projectIntro', [{ required: true, message: "请正确输入项目简介" }, { max: 200, message: '超出限制长度200位字符,请重新编辑' }], -