(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{782:function(e,a,n){"use strict";n.r(a);var t=n(7),o=n(8),r=n(10),l=n(9),i=n(11),c=(n(43),n(14)),s=n.n(c),p=n(24),u=(n(152),n(74)),d=n.n(u),f=(n(753),n(756)),h=n.n(f),m=(n(757),n(760)),v=n.n(m),q=n(0),g=n.n(q),b=n(20),E=n(37),y=n(3),Q=Object(b.d)({mapPropsToValues:function(e){return Object(p.a)({},e.userInfo)},validate:function(e,a){return{}},handleSubmit:function(e,a){var n=e.real_name,t=e.cellphone,o=e.qq;if(n)if(0!=="".concat(n).replace(/\s+/g,"").length)if(t)if(/1\d{10}/g.test("".concat(t).replace(/\s+/g,"")))if(o)if(/\d{5,}/g.test(o)){var r=!1;if(a.props.userInfo){var l=a.props.userInfo;l.real_name===n&&(r=!0),l.cellphone===t&&(r=!0),l.qq===o&&(r=!0)}r?a.props.history.replace({pathname:"/order",state:e}):y.d.post("".concat(y.a.home,"/m/order/saveUserInfo"),{real_name:e.real_name,cellphone:"".concat(e.cellphone).replace(/\s+/g,""),qq:e.qq}).then(function(n){200===n.data.code?(s.a.info("\u4fdd\u5b58\u6210\u529f\uff01",void 0,void 0,!1),a.props.history.replace({pathname:"/order",state:e})):s.a.info(n.data.msg,void 0,void 0,!1)})}else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786eQQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165QQ\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u624b\u673a\u53f7\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1);else s.a.info("\u8bf7\u8f93\u5165\u59d3\u540d\uff01",void 0,void 0,!1)}})(function(e){var a=e.values,n=(e.errors,e.touched,e.setFieldValue),t=(e.handleBlur,e.handleSubmit);e.isSubmitting;return g.a.createElement("form",null,g.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"),g.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"),g.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"),g.a.createElement("div",{style:{marginTop:"21px"}},g.a.createElement(d.a,null,g.a.createElement(h.a,{type:"primary",onClick:t},"\u786e\u8ba4"))))}),j=function(e){function a(e){return Object(t.a)(this,a),Object(r.a)(this,Object(l.a)(a).call(this,e))}return Object(i.a)(a,e),Object(o.a)(a,[{key:"render",value:function(){return g.a.createElement("div",null,g.a.createElement(E.e,{title:"\u62a5\u540d\u4fe1\u606f",arrow:!0}),g.a.createElement(Q,{history:this.props.history,userInfo:this.props.location.state}))}}]),a}(q.Component);a.default=j}}]);
//# sourceMappingURL=Orderinfo.42d2809e.chunk.js.map