(this.webpackJsonp=this.webpackJsonp||[]).push([[129],{"9Rdz":function(e,t,a){"use strict";a.r(t),t.default=a.p+"static/media/bgPng.ed010245.png"},GVBq:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=i(a("W9HT")),n=i(a("3S7+")),c=i(a("2/Rp"));a("T2oS"),a("5Dmo"),a("+L6B");var s=a("cDcd"),r=i(s),d=a("hJRQ"),u=i(a("9Rdz"));function i(e){return e&&e.__esModule?e:{default:e}}a("LnQG"),a("gWjc"),t.default=function(e){var t=e.match,a=(e.location,e.isStudentApplyDate),i=e.secondStudentApplyDate,m=e.applyTaskId,f=e.applyTask,o=Number(t.params.taskId),p=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var a=[],l=!0,n=!1,c=void 0;try{for(var s,r=e[Symbol.iterator]();!(l=(s=r.next()).done)&&(a.push(s.value),!t||a.length!==t);l=!0);}catch(e){n=!0,c=e}finally{try{!l&&r.return&&r.return()}finally{if(n)throw c}}return a}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}((0,s.useState)(void 0),2),E=p[0],y=p[1];return(0,s.useEffect)((function(){(0,d.getTaskById)(o).then((function(e){e&&"success"===e.message&&y(e.data)}))}),[]),r.default.createElement("div",{className:"taskDetailBgBox"},r.default.createElement(l.default,{spinning:!E},E&&r.default.createElement("div",{className:"bgBox"},r.default.createElement("div",{className:"detailBox"},r.default.createElement("div",{className:"goBackBox"},r.default.createElement("a",{href:"/glcc"},"开源夏令营 / "),r.default.createElement("a",{href:"/glcc/subjects"},"课题及项目列表 / "),"课题详情")),r.default.createElement("div",{className:"detailContent"},r.default.createElement("div",{className:"detailHead"},r.default.createElement("div",{className:"title"},E.taskName),r.default.createElement("div",{className:"box"},E.projectType&&r.default.createElement("span",{className:"classify"},E.projectType),E.taskUrl&&r.default.createElement("span",null,"课题链接: ",r.default.createElement("a",{href:E.taskUrl,className:"link"},E.taskUrl)))),r.default.createElement("div",{className:"detailCont"},r.default.createElement("div",null,r.default.createElement("span",{className:"smallTil"},"所属项目"),E.projectName),r.default.createElement("div",{className:"moneyBox"},r.default.createElement("span",{className:"smallTil"},"课题奖金"),r.default.createElement("span",{className:"money"},"￥",E.taskReward)),r.default.createElement("div",null,r.default.createElement("span",{className:"smallTil"},"导师信息"),E.tutorName,E.tutorMail&&"   |  "+E.tutorMail),r.default.createElement("div",{className:"bor"}),r.default.createElement("div",null,r.default.createElement("span",{className:"smallTil"},"课题简介")),r.default.createElement("div",{className:"desc"},E.taskDesc)),m&&Object.keys(m).includes(o.toString())&&r.default.createElement(c.default,{onClick:function(){window.location.href="/glcc/student/apply/"+o},className:"lookDetail detailBut"},"报名详情"),a&&!(m&&Object.keys(m).includes(o.toString()))&&r.default.createElement(c.default,{type:"primary",className:"applyBut detailBut",onClick:function(){f(o)}},"申请课题"),i&&!(m&&Object.keys(m).includes(o.toString()))&&(E.locked?r.default.createElement(n.default,{title:"该课题已有学生入选"},r.default.createElement(c.default,{type:"primary",className:"mr10 detailBut",disabled:!0},"申请课题")):r.default.createElement(c.default,{type:"primary",className:"applyBut mr10 detailBut",onClick:function(){f(o)}},"申请课题"))),r.default.createElement("img",{src:u.default,alt:"",className:"bgPng1"}),r.default.createElement("img",{src:u.default,alt:"",className:"bgPng2"}))))}},LnQG:function(e,t,a){},gWjc:function(e,t,a){}}]);