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