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.
5 lines
28 KiB
5 lines
28 KiB
(window.webpackJsonp=window.webpackJsonp||[]).push([[118,6,9,12,15],{"1ZF9":function(Y,M,o){Y.exports=o.p+"static/Authorize.cc9c212f.png"},"2kAv":function(Y,M,o){Y.exports={wrap:"wrap___CCio_",link:"link___PWIh8"}},"9Bee":function(Y,M,o){"use strict";var de=o("q1tI"),re=o.n(de),Fe=o("vg9a"),x=o("tJVT"),fe=o("DlQD"),S=o.n(fe),ie=o("rUJ1");function me(d,f){var v=d.match(/^(\s+)(?:```)/);if(v===null)return f;var y=v[1];return f.split(`
|
|
`).map(function(T){var k=T.match(/^\s+/);if(k===null)return T;var X=Object(x.a)(k,1),c=X[0];return c.length>=y.length?T.slice(y.length):T}).join(`
|
|
`)}var ne=[],ae=["<ul>"],P=new S.a.Renderer,ue=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function le(){ne.length=0,ae=["<ul>"]}function V(d,f,v,y){if(f>=d.length||d[f].level<=v)return f;var T=d[f];y.push("<li><a href='#"+T.anchor+"'>"+T.text+"</a>"),f++;var k=[];return f=V(d,f,T.level,k),k.length>0&&(y.push("<ul>"),k.forEach(function(X){y.push(X)}),y.push("</ul>")),y.push("</li>"),f=V(d,f,v,y),f}function i(){return V(ne,0,0,ae),ae.push("</ul>"),ae.join("")}var D={heading:function(f){var v=ue.exec(f);if(v)return{type:"heading",raw:v[0],depth:v[1].length,text:v[2]}},fences:function(f){var v=this.rules.block.fences.exec(f);if(v){var y=v[0],T=me(y,v[3]||""),k=v[2]?v[2].trim():v[2];if(["latex","katex","math"].indexOf(k)>=0){var X=he(),c=T;T=X,Ee[X]={type:"block",expression:c}}return{type:"code",raw:y,lang:k,text:T}}}},z=/(?:\${2})([^\n`]+?)(?:\${2})/gi,q=0,he=function(){return"__special_katext_id_".concat(q++,"__")},Ee={};function Ae(){return Ee}function Q(){q=0,Ee={}}function ge(d){return d=d.replace(z,function(f,v){var y=he();return Ee[y]={type:"inline",expression:v},y}),d}var Re=P.listitem;P.listitem=function(d){return Re(ge(d))};var Pe=P.paragraph;P.paragraph=function(d){return Pe(ge(d))};var ee=P.tablecell;P.tablecell=function(d,f){return ee(ge(d),f)},P.code=function(d,f,v){var y=(f||"").match(/\S*/)[0];return y?["latex","katex","math"].indexOf(y)>=0?"<p class='editormd-tex'>".concat(d,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(f,'">').concat(v?d:Object(ie.escape)(d,!0),`</code></pre>
|
|
`):'<pre class="prettyprint linenums"><code>'+(v?d:Object(ie.escape)(d,!0))+"</code></pre>"},P.heading=function(d,f,v){var y=this.options.headerPrefix+v.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ne.push({anchor:y,level:f,text:d}),"<h"+f+' id="'+y+'">'+d+"</h"+f+">"},S.a.setOptions({silent:!0,smartypants:!0,gfm:!0,pedantic:!1}),S.a.use({tokenizer:D,renderer:P});var Oe=S.a,Te=o("SJMd"),pe=o("m3rI"),Ue=o("Oy/b"),be=/<pre[^>]*>/g;function ye(d){var f=document.createElement("div");return f.innerHTML=d,f.childNodes.length===0?"":f.childNodes[0].nodeValue}var De=M.a=function(d){var f=d.value,v=f===void 0?"":f,y=d.className,T=d.style,k=T===void 0?{}:T,X=String(v),c=Object(de.useMemo)(function(){try{var A=/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,C=/\"\/api\/attachments\/|\"\/attachments\/download\//g,w=/\(\s+\/files\/uploads\/|\(\/files\/uploads\//g;X=X.replace(A,"("+pe.a.API_SERVER+"/api/attachments/").replace(C,'"'+pe.a.API_SERVER+"/api/attachments/").replace(w,'"'+pe.a.API_SERVER+"/files/uploads/")}catch(Z){}var b=Oe(X),m=Ae();return X.match(/\[TOC\]/)&&(b=b.replace("<p>[TOC]</p>",i()),le()),b=b.replace(/(__special_katext_id_\d+__)/g,function(Z,H){var p=m[H],N=p.type,j=p.expression;return Object(Ue.renderToString)(ye(j)||"",{displayMode:N==="block",throwOnError:!1,output:"html"})}),b=b.replace(/▁/g,"\u2581\u2581\u2581"),Q(),b},[X]),_=Object(de.useRef)();function E(A){var C=A.target;if(C.tagName.toUpperCase()==="A"){var w=C.getAttribute("href");if(w.startsWith("#")){A.preventDefault();var b=document.getElementById(w.replace("#",""));b&&b.scrollIntoView(!0)}}}return Object(de.useEffect)(function(){if(_.current&&c&&(c.match(be)&&window.PR.prettyPrint()),_.current)return _.current.addEventListener("click",E),function(){_.current.removeEventListener("click",E),Q(),le()}},[c,_.current,E]),re.a.createElement("div",{ref:_,style:k,className:"".concat(y||""," markdown-body"),dangerouslySetInnerHTML:{__html:c}})}},NLgs:function(Y,M,o){"use strict";o.d(M,"d",function(){return ne}),o.d(M,"e",function(){return ae}),o.d(M,"c",function(){return ue}),o.d(M,"b",function(){return le}),o.d(M,"a",function(){return V});var de=o("2qtc"),re=o("kLXV"),Fe=o("q1tI"),x=o.n(Fe),fe=o("9kvl"),S=o("xKgJ"),ie=o("1vsH"),me=o("m3rI"),ne=function(D){return!!(ae(D)&&P())},ae=function(D){return Object(S.o)()?!0:(D({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},P=function(){var D,z=Object(fe.b)()._store.getState(),q=z.user;return((D=q.userInfo)===null||D===void 0?void 0:D.profile_completed)?!0:(re.a.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:x.a.createElement("div",{className:"tc font16"},"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){fe.c.push("/account/profile/edit")}}),!1)},ue=function(){var D,z=Object(fe.b)()._store.getState(),q=z.user;return((D=q.userInfo)===null||D===void 0?void 0:D.professional_certification)?!0:(re.a.confirm({title:"\u63D0\u793A",centered:!0,content:x.a.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:function(){Object(ie.C)("/account/certification")}}),!1)},le=function(){return Object(S.a)()?!0:(re.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:x.a.createElement("div",{className:"tc"},x.a.createElement("p",null,"\u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650"),x.a.createElement("img",{src:Object(S.s)()?o("WdTA"):"".concat(me.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),x.a.createElement("div",{className:"tc"},"\u7FA4\u53F7\uFF1A",Object(S.s)()?"693542422":"612934990")),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(ie.C)("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},V=function(D){return D?!0:(re.a.confirm({centered:!0,width:530,title:"\u63D0\u793A",content:x.a.createElement("div",null,x.a.createElement("p",null,"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),x.a.createElement("div",{style:{marginLeft:"110px"}},x.a.createElement("img",{src:o("1ZF9"),width:200}),x.a.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:function(){Object(ie.C)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)}},TNY5:function(Y,M,o){"use strict";o.r(M);var de=o("cWXX"),re=o("/ezw"),Fe=o("14J3"),x=o("BMrR"),fe=o("jCWc"),S=o("kPKH"),ie=o("lUTK"),me=o("BvKs"),ne=o("9og8"),ae=o("y8nQ"),P=o("Vl3Y"),ue=o("tJVT"),le=o("PpiC"),V=o("q1tI"),i=o.n(V),D=o("55Ip"),z=o("9kvl"),q=o("ErOA"),he=o("9Bee"),Ee=o("m3rI"),Ae=o("zvqp"),Q=o.n(Ae),ge=o("+L6B"),Re=o("2/Rp"),Pe=o("7Kak"),ee=o("9yH6"),Oe=o("k1fw"),Te=o("5NDa"),pe=o("5rEg"),Ue=o("NLgs"),be=o("2kAv"),ye=o.n(be),De=o("1vsH");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 c};var c={},_=Object.prototype,E=_.hasOwnProperty,A=typeof Symbol=="function"?Symbol:{},C=A.iterator||"@@iterator",w=A.asyncIterator||"@@asyncIterator",b=A.toStringTag||"@@toStringTag";function m(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{m({},"")}catch(t){m=function(r,n,a){return r[n]=a}}function Z(t,e,r,n){var a=e&&e.prototype instanceof N?e:N,u=Object.create(a.prototype),s=new I(n||[]);return u._invoke=function(g,O,l){var h="suspendedStart";return function(U,ve){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(U==="throw")throw ve;return L()}for(l.method=U,l.arg=ve;;){var _e=l.delegate;if(_e){var ce=se(_e,l);if(ce){if(ce===p)continue;return ce}}if(l.method==="next")l.sent=l._sent=l.arg;else if(l.method==="throw"){if(h==="suspendedStart")throw h="completed",l.arg;l.dispatchException(l.arg)}else l.method==="return"&&l.abrupt("return",l.arg);h="executing";var J=H(g,O,l);if(J.type==="normal"){if(h=l.done?"completed":"suspendedYield",J.arg===p)continue;return{value:J.arg,done:l.done}}J.type==="throw"&&(h="completed",l.method="throw",l.arg=J.arg)}}}(t,r,s),u}function H(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}c.wrap=Z;var p={};function N(){}function j(){}function F(){}var B={};m(B,C,function(){return this});var G=Object.getPrototypeOf,$=G&&G(G(te([])));$&&$!==_&&E.call($,C)&&(B=$);var R=F.prototype=N.prototype=Object.create(B);function oe(t){["next","throw","return"].forEach(function(e){m(t,e,function(r){return this._invoke(e,r)})})}function K(t,e){function r(a,u,s,g){var O=H(t[a],t,u);if(O.type!=="throw"){var l=O.arg,h=l.value;return h&&typeof h=="object"&&E.call(h,"__await")?e.resolve(h.__await).then(function(U){r("next",U,s,g)},function(U){r("throw",U,s,g)}):e.resolve(h).then(function(U){l.value=U,s(l)},function(U){return r("throw",U,s,g)})}g(O.arg)}var n;this._invoke=function(a,u){function s(){return new e(function(g,O){r(a,u,g,O)})}return n=n?n.then(s,s):s()}}function se(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,se(t,e),e.method==="throw"))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=H(r,t.iterator,e.arg);if(n.type==="throw")return e.method="throw",e.arg=n.arg,e.delegate=null,p;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function Le(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 W(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Le,this),this.reset(!0)}function te(t){if(t){var e=t[C];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var r=-1,n=function a(){for(;++r<t.length;)if(E.call(t,r))return a.value=t[r],a.done=!1,a;return a.value=void 0,a.done=!0,a};return n.next=n}}return{next:L}}function L(){return{value:void 0,done:!0}}return j.prototype=F,m(R,"constructor",F),m(F,"constructor",j),j.displayName=m(F,b,"GeneratorFunction"),c.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===j||(e.displayName||e.name)==="GeneratorFunction")},c.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,F):(t.__proto__=F,m(t,b,"GeneratorFunction")),t.prototype=Object.create(R),t},c.awrap=function(t){return{__await:t}},oe(K.prototype),m(K.prototype,w,function(){return this}),c.AsyncIterator=K,c.async=function(t,e,r,n,a){a===void 0&&(a=Promise);var u=new K(Z(t,e,r,n),a);return c.isGeneratorFunction(e)?u:u.next().then(function(s){return s.done?s.value:u.next()})},oe(R),m(R,b,"Generator"),m(R,C,function(){return this}),m(R,"toString",function(){return"[object Generator]"}),c.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function n(){for(;e.length;){var a=e.pop();if(a in t)return n.value=a,n.done=!1,n}return n.done=!0,n}},c.values=te,I.prototype={constructor:I,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(W),!e)for(var r in this)r.charAt(0)==="t"&&E.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 n(l,h){return s.type="throw",s.arg=e,r.next=l,h&&(r.method="next",r.arg=void 0),!!h}for(var a=this.tryEntries.length-1;a>=0;--a){var u=this.tryEntries[a],s=u.completion;if(u.tryLoc==="root")return n("end");if(u.tryLoc<=this.prev){var g=E.call(u,"catchLoc"),O=E.call(u,"finallyLoc");if(g&&O){if(this.prev<u.catchLoc)return n(u.catchLoc,!0);if(this.prev<u.finallyLoc)return n(u.finallyLoc)}else if(g){if(this.prev<u.catchLoc)return n(u.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return n(u.finallyLoc)}}}},abrupt:function(e,r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&E.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var u=a;break}}u&&(e==="break"||e==="continue")&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var s=u?u.completion:{};return s.type=e,s.arg=r,u?(this.method="next",this.next=u.finallyLoc,p):this.complete(s)},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),p},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),W(n),p}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var a=n.completion;if(a.type==="throw"){var u=a.arg;W(n)}return u}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:te(e),resultName:r,nextLoc:n},this.method==="next"&&(this.arg=void 0),p}},c}var f=pe.a.TextArea,v=function(_){var E=_.user,A=_.globalSetting,C=_.loading,w=_.dispatch,b=Object(le.a)(_,["user","globalSetting","loading","dispatch"]),m=P.a.useForm(),Z=Object(ue.a)(m,1),H=Z[0];Object(V.useEffect)(function(){var N;Object(De.A)((N=E.userInfo)===null||N===void 0?void 0:N.login)||Object(Ue.e)(w)},[E.userInfo.login]);var p=function(){var N=Object(ne.a)(d().mark(function j(F){var B,G;return d().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,Object(q.a)("/api/helps/feedback.json",{method:"post",body:Object(Oe.a)({},F)});case 2:B=R.sent,(B==null?void 0:B.status)===0&&z.c.push("/messages/".concat((G=E.userInfo)===null||G===void 0?void 0:G.login,"/message_detail?target_ids=1"));case 4:case"end":return R.stop()}},j)}));return function(F){return N.apply(this,arguments)}}();return i.a.createElement("section",{className:"".concat(ye.a.wrap," bg-white pl30 pr30 pt30")},i.a.createElement("div",{className:"c-grey-999 line26"},"\u60F3\u5BF9\u6211\u4EEC\u7684\u5E73\u53F0\u63D0\u4F9B\u529F\u80FD\u5EFA\u8BAE\uFF1F",i.a.createElement("br",null),"\u53D1\u73B0\u7F51\u9875\u4E2D\u7684\u95EE\u9898\u6216bug\u60F3\u544A\u8BC9\u6211\u4EEC\uFF1F",i.a.createElement("br",null),"\u671F\u671B\u4E0E\u6211\u4EEC\u5C55\u5F00\u5408\u4F5C\uFF1F",i.a.createElement("br",null),"\u5728\u8FD9\u91CC\u628A\u4F60\u60F3\u8BF4\u7684\u4E00\u5207\u544A\u8BC9\u6211\u4EEC\u5427\uFF1F"),i.a.createElement("div",{className:"c-red-ee4 mt20 mb20"},"* ",i.a.createElement(D.Link,{to:"/help/help_center",className:"".concat(ye.a.link," c-red-ee4")},"\u770B\u770B\u5E2E\u52A9\u4E2D\u5FC3\u662F\u5426\u6709\u4F60\u60F3\u8981\u7684\u7B54\u6848")),i.a.createElement(P.a,{layout:"vertical",form:H,onFinish:p,initialValues:{question_kind:"\u767B\u5F55\u6CE8\u518C"}},i.a.createElement(P.a.Item,{label:"\u95EE\u9898\u5206\u7C7B\uFF1A",name:"question_kind",rules:[{required:!0,message:"\u4E0D\u80FD\u4E3A\u7A7A"}]},i.a.createElement(ee.a.Group,null,i.a.createElement(ee.a,{value:"\u767B\u5F55\u6CE8\u518C"},"\u767B\u5F55\u6CE8\u518C"),i.a.createElement(ee.a,{value:"\u4FE1\u606F\u8BA4\u8BC1"},"\u4FE1\u606F\u8BA4\u8BC1"),i.a.createElement(ee.a,{value:"\u5B9E\u8BAD\u7F16\u7A0B"},"\u5B9E\u8BAD\u7F16\u7A0B"),i.a.createElement(ee.a,{value:"\u5B9E\u8BAD\u8BFE\u7A0B"},"\u5B9E\u8BAD\u8BFE\u7A0B"),i.a.createElement(ee.a,{value:"\u8BFE\u5802"},"\u8BFE\u5802"),i.a.createElement(ee.a,{value:"\u5176\u5B83"},"\u5176\u5B83"))),i.a.createElement(P.a.Item,{label:"\u95EE\u9898\u9875\u9762\u7F51\u5740\uFF1A",name:"url",rules:[{required:!0,message:"\u4E0D\u80FD\u4E3A\u7A7A"}]},i.a.createElement(pe.a,{placeholder:"\u53CD\u9988\u5E73\u53F0\u95EE\u9898\uFF0C\u8BF7\u540C\u65F6\u586B\u5199\u5BF9\u5E94\u7684\u95EE\u9898\u9875\u9762\u94FE\u63A5\uFF0C\u4EE5\u4FBF\u5E73\u53F0\u80FD\u591F\u53CA\u65F6\u8DDF\u8E2A\u89E3\u51B3\uFF0C\u8C22\u8C22"})),i.a.createElement(P.a.Item,{label:"\u95EE\u9898\u63CF\u8FF0\uFF1A",name:"description",rules:[{required:!0,message:"\u4E0D\u80FD\u4E3A\u7A7A"}]},i.a.createElement(f,{rows:4,placeholder:"\u53CD\u9988\u5E73\u53F0\u95EE\u9898\uFF0C\u8BF7\u540C\u65F6\u586B\u5199\u5BF9\u5E94\u7684\u95EE\u9898\u9875\u9762\u94FE\u63A5\uFF0C\u4EE5\u4FBF\u5E73\u53F0\u80FD\u591F\u53CA\u65F6\u8DDF\u8E2A\u89E3\u51B3\uFF0C\u8C22\u8C22"})),i.a.createElement(P.a.Item,null,i.a.createElement(Re.a,{type:"primary",htmlType:"submit"},"\u63D0\u4EA4"))))},y=Object(z.a)(function(c){var _=c.user,E=c.loading,A=c.globalSetting;return{user:_,globalSetting:A,loading:E.models.index}})(v);function T(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */T=function(){return c};var c={},_=Object.prototype,E=_.hasOwnProperty,A=typeof Symbol=="function"?Symbol:{},C=A.iterator||"@@iterator",w=A.asyncIterator||"@@asyncIterator",b=A.toStringTag||"@@toStringTag";function m(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{m({},"")}catch(t){m=function(r,n,a){return r[n]=a}}function Z(t,e,r,n){var a=e&&e.prototype instanceof N?e:N,u=Object.create(a.prototype),s=new I(n||[]);return u._invoke=function(g,O,l){var h="suspendedStart";return function(U,ve){if(h==="executing")throw new Error("Generator is already running");if(h==="completed"){if(U==="throw")throw ve;return L()}for(l.method=U,l.arg=ve;;){var _e=l.delegate;if(_e){var ce=se(_e,l);if(ce){if(ce===p)continue;return ce}}if(l.method==="next")l.sent=l._sent=l.arg;else if(l.method==="throw"){if(h==="suspendedStart")throw h="completed",l.arg;l.dispatchException(l.arg)}else l.method==="return"&&l.abrupt("return",l.arg);h="executing";var J=H(g,O,l);if(J.type==="normal"){if(h=l.done?"completed":"suspendedYield",J.arg===p)continue;return{value:J.arg,done:l.done}}J.type==="throw"&&(h="completed",l.method="throw",l.arg=J.arg)}}}(t,r,s),u}function H(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}c.wrap=Z;var p={};function N(){}function j(){}function F(){}var B={};m(B,C,function(){return this});var G=Object.getPrototypeOf,$=G&&G(G(te([])));$&&$!==_&&E.call($,C)&&(B=$);var R=F.prototype=N.prototype=Object.create(B);function oe(t){["next","throw","return"].forEach(function(e){m(t,e,function(r){return this._invoke(e,r)})})}function K(t,e){function r(a,u,s,g){var O=H(t[a],t,u);if(O.type!=="throw"){var l=O.arg,h=l.value;return h&&typeof h=="object"&&E.call(h,"__await")?e.resolve(h.__await).then(function(U){r("next",U,s,g)},function(U){r("throw",U,s,g)}):e.resolve(h).then(function(U){l.value=U,s(l)},function(U){return r("throw",U,s,g)})}g(O.arg)}var n;this._invoke=function(a,u){function s(){return new e(function(g,O){r(a,u,g,O)})}return n=n?n.then(s,s):s()}}function se(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,se(t,e),e.method==="throw"))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=H(r,t.iterator,e.arg);if(n.type==="throw")return e.method="throw",e.arg=n.arg,e.delegate=null,p;var a=n.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,e.method!=="return"&&(e.method="next",e.arg=void 0),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function Le(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 W(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Le,this),this.reset(!0)}function te(t){if(t){var e=t[C];if(e)return e.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length)){var r=-1,n=function a(){for(;++r<t.length;)if(E.call(t,r))return a.value=t[r],a.done=!1,a;return a.value=void 0,a.done=!0,a};return n.next=n}}return{next:L}}function L(){return{value:void 0,done:!0}}return j.prototype=F,m(R,"constructor",F),m(F,"constructor",j),j.displayName=m(F,b,"GeneratorFunction"),c.isGeneratorFunction=function(t){var e=typeof t=="function"&&t.constructor;return!!e&&(e===j||(e.displayName||e.name)==="GeneratorFunction")},c.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,F):(t.__proto__=F,m(t,b,"GeneratorFunction")),t.prototype=Object.create(R),t},c.awrap=function(t){return{__await:t}},oe(K.prototype),m(K.prototype,w,function(){return this}),c.AsyncIterator=K,c.async=function(t,e,r,n,a){a===void 0&&(a=Promise);var u=new K(Z(t,e,r,n),a);return c.isGeneratorFunction(e)?u:u.next().then(function(s){return s.done?s.value:u.next()})},oe(R),m(R,b,"Generator"),m(R,C,function(){return this}),m(R,"toString",function(){return"[object Generator]"}),c.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function n(){for(;e.length;){var a=e.pop();if(a in t)return n.value=a,n.done=!1,n}return n.done=!0,n}},c.values=te,I.prototype={constructor:I,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(W),!e)for(var r in this)r.charAt(0)==="t"&&E.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 n(l,h){return s.type="throw",s.arg=e,r.next=l,h&&(r.method="next",r.arg=void 0),!!h}for(var a=this.tryEntries.length-1;a>=0;--a){var u=this.tryEntries[a],s=u.completion;if(u.tryLoc==="root")return n("end");if(u.tryLoc<=this.prev){var g=E.call(u,"catchLoc"),O=E.call(u,"finallyLoc");if(g&&O){if(this.prev<u.catchLoc)return n(u.catchLoc,!0);if(this.prev<u.finallyLoc)return n(u.finallyLoc)}else if(g){if(this.prev<u.catchLoc)return n(u.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<u.finallyLoc)return n(u.finallyLoc)}}}},abrupt:function(e,r){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&E.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var u=a;break}}u&&(e==="break"||e==="continue")&&u.tryLoc<=r&&r<=u.finallyLoc&&(u=null);var s=u?u.completion:{};return s.type=e,s.arg=r,u?(this.method="next",this.next=u.finallyLoc,p):this.complete(s)},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),p},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),W(n),p}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===e){var a=n.completion;if(a.type==="throw"){var u=a.arg;W(n)}return u}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:te(e),resultName:r,nextLoc:n},this.method==="next"&&(this.arg=void 0),p}},c}var k=function(_){var E,A,C,w,b=_.user,m=_.globalSetting,Z=_.loading,H=_.dispatch,p=Object(le.a)(_,["user","globalSetting","loading","dispatch"]),N=Object(V.useState)({content:"",message:"",status:0,contacts:[],address:"",data:[]}),j=Object(ue.a)(N,2),F=j[0],B=j[1],G=Object(V.useState)(!0),$=Object(ue.a)(G,2),R=$[0],oe=$[1],K=P.a.useForm(),se=Object(ue.a)(K,1),Le=se[0],W=[{name:"\u5173\u4E8E\u6211\u4EEC",key:"about_us",id:"about"},{name:"\u52A0\u5165\u6211\u4EEC",key:"join_us",id:"join_us"},{name:"\u8054\u7CFB\u6211\u4EEC",key:"contact_us",id:"contact"},{name:"\u5408\u4F5C\u4F19\u4F34",key:"cooperatives",id:"cooperatives"},{name:"\u670D\u52A1\u534F\u8BAE",key:"agreement",id:"agreement"},{name:"\u5E2E\u52A9\u4E2D\u5FC3",key:"help_center",id:"help_center"},{name:"\u610F\u89C1\u53CD\u9988",key:"feedback",id:"feedback"}].filter(function(L){var t;return(m==null||((t=m.setting)===null||t===void 0)?void 0:t.is_local)?L.name!=="\u5173\u4E8E\u6211\u4EEC":!0}),I=p.match.params,te=function(){var L=Object(ne.a)(T().mark(function t(){var e,r,n,a;return T().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.t0=B,s.next=3,Object(q.a)("/api/helps/".concat((e=W.filter(function(g){return g.key===I.id}))===null||e===void 0||((r=e[0])===null||r===void 0)?void 0:r.id,".json"),{method:"get"});case 3:s.t1=s.sent,(0,s.t0)(s.t1),oe(!1),document.title=(n=W.filter(function(g){return g.key===I.id}))===null||n===void 0||((a=n[0])===null||a===void 0)?void 0:a.name;case 7:case"end":return s.stop()}},t)}));return function(){return L.apply(this,arguments)}}();return Object(V.useEffect)(function(){oe(!0),te()},[I.id]),i.a.createElement("section",null,i.a.createElement("aside",{className:"edu-container mt30"},i.a.createElement(x.a,{gutter:[20,20]},i.a.createElement(S.a,null,i.a.createElement(me.a,{className:Q.a.menu,style:{width:174},defaultSelectedKeys:[(E=W.filter(function(L){return L.key===I.id}))===null||E===void 0?void 0:E[0].key],mode:"inline"},W.map(function(L,t){return i.a.createElement(me.a.Item,{key:L.key},i.a.createElement(D.Link,{to:"/help/".concat(L.key)},L.name))}))),i.a.createElement(S.a,{flex:"1"},i.a.createElement("h1",{className:Q.a.title},(A=W.filter(function(L){return L.key===I.id}))===null||A===void 0?void 0:A[0].name),i.a.createElement("div",{className:"minH500"},I.id==="feedback"?i.a.createElement(y,null):i.a.createElement(re.a,{loading:R},i.a.createElement("div",{className:[Q.a.content,"bg-white pl30 pr30 pt30"].join(" ")},i.a.createElement(he.a,{value:F.content||""}),(C=F.contacts)===null||C===void 0?void 0:C.map(function(L,t){return i.a.createElement("ul",{key:t,className:Q.a.contcats},i.a.createElement("h1",null,L.type),i.a.createElement("li",null,L.name),i.a.createElement("li",null,i.a.createElement("span",null,"QQ:"),L.qq),i.a.createElement("li",null,i.a.createElement("span",null,"Email:"),L.mail))}),F.address&&i.a.createElement("ul",{className:Q.a.contcats},i.a.createElement("h1",null,"\u516C\u53F8\u5730\u5740"),i.a.createElement("li",null,F.address)),(w=F.data)===null||w===void 0?void 0:w.map(function(L,t){var e;return i.a.createElement("div",{className:Q.a.cooperatives},i.a.createElement("h1",null,L.name),i.a.createElement(x.a,{gutter:[10,20]},(e=L.values)===null||e===void 0?void 0:e.map(function(r,n){return i.a.createElement(S.a,{span:6},i.a.createElement("div",{className:Q.a.imgWrp},i.a.createElement("img",{src:Ee.a.IMG_SERVER+r.img})))})))}))))))))},X=M.default=Object(z.a)(function(c){var _=c.user,E=c.loading,A=c.globalSetting;return{user:_,globalSetting:A,loading:E.models.index}})(k)},WdTA:function(Y,M,o){Y.exports=o.p+"static/studnetqun.a5754d96.png"},zvqp:function(Y,M,o){Y.exports={flex_box_center:"flex_box_center___3si-j",flex_space_between:"flex_space_between___1JkB6",flex_box_vertical_center:"flex_box_vertical_center___298wI",flex_box_center_end:"flex_box_center_end___1kjbU",flex_box_column:"flex_box_column___2_dkP",content:"content___YUEGP",title:"title___1gIWf",menu:"menu___tZhO5",contcats:"contcats___3chvG",cooperatives:"cooperatives___U0UdA",imgWrp:"imgWrp___3N3oq"}}}]);
|