You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
13 KiB
2 lines
13 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[177],{Lmeb:function(Q,G,l){},qK93:function(Q,G,l){"use strict";l.r(G);var he=l("miYZ"),oe=l("tsqr"),se=l("k1fw"),le=l("0Owb"),Ee=l("+L6B"),V=l("2/Rp"),ve=l("y8nQ"),L=l("Vl3Y"),ye=l("5NDa"),Z=l("5rEg"),X=l("9og8"),q=l("tJVT"),ue=l("PpiC"),ge=l("OaEy"),z=l("2fM7"),Pe=l("aHsQ"),_e=l("sGsY"),W=l("q1tI"),i=l.n(W),ee=l("9kvl"),ie=l("55Ip"),de=l("Lmeb"),Oe=l.n(de),te=l("ErOA"),me=l("sSgx"),re=l.n(me),ce=l("aCH8"),fe=l.n(ce);function M(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */M=function(){return c};var c={},R=Object.prototype,g=R.hasOwnProperty,b=typeof Symbol=="function"?Symbol:{},D=b.iterator||"@@iterator",K=b.asyncIterator||"@@asyncIterator",A=b.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(r,a,n){return r[a]=n}}function B(t,e,r,a){var n=e&&e.prototype instanceof T?e:T,o=Object.create(n.prototype),d=new w(a||[]);return o._invoke=function(E,O,u){var m="suspendedStart";return function(_,y){if(m==="executing")throw new Error("Generator is already running");if(m==="completed"){if(_==="throw")throw y;return J()}for(u.method=_,u.arg=y;;){var v=u.delegate;if(v){var P=k(v,u);if(P){if(P===h)continue;return P}}if(u.method==="next")u.sent=u._sent=u.arg;else if(u.method==="throw"){if(m==="suspendedStart")throw m="completed",u.arg;u.dispatchException(u.arg)}else u.method==="return"&&u.abrupt("return",u.arg);m="executing";var p=I(E,O,u);if(p.type==="normal"){if(m=u.done?"completed":"suspendedYield",p.arg===h)continue;return{value:p.arg,done:u.done}}p.type==="throw"&&(m="completed",u.method="throw",u.arg=p.arg)}}}(t,r,d),o}function I(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(a){return{type:"throw",arg:a}}}c.wrap=B;var h={};function T(){}function x(){}function U(){}var H={};f(H,D,function(){return this});var Y=Object.getPrototypeOf,N=Y&&Y(Y(j([])));N&&N!==R&&g.call(N,D)&&(H=N);var C=U.prototype=T.prototype=Object.create(H);function F(t){["next","throw","return"].forEach(function(e){f(t,e,function(r){return this._invoke(e,r)})})}function s(t,e){function r(n,o,d,E){var O=I(t[n],t,o);if(O.type!=="throw"){var u=O.arg,m=u.value;return m&&typeof m=="object"&&g.call(m,"__await")?e.resolve(m.__await).then(function(_){r("next",_,d,E)},function(_){r("throw",_,d,E)}):e.resolve(m).then(function(_){u.value=_,d(u)},function(_){return r("throw",_,d,E)})}E(O.arg)}var a;this._invoke=function(n,o){function d(){return new e(function(E,O){r(n,o,E,O)})}return a=a?a.then(d,d):d()}}function k(t,e){var r=t.iterator[e.method];if(r===void 0){if(e.delegate=null,e.method==="throw"){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),e.method==="throw"))return h;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var a=I(r,t.iterator,e.arg);if(a.type==="throw")return e.method="throw",e.arg=a.arg,e.delegate=null,h;var n=a.arg;return n?n.done?(e[t.resultName]=n.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,h):n:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function ne(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(ne,this),this.reset(!0)}function j(t){if(t){var e=t[D];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r<t.length;)if(g.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=void 0,n.done=!0,n};return a.next=a}}return{next:J}}function J(){return{value:void 0,done:!0}}return x.prototype=U,f(C,"constructor",U),f(U,"constructor",x),x.displayName=f(U,A,"GeneratorFunction"),c.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===x||(e.displayName||e.name)==="GeneratorFunction")},c.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,U):(t.__proto__=U,f(t,A,"GeneratorFunction")),t.prototype=Object.create(C),t},c.awrap=function(t){return{__await:t}},F(s.prototype),f(s.prototype,K,function(){return this}),c.AsyncIterator=s,c.async=function(t,e,r,a,n){n===void 0&&(n=Promise);var o=new s(B(t,e,r,a),n);return c.isGeneratorFunction(e)?o:o.next().then(function(d){return d.done?d.value:o.next()})},F(C),f(C,A,"Generator"),f(C,D,function(){return this}),f(C,"toString",function(){return"[object Generator]"}),c.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function a(){for(;e.length;){var n=e.pop();if(n in t)return a.value=n,a.done=!1,a}return a.done=!0,a}},c.values=j,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var r in this)r.charAt(0)==="t"&&g.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function a(u,m){return d.type="throw",d.arg=e,r.next=u,m&&(r.method="next",r.arg=void 0),!!m}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],d=o.completion;if(o.tryLoc==="root")return a("end");if(o.tryLoc<=this.prev){var E=g.call(o,"catchLoc"),O=g.call(o,"finallyLoc");if(E&&O){if(this.prev<o.catchLoc)return a(o.catchLoc,!0);if(this.prev<o.finallyLoc)return a(o.finallyLoc)}else if(E){if(this.prev<o.catchLoc)return a(o.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return a(o.finallyLoc)}}}},abrupt:function(e,r){for(var a=this.tryEntries.length-1;a>=0;--a){var n=this.tryEntries[a];if(n.tryLoc<=this.prev&&g.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&(e==="break"||e==="continue")&&o.tryLoc<=r&&r<=o.finallyLoc&&(o=null);var d=o?o.completion:{};return d.type=e,d.arg=r,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(d)},complete:function(e,r){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&r&&(this.next=r),h},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),S(a),h}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc===e){var n=a.completion;if(n.type==="throw"){var o=n.arg;S(a)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,a){return this.delegate={iterator:j(e),resultName:r,nextLoc:a},this.method==="next"&&(this.arg=void 0),h}},c}var Re=_e.a.Countdown,ae=z.a.Option,pe=function(R){var g,b,D,K,A,f,B,I,h,T,x=R.classroomList,U=R.globalSetting,H=R.loading,Y=R.dispatch,N=Object(ue.a)(R,["classroomList","globalSetting","loading","dispatch"]),C=Object(W.useState)(),F=Object(q.a)(C,2),s=F[0],k=F[1],ne=Object(W.useState)(60),S=Object(q.a)(ne,2),w=S[0],j=S[1],J=Object(W.useState)(!1),t=Object(q.a)(J,2),e=t[0],r=t[1];Object(W.useEffect)(function(){a()},[]);function a(){return n.apply(this,arguments)}function n(){return n=Object(X.a)(M().mark(function _(){var y;return M().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,Object(te.a)("/api/mirror_applies/new.json",{method:"get"});case 2:y=P.sent,k(y);case 4:case"end":return P.stop()}},_)})),n.apply(this,arguments)}var o={labelCol:{span:4},wrapperCol:{span:20}};function d(_){return E.apply(this,arguments)}function E(){return E=Object(X.a)(M().mark(function _(y){var v;return M().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return p.next=2,Object(te.a)("/api/mirror_applies.json",{method:"post",body:Object(se.a)({},y)});case 2:v=p.sent,(v==null?void 0:v.status)===0&&(oe.b.info("\u7533\u8BF7\u6210\u529F"),ee.c.push("/shixuns/new/".concat(v==null?void 0:v.id,"/imagepreview")));case 4:case"end":return p.stop()}},_)})),E.apply(this,arguments)}function O(){return u.apply(this,arguments)}function u(){return u=Object(X.a)(M().mark(function _(){var y,v,P,p;return M().wrap(function($){for(;;)switch($.prev=$.next){case 0:return P="79e33abd4b6588941ab7622aed1e67e8",$.next=3,Object(te.a)("/api/mirror_applies/send_code.json",{method:"get",params:{login:s==null||((y=s.data)===null||y===void 0)?void 0:y.phone,smscode:fe()(P+(s==null||((v=s.data)===null||v===void 0)?void 0:v.phone))}});case 3:p=$.sent,(p==null?void 0:p.status)===0&&(oe.b.info("\u83B7\u53D6\u9A8C\u8BC1\u7801\u6210\u529F"),m(),r(!0));case 5:case"end":return $.stop()}},_)})),u.apply(this,arguments)}function m(){j(60);var _=setInterval(function(){--w,w>-1?j(w):(clearInterval(_),r(!1))},1e3)}return i.a.createElement("div",{className:"edu-container minH500",style:{width:"1200px",background:"#ffffff",marginTop:"40px"}},i.a.createElement("p",{className:re.a.Heard},"\u65B0\u5EFA\u5B9E\u9A8C\u955C\u50CF"),i.a.createElement("div",{className:re.a.Divle}),i.a.createElement(L.a,Object(le.a)({},o,{className:re.a.formWrap,onFinish:d}),i.a.createElement(L.a.Item,{wrapperCol:{offset:0,span:16},label:"\u955C\u50CF\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u955C\u50CF\u540D\u79F0"}]},i.a.createElement(Z.a,{bordered:!1,placeholder:"\u4F8B\u5982\uFF1A***********"})),i.a.createElement(L.a.Item,{wrapperCol:{offset:0,span:8},label:"\u57FA\u7840\u73AF\u5883",name:"mirror_repository_id",className:"customItemSelect",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u57FA\u7840\u73AF\u5883"}]},i.a.createElement(z.a,{bordered:!1,placeholder:"\u8BF7\u9009\u62E9\u57FA\u7840\u73AF\u5883"},s==null||((g=s.data)===null||g===void 0||((b=g.basic_environment_config)===null||b===void 0))?void 0:b.map(function(_,y){return i.a.createElement(ae,{value:_.id},_.name)}))),i.a.createElement(L.a.Item,{wrapperCol:{offset:0,span:8},label:"\u5B9E\u9A8C\u73AF\u5883\u914D\u7F6E",name:"cpu_memory_limit",className:"customItemSelect",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883\u914D\u7F6E"}]},i.a.createElement(z.a,{bordered:!1,placeholder:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883\u914D\u7F6E"},s==null||((D=s.data)===null||D===void 0||((K=D.cpu_memory_limit_config)===null||K===void 0))?void 0:K.map(function(_,y){return i.a.createElement(ae,{value:_},_)}))),i.a.createElement(L.a.Item,{wrapperCol:{offset:0,span:8},label:"\u5B9E\u9A8C\u73AF\u5883\u4F7F\u7528\u65F6\u957F",name:"time_limit",className:"customItemSelect",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883\u4F7F\u7528\u65F6\u957F"}]},i.a.createElement(z.a,{bordered:!1,placeholder:"\u8BF7\u9009\u62E9\u5B9E\u9A8C\u73AF\u5883\u4F7F\u7528\u65F6\u957F"},s==null||((A=s.data)===null||A===void 0||((f=A.time_limit_config)===null||f===void 0))?void 0:f.map(function(_,y){return i.a.createElement(ae,{value:_.value},_.name)}))),i.a.createElement(L.a.Item,{wrapperCol:{offset:0,span:8},label:"\u77ED\u4FE1\u9A8C\u8BC1\u7801",name:"code",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u77ED\u4FE1\u9A8C\u8BC1\u7801"}]},i.a.createElement("div",null,i.a.createElement("div",{style:{display:"flex"}},i.a.createElement(Z.a,{bordered:!1,placeholder:"\u4F8B\u5982\uFF1A***********"})," ",i.a.createElement(V.a,{disabled:e,onClick:function(){return O()},type:"primary",style:{marginLeft:"20px",height:"40px",width:"120px",marginTop:"5px"}},e?"\u91CD\u65B0\u53D1\u9001".concat(w,"s"):"\u83B7\u53D6\u9A8C\u8BC1\u7801")),(s==null||((B=s.data)===null||B===void 0)?void 0:B.phone)&&i.a.createElement("div",null,i.a.createElement("span",{style:{color:"#999999",fontSize:"14px"}},"\u9884\u7559\u624B\u673A\u53F7",(s==null||((I=s.data)===null||I===void 0)?void 0:I.phone.substr(0,3))+"****"+(s==null||((h=s.data)===null||h===void 0)?void 0:h.phone.substr(7,11))),i.a.createElement(ie.Link,{style:{marginLeft:"5px",fontSize:"14px"},to:"/account/secure"},"\u66F4\u6362")),!(s==null||((T=s.data)===null||T===void 0)?void 0:T.phone)&&i.a.createElement("div",null,i.a.createElement("span",{style:{color:"#999999",fontSize:"14px"}},"\u60A8\u6682\u672A\u7ED1\u5B9A\u624B\u673A\u53F7"),i.a.createElement(ie.Link,{style:{marginLeft:"5px",fontSize:"14px"},to:"/account/secure"},"\u53BB\u7ED1\u5B9A")))),i.a.createElement(L.a.Item,{wrapperCol:{offset:0,span:16},label:"\u5907\u6CE8",name:"remark",className:"textAreaSize",rules:[{required:!1,message:"\u8BF7\u8F93\u5165\u5907\u6CE8"}]},i.a.createElement("div",{style:{display:"flex"}},i.a.createElement(Z.a.TextArea,{bordered:!1,style:{resize:"none",height:"120px"},placeholder:"\u4F8B\u5982\uFF1A***********"}))),i.a.createElement(L.a.Item,{wrapperCol:{offset:0,span:20}},i.a.createElement("div",{style:{textAlign:"end",marginBottom:30}},i.a.createElement(V.a,{size:"large",onClick:function(){ee.c.goBack()}},"\u53D6\u6D88"),i.a.createElement(V.a,{size:"large",style:{marginLeft:"25px"},type:"primary",htmlType:"submit"},"\u7533\u8BF7")))))};G.default=Object(ee.a)(function(c){var R=c.classroomList,g=c.loading,b=c.globalSetting;return{classroomList:R,globalSetting:b,loading:g.models.classroomList}})(pe)},sSgx:function(Q,G,l){Q.exports={Heard:"Heard___Kx6U9",Divle:"Divle___3T4TG",formWrap:"formWrap___2hxsi"}}}]);
|