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.
1 line
33 KiB
1 line
33 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[130,11,14],{"1ZF9":function(t,e,r){t.exports=r.p+"static/Authorize.cc9c212f.png"},"2kAv":function(t,e,r){t.exports={wrap:"wrap___CCio_",link:"link___PWIh8"}},NLgs:function(t,e,r){"use strict";r.d(e,"e",(function(){return m})),r.d(e,"f",(function(){return y})),r.d(e,"d",(function(){return w})),r.d(e,"c",(function(){return b})),r.d(e,"a",(function(){return E})),r.d(e,"b",(function(){return x}));r("miYZ");var n=r("tsqr"),o=r("9og8"),a=(r("2qtc"),r("kLXV")),i=r("q1tI"),c=r.n(i),l=r("9kvl"),u=r("xKgJ"),s=r("1vsH"),f=r("RCxd"),h=r("mOS8"),p=r.n(h),d=r("m3rI");function v(){v=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof g?e:g,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:j(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",m="completed",y={};function g(){}function w(){}function b(){}var E={};u(E,i,(function(){return this}));var x=Object.getPrototypeOf,_=x&&x(x(G([])));_&&_!==r&&n.call(_,i)&&(E=_);var L=b.prototype=g.prototype=Object.create(E);function k(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function j(e,r,n){var o=h;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===m){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=N(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function N(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,N(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,y;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function S(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(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function G(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return w.prototype=b,o(L,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:w,configurable:!0}),w.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},k(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new O(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},k(L),u(L,l,"Generator"),u(L,i,(function(){return this})),u(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=G,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,y):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:G(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}var m=function(t){return!(!y(t)||!g())},y=function(t){return!!Object(u["p"])()||(t({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},g=function(){var t,e=Object(l["b"])()._store.getState(),r=e.user;return!!(null===(t=r.userInfo)||void 0===t?void 0:t.profile_completed)||(a["a"].confirm({title:"\u63d0\u793a",width:530,centered:!0,content:c.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(){l["c"].push("/account/profile/edit")}}),!1)},w=function(){var t,e=Object(l["b"])()._store.getState(),r=e.user;return!!(null===(t=r.userInfo)||void 0===t?void 0:t.professional_certification)||(a["a"].confirm({title:"\u63d0\u793a",centered:!0,content:c.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(s["L"])("/account/certification")}}),!1)},b=function(){return!!Object(u["a"])()||(a["a"].confirm({centered:!0,width:530,title:"\u63d0\u793a",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.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"),c.a.createElement("img",{src:Object(u["t"])()?r("WdTA"):"".concat(d["a"].IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200}),c.a.createElement("div",{className:"tc"},"\u7fa4\u53f7\uff1a",Object(u["t"])()?"693542422":"612934990")),okText:"\u7acb\u5373\u8054\u7cfb",cancelText:"\u53d6\u6d88",onOk:function(){Object(s["L"])("//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd")}}),!1)},E=function(t,e){return!!t||(a["a"].confirm({centered:!0,zIndex:1e4,width:530,title:"\u63d0\u793a",content:c.a.createElement("div",null,c.a.createElement("p",null,e||"\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"),c.a.createElement("div",{style:{marginLeft:"110px"}},c.a.createElement("img",{src:r("1ZF9"),width:200}),c.a.createElement("div",{style:{marginLeft:"35px"}},"\u7fa4\u53f7\uff1a","714336072"))),okText:"\u7acb\u5373\u8054\u7cfb",cancelText:"\u53d6\u6d88",onOk:function(){Object(s["L"])("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=Object(l["b"])()._store.getState(),i=r.shixunsDetail.detail;return 2===(null===i||void 0===i?void 0:i.public)||1===(null===i||void 0===i?void 0:i.public)||3===(null===i||void 0===i?void 0:i.shixun_status)?(a["a"].info({centered:!0,icon:c.a.createElement(f["a"],{style:{color:"#faad14"}}),width:460,title:"\u63d0\u793a",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},c.a.createElement("span",null,"\u8be5\u5b9e\u8df5\u9879\u76ee\u7684\u72b6\u6001\u4e3a",2===(null===i||void 0===i?void 0:i.public)?"\u5df2\u516c\u5f00":1===(null===i||void 0===i?void 0:i.public)?"\u5f85\u5ba1\u6838":"\u5df2\u5173\u95ed","\uff0c",e,"\u3002"),c.a.createElement("p",null,"\u5982\u6709\u9700\u8981\uff0c\u8bf7\u8054\u7cfb\u5e73\u53f0\u7ba1\u7406\u5458\u8fdb\u884c\u6280\u672f\u652f\u6301\u3002")),c.a.createElement("img",{style:{border:"4px solid #1890FF",borderRadius:"4px"},src:p.a,alt:"\u4e8c\u7ef4\u7801",width:160})),okText:"\u6211\u77e5\u9053\u4e86"}),!0):2===(null===i||void 0===i?void 0:i.shixun_status)&&(a["a"].confirm({centered:!0,icon:c.a.createElement(f["a"],null),title:"\u63d0\u793a",content:c.a.createElement("div",null,c.a.createElement("span",null,"\u8be5\u5b9e\u8df5\u9879\u76ee\u5df2\u53d1\u5e03\uff0c",e,"\u3002"),c.a.createElement("br",null),c.a.createElement("span",null,"\u5982\u6709\u9700\u8981\uff0c\u60a8\u53ef\u4ee5\u64a4\u9500\u53d1\u5e03\u540e\uff0c\u518d\u8fdb\u884c\u64cd\u4f5c\u3002")),okText:"\u64a4\u9500\u53d1\u5e03",cancelText:"\u53d6\u6d88",onOk:function(){a["a"].confirm({width:440,centered:!0,icon:c.a.createElement(f["a"],{style:{color:"#faad14"}}),title:"\u63d0\u793a",content:"\u64a4\u9500\u53d1\u5e03\u540e\uff0c\u5b66\u5458\u5c06\u65e0\u6cd5\u8fdb\u884c\u7ec3\u4e60\u3002\u662f\u5426\u786e\u8ba4\u64a4\u9500\u53d1\u5e03\uff1f",okText:"\u786e\u5b9a\u64a4\u9500\u53d1\u5e03",cancelText:"\u53d6\u6d88",onOk:function(){var e=Object(o["a"])(v().mark((function e(){var r;return v().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t({type:"shixunsDetail/cancelRelease",payload:{id:null===i||void 0===i?void 0:i.identifier}});case 2:r=e.sent,401!==r.status&&(n["b"].success("\u64a4\u9500\u53d1\u5e03\u6210\u529f\u3002\u5b9e\u8bad\u56de\u5230\u672a\u53d1\u5e03\u7684\u72b6\u6001\u3002"),t({type:"shixunsDetail/getShixunsDetail",payload:{id:null===i||void 0===i?void 0:i.identifier}}),t({type:"practiceSetting/getCommonData",payload:{id:null===i||void 0===i?void 0:i.identifier}}));case 4:case"end":return e.stop()}}),e)})));function r(){return e.apply(this,arguments)}return r}()})}}),!0)}},TNY5:function(t,e,r){"use strict";r.r(e);r("cWXX");var n=r("/ezw"),o=(r("14J3"),r("BMrR")),a=(r("jCWc"),r("kPKH")),i=(r("lUTK"),r("BvKs")),c=r("9og8"),l=(r("y8nQ"),r("Vl3Y")),u=r("tJVT"),s=r("PpiC"),f=r("q1tI"),h=r.n(f),p=r("55Ip"),d=r("9kvl"),v=r("ErOA"),m=r("9Bee"),y=r("m3rI"),g=r("zvqp"),w=r.n(g),b=(r("+L6B"),r("2/Rp")),E=(r("7Kak"),r("9yH6")),x=r("k1fw"),_=(r("5NDa"),r("5rEg")),L=r("NLgs"),k=r("2kAv"),O=r.n(k),j=r("1vsH");function N(){N=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),c=new I(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function y(){}function g(){}function w(){}var b={};u(b,i,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(G([])));x&&x!==r&&n.call(x,i)&&(b=x);var _=w.prototype=y.prototype=Object.create(b);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function O(e,r,n){var o=h;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=j(c,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?v:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function S(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(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function G(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=w,o(_,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:g,configurable:!0}),g.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(_),u(_,l,"Generator"),u(_,i,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=G,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),T(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:G(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var S=_["a"].TextArea,T=function(t){var e=t.user,r=(t.globalSetting,t.loading,t.dispatch),n=(Object(s["a"])(t,["user","globalSetting","loading","dispatch"]),l["a"].useForm()),o=Object(u["a"])(n,1),a=o[0];Object(f["useEffect"])((function(){var t;Object(j["I"])(null===(t=e.userInfo)||void 0===t?void 0:t.login)||Object(L["f"])(r)}),[e.userInfo.login]);var i=function(){var t=Object(c["a"])(N().mark((function t(r){var n,o;return N().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(v["a"])("/api/helps/feedback.json",{method:"post",body:Object(x["a"])({},r)});case 2:n=t.sent,0===(null===n||void 0===n?void 0:n.status)&&d["c"].push("/messages/".concat(null===(o=e.userInfo)||void 0===o?void 0:o.login,"/message_detail?target_ids=1"));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return h.a.createElement("section",{className:"".concat(O.a.wrap," bg-white pl30 pr30 pt30")},h.a.createElement("div",{className:"c-grey-999 line26"},"\u60f3\u5bf9\u6211\u4eec\u7684\u5e73\u53f0\u63d0\u4f9b\u529f\u80fd\u5efa\u8bae\uff1f",h.a.createElement("br",null),"\u53d1\u73b0\u7f51\u9875\u4e2d\u7684\u95ee\u9898\u6216bug\u60f3\u544a\u8bc9\u6211\u4eec\uff1f",h.a.createElement("br",null),"\u671f\u671b\u4e0e\u6211\u4eec\u5c55\u5f00\u5408\u4f5c\uff1f",h.a.createElement("br",null),"\u5728\u8fd9\u91cc\u628a\u4f60\u60f3\u8bf4\u7684\u4e00\u5207\u544a\u8bc9\u6211\u4eec\u5427\uff1f"),h.a.createElement("div",{className:"c-red-ee4 mt20 mb20"},"* ",h.a.createElement(p["Link"],{to:"/help/help_center",className:"".concat(O.a.link," c-red-ee4")},"\u770b\u770b\u5e2e\u52a9\u4e2d\u5fc3\u662f\u5426\u6709\u4f60\u60f3\u8981\u7684\u7b54\u6848")),h.a.createElement(l["a"],{layout:"vertical",form:a,onFinish:i,initialValues:{question_kind:"\u767b\u5f55\u6ce8\u518c"}},h.a.createElement(l["a"].Item,{label:"\u95ee\u9898\u5206\u7c7b\uff1a",name:"question_kind",rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}]},h.a.createElement(E["a"].Group,null,h.a.createElement(E["a"],{value:"\u767b\u5f55\u6ce8\u518c"},"\u767b\u5f55\u6ce8\u518c"),h.a.createElement(E["a"],{value:"\u4fe1\u606f\u8ba4\u8bc1"},"\u4fe1\u606f\u8ba4\u8bc1"),h.a.createElement(E["a"],{value:"\u5b9e\u8bad\u7f16\u7a0b"},"\u5b9e\u8bad\u7f16\u7a0b"),h.a.createElement(E["a"],{value:"\u5b9e\u8bad\u8bfe\u7a0b"},"\u5b9e\u8bad\u8bfe\u7a0b"),h.a.createElement(E["a"],{value:"\u8bfe\u5802"},"\u8bfe\u5802"),h.a.createElement(E["a"],{value:"\u5176\u5b83"},"\u5176\u5b83"))),h.a.createElement(l["a"].Item,{label:"\u95ee\u9898\u9875\u9762\u7f51\u5740\uff1a",name:"url",rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}]},h.a.createElement(_["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"})),h.a.createElement(l["a"].Item,{label:"\u95ee\u9898\u63cf\u8ff0\uff1a",name:"description",rules:[{required:!0,message:"\u4e0d\u80fd\u4e3a\u7a7a"}]},h.a.createElement(S,{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"})),h.a.createElement(l["a"].Item,null,h.a.createElement(b["a"],{type:"primary",htmlType:"submit"},"\u63d0\u4ea4"))))},I=Object(d["a"])((function(t){var e=t.user,r=t.loading,n=t.globalSetting;return{user:e,globalSetting:n,loading:r.models.index}}))(T);function G(){G=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},a="function"==typeof Symbol?Symbol:{},i=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var a=e&&e.prototype instanceof y?e:y,i=Object.create(a.prototype),c=new T(n||[]);return o(i,"_invoke",{value:O(t,r,c)}),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function y(){}function g(){}function w(){}var b={};u(b,i,(function(){return this}));var E=Object.getPrototypeOf,x=E&&E(E(I([])));x&&x!==r&&n.call(x,i)&&(b=x);var _=w.prototype=y.prototype=Object.create(b);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function r(o,a,i,c){var l=f(t[o],t,a);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==typeof s&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,i,c)}),(function(t){r("throw",t,i,c)})):e.resolve(s).then((function(t){u.value=t,i(u)}),(function(t){return r("throw",t,i,c)}))}c(l.arg)}var a;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return a=a?a.then(o,o):o()}})}function O(e,r,n){var o=h;return function(a,i){if(o===d)throw new Error("Generator is already running");if(o===v){if("throw"===a)throw i;return{value:t,done:!0}}for(n.method=a,n.arg=i;;){var c=n.delegate;if(c){var l=j(c,n);if(l){if(l===m)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?v:p,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function j(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,j(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(o,e.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,m;var i=a.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function N(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(typeof e+" is not iterable")}return g.prototype=w,o(_,"constructor",{value:w,configurable:!0}),o(w,"constructor",{value:g,configurable:!0}),g.displayName=u(w,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,w):(t.__proto__=w,u(t,l,"GeneratorFunction")),t.prototype=Object.create(_),t},e.awrap=function(t){return{__await:t}},L(k.prototype),u(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,a){void 0===a&&(a=Promise);var i=new k(s(t,r,n,o),a);return e.isGeneratorFunction(r)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},L(_),u(_,l,"Generator"),u(_,i,(function(){return this})),u(_,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=I,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var i=this.tryEntries[a],c=i.completion;if("root"===i.tryLoc)return o("end");if(i.tryLoc<=this.prev){var l=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(l&&u){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),S(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}var P=function(t){t.user;var e,r,d,g,b=t.globalSetting,E=(t.loading,t.dispatch,Object(s["a"])(t,["user","globalSetting","loading","dispatch"])),x=Object(f["useState"])({content:"",message:"",status:0,contacts:[],address:"",data:[]}),_=Object(u["a"])(x,2),L=_[0],k=_[1],O=Object(f["useState"])(!0),j=Object(u["a"])(O,2),N=j[0],S=j[1],T=l["a"].useForm(),P=Object(u["a"])(T,1),q=(P[0],[{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(t){var e;return!(null===b||void 0===b||null===(e=b.setting)||void 0===e?void 0:e.is_local)||"\u5173\u4e8e\u6211\u4eec"!==t.name}))),F=E.match.params,A=function(){var t=Object(c["a"])(G().mark((function t(){var e,r,n,o;return G().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.t0=k,t.next=3,Object(v["a"])("/api/helps/".concat(null===(e=q.filter((function(t){return t.key===F["id"]})))||void 0===e||null===(r=e[0])||void 0===r?void 0:r["id"],".json"),{method:"get"});case 3:t.t1=t.sent,(0,t.t0)(t.t1),S(!1),document.title=null===(n=q.filter((function(t){return t.key===F.id})))||void 0===n||null===(o=n[0])||void 0===o?void 0:o["name"];case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();return Object(f["useEffect"])((function(){S(!0),A()}),[F.id]),h.a.createElement("section",null,h.a.createElement("aside",{className:"edu-container mt30"},h.a.createElement(o["a"],{gutter:[20,20]},h.a.createElement(a["a"],null,h.a.createElement(i["a"],{className:w.a.menu,style:{width:174},defaultSelectedKeys:[null===(e=q.filter((function(t){return t.key===F.id})))||void 0===e?void 0:e[0]["key"]],mode:"inline"},q.map((function(t,e){return h.a.createElement(i["a"].Item,{key:t.key},h.a.createElement(p["Link"],{to:"/help/".concat(t.key)},t.name))})))),h.a.createElement(a["a"],{flex:"1"},h.a.createElement("h1",{className:w.a.title},null===(r=q.filter((function(t){return t.key===F.id})))||void 0===r?void 0:r[0]["name"]),h.a.createElement("div",{className:"minH500"},"feedback"===F.id?h.a.createElement(I,null):h.a.createElement(n["a"],{loading:N},h.a.createElement("div",{className:[w.a.content,"bg-white pl30 pr30 pt30"].join(" ")},h.a.createElement(m["a"],{value:L.content||""}),null===(d=L.contacts)||void 0===d?void 0:d.map((function(t,e){return h.a.createElement("ul",{key:e,className:w.a.contcats},h.a.createElement("h1",null,t.type),h.a.createElement("li",null,t.name),h.a.createElement("li",null,h.a.createElement("span",null,"QQ:"),t.qq),h.a.createElement("li",null,h.a.createElement("span",null,"Email:"),t.mail))})),L.address&&h.a.createElement("ul",{className:w.a.contcats},h.a.createElement("h1",null,"\u516c\u53f8\u5730\u5740"),h.a.createElement("li",null,L.address)),null===(g=L.data)||void 0===g?void 0:g.map((function(t,e){var r;return h.a.createElement("div",{className:w.a.cooperatives},h.a.createElement("h1",null,t.name),h.a.createElement(o["a"],{gutter:[10,20]},null===(r=t.values)||void 0===r?void 0:r.map((function(t,e){return h.a.createElement(a["a"],{span:6},h.a.createElement("div",{className:w.a.imgWrp},h.a.createElement("img",{src:y["a"].IMG_SERVER+t.img})))}))))})))))))))};e["default"]=Object(d["a"])((function(t){var e=t.user,r=t.loading,n=t.globalSetting;return{user:e,globalSetting:n,loading:r.models.index}}))(P)},WdTA:function(t,e,r){t.exports=r.p+"static/studnetqun.a5754d96.png"},mOS8:function(t,e,r){t.exports=r.p+"static/403Qrcode.6c17b6f4.png"},zvqp:function(t,e,r){t.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"}}}]); |