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__Account__Results__index....

2 lines
9.9 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{"9ryg":function(Y,H,s){Y.exports={wrap:"wrap___3-UaI",content:"content___3E-as",hint:"hint___3otcH",titleWrap:"titleWrap___3zROb",title:"title___2jI7q",bind:"bind___1czD7",flexRow:"flexRow___1MeAa",wechatLogo:"wechatLogo___3pmnJ",qqLogo:"qqLogo___12-6e",action:"action___1a_9A",modal:"modal___3aSrG"}},"a90+":function(Y,H,s){"use strict";s.r(H);var ut=s("miYZ"),q=s("tsqr"),st=s("/zsF"),tt=s("PArb"),_t=s("+L6B"),x=s("2/Rp"),$=s("9og8"),z=s("tJVT"),et=s("PpiC"),lt=s("5NDa"),rt=s("5rEg"),T=s("q1tI"),h=s.n(T),nt=s("9kvl"),ot=s("9ryg"),B=s.n(ot),V=s("ErOA");function S(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */S=function(){return _};var _={},p=Object.prototype,v=p.hasOwnProperty,C=typeof Symbol=="function"?Symbol:{},w=C.iterator||"@@iterator",Z=C.asyncIterator||"@@asyncIterator",N=C.toStringTag||"@@toStringTag";function d(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(r,n,o){return r[n]=o}}function G(e,t,r,n){var o=t&&t.prototype instanceof F?t:F,a=Object.create(o.prototype),u=new L(n||[]);return a._invoke=function(E,g,i){var c="suspendedStart";return function(O,Q){if(c==="executing")throw new Error("Generator is already running");if(c==="completed"){if(O==="throw")throw Q;return l()}for(i.method=O,i.arg=Q;;){var X=i.delegate;if(X){var J=I(X,i);if(J){if(J===f)continue;return J}}if(i.method==="next")i.sent=i._sent=i.arg;else if(i.method==="throw"){if(c==="suspendedStart")throw c="completed",i.arg;i.dispatchException(i.arg)}else i.method==="return"&&i.abrupt("return",i.arg);c="executing";var K=U(E,g,i);if(K.type==="normal"){if(c=i.done?"completed":"suspendedYield",K.arg===f)continue;return{value:K.arg,done:i.done}}K.type==="throw"&&(c="completed",i.method="throw",i.arg=K.arg)}}}(e,r,u),a}function U(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}_.wrap=G;var f={};function F(){}function R(){}function y(){}var b={};d(b,w,function(){return this});var A=Object.getPrototypeOf,M=A&&A(A(m([])));M&&M!==p&&v.call(M,w)&&(b=M);var P=y.prototype=F.prototype=Object.create(b);function k(e){["next","throw","return"].forEach(function(t){d(e,t,function(r){return this._invoke(t,r)})})}function D(e,t){function r(o,a,u,E){var g=U(e[o],e,a);if(g.type!=="throw"){var i=g.arg,c=i.value;return c&&typeof c=="object"&&v.call(c,"__await")?t.resolve(c.__await).then(function(O){r("next",O,u,E)},function(O){r("throw",O,u,E)}):t.resolve(c).then(function(O){i.value=O,u(i)},function(O){return r("throw",O,u,E)})}E(g.arg)}var n;this._invoke=function(o,a){function u(){return new t(function(E,g){r(o,a,E,g)})}return n=n?n.then(u,u):u()}}function I(e,t){var r=e.iterator[t.method];if(r===void 0){if(t.delegate=null,t.method==="throw"){if(e.iterator.return&&(t.method="return",t.arg=void 0,I(e,t),t.method==="throw"))return f;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var n=U(r,e.iterator,t.arg);if(n.type==="throw")return t.method="throw",t.arg=n.arg,t.delegate=null,f;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,t.method!=="return"&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function W(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function m(e){if(e){var t=e[w];if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length)){var r=-1,n=function o(){for(;++r<e.length;)if(v.call(e,r))return o.value=e[r],o.done=!1,o;return o.value=void 0,o.done=!0,o};return n.next=n}}return{next:l}}function l(){return{value:void 0,done:!0}}return R.prototype=y,d(P,"constructor",y),d(y,"constructor",R),R.displayName=d(y,N,"GeneratorFunction"),_.isGeneratorFunction=function(e){var t=typeof e=="function"&&e.constructor;return!!t&&(t===R||(t.displayName||t.name)==="GeneratorFunction")},_.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,d(e,N,"GeneratorFunction")),e.prototype=Object.create(P),e},_.awrap=function(e){return{__await:e}},k(D.prototype),d(D.prototype,Z,function(){return this}),_.AsyncIterator=D,_.async=function(e,t,r,n,o){o===void 0&&(o=Promise);var a=new D(G(e,t,r,n),o);return _.isGeneratorFunction(t)?a:a.next().then(function(u){return u.done?u.value:a.next()})},k(P),d(P,N,"Generator"),d(P,w,function(){return this}),d(P,"toString",function(){return"[object Generator]"}),_.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function n(){for(;t.length;){var o=t.pop();if(o in e)return n.value=o,n.done=!1,n}return n.done=!0,n}},_.values=m,L.prototype={constructor:L,reset:function(t){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(W),!t)for(var r in this)r.charAt(0)==="t"&&v.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(t.type==="throw")throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(i,c){return u.type="throw",u.arg=t,r.next=i,c&&(r.method="next",r.arg=void 0),!!c}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],u=a.completion;if(a.tryLoc==="root")return n("end");if(a.tryLoc<=this.prev){var E=v.call(a,"catchLoc"),g=v.call(a,"finallyLoc");if(E&&g){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(E){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&v.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&(t==="break"||t==="continue")&&a.tryLoc<=r&&r<=a.finallyLoc&&(a=null);var u=a?a.completion:{};return u.type=t,u.arg=r,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(u)},complete:function(t,r){if(t.type==="throw")throw t.arg;return t.type==="break"||t.type==="continue"?this.next=t.arg:t.type==="return"?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):t.type==="normal"&&r&&(this.next=r),f},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),W(n),f}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var o=n.completion;if(o.type==="throw"){var a=o.arg;W(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:m(t),resultName:r,nextLoc:n},this.method==="next"&&(this.arg=void 0),f}},_}var at=rt.a.TextArea,it=function(p){var v=p.user,C=p.account,w=p.globalSetting,Z=p.loading,N=p.dispatch,d=Object(et.a)(p,["user","account","globalSetting","loading","dispatch"]),G=Object(T.useState)(),U=Object(z.a)(G,2),f=U[0],F=U[1],R=Object(T.useState)(),y=Object(z.a)(R,2),b=y[0],A=y[1],M=Object(T.useState)(!1),P=Object(z.a)(M,2),k=P[0],D=P[1];Object(T.useEffect)(function(){I()},[]);function I(){return j.apply(this,arguments)}function j(){return j=Object($.a)(S().mark(function m(){var l;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(V.a)("/api/users/honor.json",{method:"get"});case 2:l=t.sent,l&&(F(l==null?void 0:l.honor),A(l==null?void 0:l.honor));case 4:case"end":return t.stop()}},m)})),j.apply(this,arguments)}function W(){return L.apply(this,arguments)}function L(){return L=Object($.a)(S().mark(function m(){var l;return S().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(b){t.next=3;break}return q.b.info("\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),t.abrupt("return");case 3:return t.next=5,Object(V.a)("/api/users/brief_introduction.json",{method:"post",body:{honor:b}});case 5:l=t.sent,l&&(I(),D(!1));case 7:case"end":return t.stop()}},m)})),L.apply(this,arguments)}return h.a.createElement("section",{className:B.a.wrap},h.a.createElement("div",{className:B.a.content},h.a.createElement("div",{className:"".concat(B.a.titleWrap," mt10")},h.a.createElement("div",{className:B.a.title,style:{width:"100%",display:"flex"}},h.a.createElement("span",{style:{flex:"1"}},h.a.createElement("span",null,"\u6210\u679C\u8363\u8A89"),h.a.createElement("span",{style:{fontSize:"14px",color:"#888888"}},"\uFF08\u6559\u5E08\u53EF\u4EE5\u5728\u8FD9\u91CC\u7F16\u64B0\u81EA\u5DF1\u7684\u6559\u7814\u6210\u679C\u3001\u8363\u8A89\u79F0\u53F7\uFF0C\u8FD9\u4E9B\u4FE1\u606F\u5C06\u5728\u8BFE\u7A0B\u4E2D\u5C55\u793A\uFF09")),h.a.createElement(x.a,{onClick:function(){return D(!0)}},"\u7F16\u8F91"))),h.a.createElement(tt.a,null),k?h.a.createElement("div",null,h.a.createElement(at,{value:b,onChange:function(l){return A(l.target.value)},placeholder:"\u8BF7\u7F16\u64B0\u4E0D\u8D85\u8FC7300\u5B57\u7684\u6210\u679C\u3001\u8363\u8A89\u4ECB\u7ECD",maxLength:300}),h.a.createElement(x.a,{type:"primary",style:{marginRight:"10px",marginTop:"10px"},onClick:function(){return W()}},"\u786E\u8BA4"),h.a.createElement(x.a,{style:{marginTop:"10px"},onClick:function(){return D(!1)}},"\u53D6\u6D88")):f||"\u60A8\u5C1A\u672A\u7F16\u64B0\u81EA\u5DF1\u7684\u6559\u7814\u6210\u679C\u548C\u8363\u8A89\u79F0\u53F7\u54E6~"),h.a.createElement("div",{className:"".concat(B.a.hint," font14")},"* \u6211\u4EEC\u786E\u4FDD\u4F60\u6240\u63D0\u4F9B\u7684\u4FE1\u606F\u5747\u5904\u4E8E\u4E25\u683C\u4FDD\u5BC6\u72B6\u6001\uFF0C\u4E0D\u4F1A\u6CC4\u9732"))};H.default=Object(nt.a)(function(_){var p=_.user,v=_.account,C=_.loading,w=_.globalSetting;return{user:p,account:v,globalSetting:w,loading:C.models.index}})(it)}}]);