(this["webpackJsonpmr-julyedu"]=this["webpackJsonpmr-julyedu"]||[]).push([[15],{1149:function(e,a,n){"use strict";n.r(a);var r=n(4),o=n(5),t=n(6),l=n(7),i=(n(39),n(10)),c=n.n(i),s=n(3),p=(n(135),n(71)),u=n.n(p),d=(n(576),n(578)),f=n.n(d),m=(n(985),n(987)),v=n.n(m),h=n(0),q=n.n(h),b=n(16),g=n(24),y=n(1),j=Object(b.f)({mapPropsToValues:function(e){return Object(s.a)({},e.userInfo)},validate:function(e,a){return{}},handleSubmit:function(e,a){var n=e.real_name,r=e.cellphone,o=e.qq;if(n)if(0!=="".concat(n).replace(/\s+/g,"").length)if(r)if(/1\d{10}/g.test("".concat(r).replace(/\s+/g,"")))if(o)if(/\d{5,}/g.test(o)){var t=0;if(a.props.userInfo){var l=a.props.userInfo;l.real_name===n&&(t+=1),l.cellphone===r&&(t+=1),l.qq===o&&(t+=1)}var i="/order";a.props.userInfo.id&&(i=i+"?id="+a.props.userInfo.id),3!==t?y.f.post("".concat(API["base-api"],"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then((function(n){200===n.data.errno?(c.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),a.props.history.replace(i,Object(s.a)({},e))):c.a.info(n.data.msg,void 0,void 0,!1)})):a.props.history.replace(i,Object(s.a)({},e))}else c.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else c.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})((function(e){var a=e.values,n=e.setFieldValue,r=e.handleSubmit;return q.a.createElement("form",null,q.a.createElement(v.a,{clear:!0,name:"real_name",onChange:function(e){return n("real_name",e)},placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u771f\u5b9e\u59d3\u540d",value:a.real_name},"\u59d3\u540d"),q.a.createElement(v.a,{clear:!0,type:"phone",name:"cellphone",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684\u624b\u673a\u53f7\u7801",onChange:function(e){return n("cellphone",e)},value:a.cellphone},"\u7535\u8bdd"),q.a.createElement(v.a,{clear:!0,name:"qq",placeholder:"\u8bf7\u8f93\u5165\u60a8\u7684QQ\u53f7\u7801",maxLength:"15",onChange:function(e){return n("qq",e)},value:a.qq},"QQ"),q.a.createElement("div",{style:{marginTop:"21px"}},q.a.createElement(u.a,null,q.a.createElement(f.a,{type:"primary",onClick:r},"\u786e\u8ba4"))))})),E=function(e){Object(t.a)(n,e);var a=Object(l.a)(n);function n(e){return Object(r.a)(this,n),a.call(this,e)}return Object(o.a)(n,[{key:"render",value:function(){return q.a.createElement("div",null,q.a.createElement(g.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),q.a.createElement(j,{history:this.props.history,userInfo:this.props.location.state}))}}]),n}(h.Component);a.default=E}}]);
//# sourceMappingURL=Orderinfo.d7b5d857.chunk.js.map