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
20 KiB
1 line
20 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[31,12],{"0NIp":function(e,t,a){"use strict";a.r(t);a("+L6B");var n=a("2/Rp"),r=(a("5NDa"),a("5rEg")),o=a("CiB2"),i=(a("miYZ"),a("tsqr")),c=a("9og8"),l=(a("y8nQ"),a("Vl3Y")),s=a("tJVT"),u=a("PpiC"),d=a("q1tI"),m=a.n(d),f=a("9kvl"),p=a("bu1o"),h=a.n(p);function v(e,t){var a=Object(d["useRef"])(),n=Object(d["useRef"])();Object(d["useEffect"])((function(){a.current=e})),Object(d["useEffect"])((function(){function e(){a.current()}if(null!==t){var r=setInterval(e,t);return n.current=r,function(){return clearInterval(r)}}}),[t])}var y,g=a("1vsH");function b(){b=function(){return e};var e={},t=Object.prototype,a=t.hasOwnProperty,n=Object.defineProperty||function(e,t,a){e[t]=a.value},r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function l(e,t,a){return Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(L){l=function(e,t,a){return e[t]=a}}function s(e,t,a,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),c=new j(r||[]);return n(i,"_invoke",{value:_(e,a,c)}),i}function u(e,t,a){try{return{type:"normal",arg:e.call(t,a)}}catch(L){return{type:"throw",arg:L}}}e.wrap=s;var d={};function m(){}function f(){}function p(){}var h={};l(h,o,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(O([])));y&&y!==t&&a.call(y,o)&&(h=y);var g=p.prototype=m.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function r(n,o,i,c){var l=u(e[n],e,o);if("throw"!==l.type){var s=l.arg,d=s.value;return d&&"object"==typeof d&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,i,c)}),(function(e){r("throw",e,i,c)})):t.resolve(d).then((function(e){s.value=e,i(s)}),(function(e){return r("throw",e,i,c)}))}c(l.arg)}var o;n(this,"_invoke",{value:function(e,a){function n(){return new t((function(t,n){r(e,a,t,n)}))}return o=o?o.then(n,n):n()}})}function _(e,t,a){var n="suspendedStart";return function(r,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw o;return C()}for(a.method=r,a.arg=o;;){var i=a.delegate;if(i){var c=N(i,a);if(c){if(c===d)continue;return c}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===n)throw n="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);n="executing";var l=u(e,t,a);if("normal"===l.type){if(n=a.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:a.done}}"throw"===l.type&&(n="completed",a.method="throw",a.arg=l.arg)}}}function N(e,t){var a=t.method,n=e.iterator[a];if(void 0===n)return t.delegate=null,"throw"===a&&e.iterator.return&&(t.method="return",t.arg=void 0,N(e,t),"throw"===t.method)||"return"!==a&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+a+"' method")),d;var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,d;var o=r.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function O(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=p,n(g,"constructor",{value:p,configurable:!0}),n(p,"constructor",{value:f,configurable:!0}),f.displayName=l(p,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,c,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},w(E.prototype),l(E.prototype,i,(function(){return this})),e.AsyncIterator=E,e.async=function(t,a,n,r,o){void 0===o&&(o=Promise);var i=new E(s(t,a,n,r),o);return e.isGeneratorFunction(a)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(g),l(g,c,"Generator"),l(g,o,(function(){return this})),l(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),a=[];for(var n in t)a.push(n);return a.reverse(),function e(){for(;a.length;){var n=a.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=O,j.prototype={constructor:j,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(I),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(a,n){return i.type="throw",i.arg=e,t.next=a,n&&(t.method="next",t.arg=void 0),!!n}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),l=a.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.finallyLoc===e)return this.complete(a.completion,a.afterLoc),I(a),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var a=this.tryEntries[t];if(a.tryLoc===e){var n=a.completion;if("throw"===n.type){var r=n.arg;I(a)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,a){return this.delegate={iterator:O(e),resultName:t,nextLoc:a},"next"===this.method&&(this.arg=void 0),d}},e}(function(e){e[e["Phone"]=1]="Phone",e[e["Email"]=2]="Email",e[e["Password"]=3]="Password"})(y||(y={}));var w=/^1\d{10}$/,E=/^[a-zA-Z0-9]+([.\-_\\]*[a-zA-Z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/,_=function(e,t,a){t?t.length<8||t.length>16?a("\u8bf7\u8f93\u51658-16\u4f4d\u5b57\u7b26\u7684\u65b0\u5bc6\u7801\uff0c\u533a\u5206\u5927\u5c0f\u5199\uff01"):a():a("\u8bf7\u8f93\u51658-16\u4f4d\u5b57\u7b26\u7684\u65b0\u5bc6\u7801\uff0c\u533a\u5206\u5927\u5c0f\u5199\uff01")},N=function(e){var t,a,f,p,N,x,I,j,O,C,L,k,P,S,D,B=e.user,F=e.account,z=e.globalSetting,T=(e.loading,e.dispatch),W=(Object(u["a"])(e,["user","account","globalSetting","loading","dispatch"]),l["a"].useForm()),q=Object(s["a"])(W,1),G=q[0],V=Object(d["useState"])(),R=Object(s["a"])(V,2),A=R[0],Y=R[1],Z=Object(d["useState"])(60),J=Object(s["a"])(Z,2),Q=J[0],X=J[1],$=Object(d["useState"])(),H=Object(s["a"])($,2),K=H[0],M=H[1],U=Object(d["useRef"])();Object(d["useEffect"])((function(){return function(){U.current&&clearInterval(U.current)}}),[]),v((function(){K&&(Q>0?X(Q-1):(X(60),M(!1),U.current&&clearInterval(U.current)))}),1e3);var ee=function(){var e=Object(c["a"])(b().mark((function e(t){var a,n,r,o;return b().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t){e.next=8;break}if(n=3,a=G.getFieldValue("phone"),w.test(a)){e.next=6;break}return i["b"].info("\u8bf7\u5148\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\u7801"),e.abrupt("return");case 6:e.next=13;break;case 8:if(n=4,a=G.getFieldValue("email"),E.test(a)){e.next=13;break}return i["b"].info("\u8bf7\u5148\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740"),e.abrupt("return");case 13:return r=Object(g["F"])(a),e.next=16,T({type:"account/getCode",payload:{login:a,type:n,smscode:r}});case 16:o=e.sent,1===o.status&&i["b"].info("\u9a8c\u8bc1\u7801\u5df2\u53d1\u9001\uff0c\u8bf7\u6ce8\u610f\u67e5\u6536"),M(!0);case 19:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),te=function(){var e=Object(c["a"])(b().mark((function e(t){var a,n,r,o,c,l,s;return b().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t||{},n=a.phone,r=a.phoneValidateCode,o=B.userInfo||{},c=o.login,w.test(n)){e.next=5;break}return i["b"].info("\u8bf7\u8f93\u5165\u6709\u6548\u768411\u4f4d\u624b\u673a\u53f7\u7801"),e.abrupt("return");case 5:return e.next=7,T({type:"account/bindPhone",payload:{login:c,phone:n,code:r}});case 7:l=e.sent,0===(null===l||void 0===l?void 0:l.status)&&(i["b"].info("\u624b\u673a\u53f7\u7801\u7ed1\u5b9a\u6210\u529f!"),Y(null),T({type:"account/getBasicInfo",payload:{login:null===(s=B.userInfo)||void 0===s?void 0:s.login}}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ae=function(){var e=Object(c["a"])(b().mark((function e(t){var a,n,r,o,c,l,s;return b().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t||{},n=a.email,r=a.emailValidateCode,o=B.userInfo||{},c=o.login,E.test(n)){e.next=5;break}return i["b"].info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u90ae\u7bb1\u5730\u5740"),e.abrupt("return");case 5:return e.next=7,T({type:"account/bindEmail",payload:{login:c,email:n,code:r}});case 7:l=e.sent,0===(null===l||void 0===l?void 0:l.status)&&(i["b"].info("\u90ae\u7bb1\u5730\u5740\u7ed1\u5b9a\u6210\u529f!"),Y(null),T({type:"account/getBasicInfo",payload:{login:null===(s=B.userInfo)||void 0===s?void 0:s.login}}));case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ne=function(){var e=Object(c["a"])(b().mark((function e(t){var a,n,r,o,c,l,s,u,d;return b().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t||{},r=n.oldPassword,o=n.newPassword,c=n.againPassword,l=B.userInfo||{},s=l.login,!(null===(a=F.basicInfo)||void 0===a?void 0:a.has_password)||r!==o){e.next=5;break}return i["b"].info("\u65b0\u5bc6\u7801\u4e0d\u80fd\u4e0e\u65e7\u5bc6\u7801\u76f8\u540c\uff01"),e.abrupt("return");case 5:if(o===c){e.next=8;break}return i["b"].info("\u4e24\u6b21\u8f93\u5165\u7684\u65b0\u5bc6\u7801\u5fc5\u987b\u4e00\u81f4\uff01"),e.abrupt("return");case 8:return e.next=10,T({type:"account/updatePassword",payload:{login:s,old_password:r,password:o}});case 10:u=e.sent,u&&(Y(null),T({type:"account/getBasicInfo",payload:{login:null===(d=B.userInfo)||void 0===d?void 0:d.login}}));case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),re=function(e){var t=e||{};Object(o["a"])(t),console.log("handleFinish values: ",e),A===y.Phone&&te(e),A===y.Email&&ae(e),A===y.Password&&ne(e)};return m.a.createElement("section",{className:h.a.wrap},m.a.createElement("div",null,m.a.createElement("div",{className:h.a.content},m.a.createElement("div",{className:"".concat(h.a.titleWrap," mt10")},m.a.createElement("div",{className:h.a.title},"\u5b89\u5168\u8bbe\u7f6e")),m.a.createElement(l["a"],{form:G,className:h.a.formWrap,labelCol:{span:6},wrapperCol:{span:10},onFinish:re},m.a.createElement("div",{className:"".concat(h.a.row," ").concat(A===y.Phone?"":h.a.rowBorder)},m.a.createElement("span",{className:"".concat(h.a.name," ").concat(h.a.color999)},"\u624b\u673a"),m.a.createElement("div",{className:"".concat(h.a.description," ").concat(h.a.colorCDCDCD)},(null===(t=F.basicInfo)||void 0===t?void 0:t.phone)?m.a.createElement("span",{className:"".concat(h.a.status," mr20")},null===(a=F.basicInfo)||void 0===a?void 0:a.phone):m.a.createElement("span",{className:"".concat(h.a.status," ").concat(h.a.colorRed," mr20")},"\u672a\u7ed1\u5b9a"),(null===(f=F.basicInfo)||void 0===f?void 0:f.phone)?"\u4ec5\u81ea\u5df1\u53ef\u89c1\uff0c\u53ef\u7528\u624b\u673a\u53f7\u7801\u767b\u5f55EduCoder":"\u7ed1\u5b9a\u624b\u673a\u53f7\u7801\uff0c\u5c06\u83b7\u5f97500\u91d1\u5e01\u7684\u5956\u52b1\u54df\uff5e\uff0c\u624b\u673a\u53f7\u7801\u4ec5\u81ea\u5df1\u53ef\u89c1~"),A!==y.Phone&&m.a.createElement("span",{className:h.a.active,onClick:function(){return Y(y.Phone)}},(null===(p=F.basicInfo)||void 0===p?void 0:p.phone)?"\u66f4\u6362":"\u7acb\u5373\u7ed1\u5b9a")),A===y.Phone&&m.a.createElement(m.a.Fragment,null,m.a.createElement(l["a"].Item,{label:"\u4f60\u7684\u624b\u673a\u53f7",name:"phone",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u8981".concat((null===(N=F.basicInfo)||void 0===N?void 0:N.phone)?"\u66f4\u6362":"\u7ed1\u5b9a","\u7684\u624b\u673a\u53f7\u7801")},{validator:function(e,t,a){w.test(t)&&a(),a("\u8bf7\u8f93\u5165\u6709\u6548\u768411\u4f4d\u624b\u673a\u53f7\u7801")}}]},m.a.createElement(r["a"],{placeholder:"\u8bf7\u8f93\u5165\u8981".concat((null===(x=F.basicInfo)||void 0===x?void 0:x.phone)?"\u66f4\u6362":"\u7ed1\u5b9a","\u7684\u624b\u673a\u53f7\u7801")})),!(null===z||void 0===z||null===(I=z.setting)||void 0===I?void 0:I.is_local)&&m.a.createElement(l["a"].Item,{label:"\u624b\u673a\u9a8c\u8bc1\u7801"},m.a.createElement(l["a"].Item,{name:"phoneValidateCode",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u624b\u673a\u83b7\u53d6\u7684\u9a8c\u8bc1\u7801"}],noStyle:!0},m.a.createElement(r["a"],{placeholder:"\u8bf7\u8f93\u5165\u624b\u673a\u83b7\u53d6\u7684\u9a8c\u8bc1\u7801"})),m.a.createElement(n["a"],{type:"primary",className:"ml5",disabled:K,onClick:function(){return ee(!0)}},K?"\u91cd\u65b0\u53d1\u9001".concat(Q,"s"):"\u83b7\u53d6\u9a8c\u8bc1\u7801")),m.a.createElement(l["a"].Item,{noStyle:!0},m.a.createElement("div",{className:h.a.buttonWrap},m.a.createElement(n["a"],{className:"".concat(h.a.submitButton),size:"large",type:"primary",htmlType:"submit"},"\u786e\u5b9a"),m.a.createElement(n["a"],{className:h.a.submitButton,size:"large",onClick:function(){return Y(null)}},"\u53d6\u6d88")))),m.a.createElement("div",{className:"".concat(h.a.row," ").concat(A===y.Email?"":h.a.rowBorder)},m.a.createElement("span",{className:"".concat(h.a.name," ").concat(h.a.color999)},"\u90ae\u7bb1"),m.a.createElement("div",{className:"".concat(h.a.description," ").concat(h.a.colorCDCDCD)},(null===(j=F.basicInfo)||void 0===j?void 0:j.mail)?m.a.createElement("span",{className:"".concat(h.a.status," mr20")},null===(O=F.basicInfo)||void 0===O?void 0:O.mail):m.a.createElement("span",{className:"".concat(h.a.status," ").concat(h.a.colorRed," mr20")},"\u672a\u7ed1\u5b9a"),"\u90ae\u7bb1\u8d26\u53f7\u4ec5\u81ea\u5df1\u53ef\u89c1\uff0c\u53ef\u7528\u4e8e\u90ae\u7bb1\u8d26\u53f7\u767b\u5f55",!(null===z||void 0===z||null===(C=z.setting)||void 0===C?void 0:C.is_local)&&"EduCoder"),A!==y.Email&&m.a.createElement("span",{className:h.a.active,onClick:function(){return Y(y.Email)}},(null===(L=F.basicInfo)||void 0===L?void 0:L.mail)?"\u66f4\u6362":"\u7acb\u5373\u7ed1\u5b9a")),A===y.Email&&m.a.createElement(m.a.Fragment,null,m.a.createElement(l["a"].Item,{label:"\u90ae\u7bb1\u5730\u5740",name:"email",rules:[{required:!0,message:(null===(k=F.basicInfo)||void 0===k?void 0:k.mail)?"\u8bf7\u8f93\u5165\u8981\u66f4\u6362\u7684\u65b0\u90ae\u7bb1\u5730\u5740":"\u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740"}]},m.a.createElement(r["a"],{placeholder:(null===(P=F.basicInfo)||void 0===P?void 0:P.mail)?"\u8bf7\u8f93\u5165\u8981\u66f4\u6362\u7684\u65b0\u90ae\u7bb1\u5730\u5740":"\u8bf7\u8f93\u5165\u90ae\u7bb1\u5730\u5740"})),!(null===z||void 0===z||null===(S=z.setting)||void 0===S?void 0:S.is_local)&&m.a.createElement(l["a"].Item,{label:"\u90ae\u7bb1\u9a8c\u8bc1\u7801"},m.a.createElement(l["a"].Item,{name:"emailValidateCode",rules:[{required:!0,message:"\u8bf7\u8f93\u5165\u90ae\u7bb1\u6536\u5230\u7684\u9a8c\u8bc1\u7801"}],noStyle:!0},m.a.createElement(r["a"],{placeholder:"\u8bf7\u8f93\u5165\u90ae\u7bb1\u6536\u5230\u7684\u9a8c\u8bc1\u7801"})),m.a.createElement(n["a"],{type:"primary",className:"ml5",disabled:K,onClick:function(){return ee(!1)}},K?"\u91cd\u65b0\u53d1\u9001".concat(Q,"s"):"\u83b7\u53d6\u9a8c\u8bc1\u7801")),m.a.createElement(l["a"].Item,{noStyle:!0},m.a.createElement("div",{className:h.a.buttonWrap},m.a.createElement(n["a"],{className:"".concat(h.a.submitButton),size:"large",type:"primary",htmlType:"submit"},"\u786e\u5b9a"),m.a.createElement(n["a"],{className:h.a.submitButton,size:"large",onClick:function(){return Y(null)}},"\u53d6\u6d88")))),m.a.createElement("div",{className:h.a.row},m.a.createElement("span",{className:"".concat(h.a.name," ").concat(h.a.color999)},"\u5bc6\u7801"),m.a.createElement("div",{className:"".concat(h.a.description," ").concat(h.a.colorCDCDCD)},m.a.createElement("span",{className:"".concat(h.a.status," mr20")},"**********"),"\u7528\u4e8e\u4fdd\u62a4\u8d26\u6237\u4fe1\u606f\u548c\u767b\u5f55\u5b89\u5168"),A!==y.Password&&m.a.createElement("span",{className:h.a.active,onClick:function(){return Y(y.Password)}},"\u4fee\u6539")),A===y.Password&&m.a.createElement(m.a.Fragment,null,(null===(D=F.basicInfo)||void 0===D?void 0:D.has_password)&&m.a.createElement(l["a"].Item,{label:"\u65e7\u5bc6\u7801",name:"oldPassword",rules:[{required:!0,message:"\u8bf7\u8bbe\u7f6e8\uff5e16\u4f4d\u5bc6\u7801\uff0c\u533a\u5206\u5927\u5c0f\u5199"}]},m.a.createElement(r["a"],{type:"password",placeholder:"\u8bf7\u8bbe\u7f6e8\uff5e16\u4f4d\u5bc6\u7801\uff0c\u533a\u5206\u5927\u5c0f\u5199"})),m.a.createElement(l["a"].Item,{label:"\u65b0\u5bc6\u7801",name:"newPassword",rules:[{required:!0,message:"\u8bf7\u8bbe\u7f6e8\uff5e16\u4f4d\u5bc6\u7801\uff0c\u533a\u5206\u5927\u5c0f\u5199"},{validator:_}]},m.a.createElement(r["a"],{type:"password",placeholder:"\u8bf7\u8f93\u51658\uff5e16\u4f4d\u7684\u65b0\u5bc6\u7801\uff0c\u533a\u5206\u5927\u5c0f\u5199"})),m.a.createElement(l["a"].Item,{label:"\u518d\u6b21\u8f93\u5165",name:"againPassword",rules:[{required:!0,message:"\u8bf7\u518d\u6b21\u8f93\u5165\u65b0\u5bc6\u7801"},{validator:function(e,t,a){t!=G.getFieldsValue().newPassword?a("\u4e24\u6b21\u8f93\u5165\u7684\u65b0\u5bc6\u7801\u5fc5\u987b\u4e00\u81f4\uff01"):a()}}]},m.a.createElement(r["a"],{type:"password",placeholder:"\u8bf7\u518d\u6b21\u8f93\u5165\u65b0\u5bc6\u7801"})),m.a.createElement(l["a"].Item,{noStyle:!0},m.a.createElement("div",{className:h.a.buttonWrap},m.a.createElement(n["a"],{className:"".concat(h.a.submitButton),size:"large",type:"primary",htmlType:"submit"},"\u786e\u5b9a"),m.a.createElement(n["a"],{className:h.a.submitButton,size:"large",onClick:function(){return Y(null)}},"\u53d6\u6d88")))))),m.a.createElement("div",{className:"".concat(h.a.hint," font14")},"* \u6211\u4eec\u786e\u4fdd\u4f60\u6240\u63d0\u4f9b\u7684\u4fe1\u606f\u5747\u5904\u4e8e\u4e25\u683c\u4fdd\u5bc6\u72b6\u6001\uff0c\u4e0d\u4f1a\u6cc4\u9732")))};t["default"]=Object(f["a"])((function(e){var t=e.user,a=e.account,n=e.loading,r=e.globalSetting;return{user:t,account:a,globalSetting:r,loading:n.models.index}}))(N)},bu1o:function(e,t,a){e.exports={wrap:"wrap___L0XY0",content:"content___1FZI4",hint:"hint___2Mhin",titleWrap:"titleWrap___3-5ea",title:"title___3dpg1",formWrap:"formWrap___1-_oA",row:"row___10m9D",rowBorder:"rowBorder___1KLaz",name:"name___3A1ha",status:"status___jLEgn",description:"description___GYT0j",active:"active___UNwEo",color999:"color999___1O3Pw",colorCDCDCD:"colorCDCDCD___Xw3Dl",colorRed:"colorRed___Tupja",submitButton:"submitButton___1_t-q",buttonWrap:"buttonWrap___Q18CA"}}}]); |