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.
NewEduCoderBuild/p__Shixuns__New__CreateImg....

2 lines
13 KiB

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