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
14 KiB

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