(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/bsinessadmin/register"],{"1e07":function(t,e,n){},"23ca":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{checked:0,gou:!1,form:{account:"",acountname:"",password:"",surepwd:"",mobile:""}}},onLoad:function(t){if(t.checked&&(this.checked=t.checked),t.form){var e=JSON.parse(t.form);this.form=Object.assign(this.form,e),this.checked=e.checked}},methods:{checkboxChange:function(t){t.length>0?this.gou=!0:this.gou=!1},submiitForm:function(){var e=this;if(this.gou){var n=this.form;if(1==this.checked){if(0==this.form.name.length)return void this.$toast("请输入您的账号");if(0==this.form.name.password)return void this.$toast("请输入至少6位数的字母数字组合的密码");if(this.form.password!=this.form.surepwd)return void this.$toast("两次密码输入不一样")}else if(0==this.checked){if(0==this.form.realName.length)return void this.$toast("请输业务员真实姓名");if(0==this.form.account.length)return void this.$toast("请输入您的账号");if(0==this.form.mobile.length)return void this.$toast("请输入业务员联系电话");if(this.form.password!=this.form.surepwd)return void this.$toast("两次密码输入不一样")}this.$load("加载中"),0==this.checked?t.$u.http.post("/api/Account/register",n,{custom:{auth:!0}}).then((function(n){t.hideLoading(),e.$toast("注册成功"),setTimeout((function(){t.navigateTo({url:"/pages/login/login"})}),1e3)})).catch((function(n){t.hideLoading(),e.$toast(n.msg)})):1==this.checked&&t.$u.http.post("/api/Supplier/register",n,{custom:{auth:!0}}).then((function(n){t.hideLoading(),e.$toast("注册成功"),setTimeout((function(){t.navigateTo({url:"/pages/login/login"})}),1e3)})).catch((function(n){t.hideLoading(),e.$toast(n.msg)}))}else this.$toast("清先阅读用户协议和隐私协议")},moveAgreement:function(){t.navigateTo({url:"/pages/bsinessadmin/useragreement"})},privacyPolicy:function(){t.navigateTo({url:"/pages/bsinessadmin/privacypolicy"})},loginIn:function(){t.navigateTo({url:"/pages/bsinessadmin/login"})}}};e.default=n}).call(this,n("543d")["default"])},"2dc5":function(t,e,n){"use strict";n.r(e);var o=n("2ebe"),i=n("9a85");for(var s in i)"default"!==s&&function(t){n.d(e,t,(function(){return i[t]}))}(s);n("53e4");var u,c=n("f0c5"),r=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"962b81aa",null,!1,o["a"],u);e["default"]=r.exports},"2ebe":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return o}));var o={uCheckboxGroup:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(n.bind(null,"e9fd"))},uCheckbox:function(){return Promise.all([n.e("common/vendor"),n.e("node-modules/uview-ui/components/u-checkbox/u-checkbox")]).then(n.bind(null,"35ca"))}},i=function(){var t=this,e=t.$createElement;t._self._c},s=[]},"53e4":function(t,e,n){"use strict";var o=n("1e07"),i=n.n(o);i.a},"9a85":function(t,e,n){"use strict";n.r(e);var o=n("23ca"),i=n.n(o);for(var s in o)"default"!==s&&function(t){n.d(e,t,(function(){return o[t]}))}(s);e["default"]=i.a},f703:function(t,e,n){"use strict";(function(t){n("5413");o(n("66fd"));var e=o(n("2dc5"));function o(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=n,t(e.default)}).call(this,n("543d")["createPage"])}},[["f703","common/runtime","common/vendor"]]]);