(window.webpackJsonp=window.webpackJsonp||[]).push([[245,17],{jWAc:function(D,u,e){"use strict";e.r(u);var y=e("q1tI"),n=e.n(y),$=e("+L6B"),N=e("2/Rp"),B=e("5NDa"),p=e("5rEg"),P=e("WmNS"),U=e.n(P),b=e("9og8"),z=e("y8nQ"),o=e("Vl3Y"),R=e("tJVT"),x=e("jb+D"),M=e("4i/N"),C=e("Ty5D"),i=e("9kvl"),G=e("uFax"),d={height:48,borderRadius:4},F=function(m){var E=m.dispatch,c=o.a.useForm(),X=Object(R.a)(c,1),h=X[0],r=Object(C.l)(),V=Object(y.useState)(""),O=Object(R.a)(V,2),T=O[0],L=O[1],I=function(){var l=Object(b.a)(U.a.mark(function j(A){var a,f,g,v;return U.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(x.c)(A);case 2:if(a=t.sent,!a.status){t.next=6;break}return L(a==null?void 0:a.message),t.abrupt("return");case 6:console.log(i.c,"history"),r.pathname==="/user/login"||r.pathname==="/login"?(v=((f=r.query)===null||f===void 0?void 0:f.from)||((g=r.query)===null||g===void 0?void 0:g.back_url),v?window.location.href=decodeURIComponent(v):i.c.replace("/")):window.location.reload(),h.resetFields();case 9:case"end":return t.stop()}},j)}));return function(A){return l.apply(this,arguments)}}(),W=function(){E({type:"user/showPopLogin",payload:{showPopLogin:!1}})};return n.a.createElement(o.a,{layout:"vertical",form:h,initialValues:{autologin:!0},onFinish:I,onValuesChange:function(){return L("")}},!!T&&n.a.createElement("div",{className:"res-error-values"},n.a.createElement("span",null,T),n.a.createElement(M.a,{onClick:function(){return L("")}})),n.a.createElement(o.a.Item,{name:"name",label:"\u59D3\u540D",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u59D3\u540D"}]},n.a.createElement(p.a,{style:d,size:"large"})),n.a.createElement(o.a.Item,{name:"student_no",label:"\u5B66\u53F7",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5B66\u53F7"}]},n.a.createElement(p.a.Password,{style:d,size:"large",placeholder:"\u5B66\u53F7"})),n.a.createElement(o.a.Item,null,n.a.createElement(N.a,{size:"large",type:"primary",htmlType:"submit",block:!0,className:"font16",style:d},"\u5B8C\u6210")))},S=Object(i.a)(function(s){var m=s.user,E=s.loading,c=s.globalSetting;return{user:m,globalSetting:c,loading:E.models.index}})(F),J=u.default=function(){return n.a.createElement(S,null)}},uFax:function(D,u,e){}}]);
