(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{"3c96":function(e,n,o){"use strict";o.r(n);var t=o("8665"),u=o.n(t);for(var i in t)"default"!==i&&function(e){o.d(n,e,(function(){return t[e]}))}(i);n["default"]=u.a},"3f66":function(e,n,o){},"3f9c":function(e,n,o){"use strict";o.r(n);var t=o("dedd"),u=o("3c96");for(var i in u)"default"!==i&&function(e){o.d(n,e,(function(){return u[e]}))}(i);o("4fa7");var c,s=o("f0c5"),a=Object(s["a"])(u["default"],t["b"],t["c"],!1,null,"714bda1e",null,!1,t["a"],c);n["default"]=a.exports},"4fa7":function(e,n,o){"use strict";var t=o("3f66"),u=o.n(t);u.a},8665:function(e,n,o){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o={data:function(){return{form:{account:"",password:""},checked:0,show:!1,gou:!1}},onLoad:function(){},methods:{checkboxChange:function(e){e.length>0?this.gou=!0:this.gou=!1},close:function(){this.show=!1},open:function(){this.show=!0},loginIn:function(){var n=this;if(this.gou){var o=this.form;o.loginType=this.checked+1,e.showLoading({title:"加载中",icon:"none"}),e.$u.http.post("/api/Account/login",o,{custom:{auth:!0}}).then((function(o){e.hideLoading(),e.setStorageSync("token",o.token),e.setStorageSync("supplierId",o.userInfo.id),e.hideLoading(),n.$toast("登陆成功"),n.$store.commit("getAdmin",n.checked),setTimeout((function(){e.reLaunch({url:"/pages/index/index"})}),500)})).catch((function(o){e.hideLoading(),n.$toast(o.msg)}))}else this.$toast("清先阅读用户协议和隐私协议")},moveAgreement:function(){e.navigateTo({url:"/pages/bsinessadmin/useragreement"})},privacyPolicy:function(){e.navigateTo({url:"/pages/bsinessadmin/privacypolicy"})},registerNew:function(){0==this.checked?e.navigateTo({url:"/pages/bsinessadmin/register?checked="+this.checked}):e.navigateTo({url:"/pages/bsinessadmin/supplierges"})}}};n.default=o}).call(this,o("543d")["default"])},b426:function(e,n,o){"use strict";(function(e){o("5413");t(o("66fd"));var n=t(o("3f9c"));function t(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=o,e(n.default)}).call(this,o("543d")["createPage"])},dedd:function(e,n,o){"use strict";o.d(n,"b",(function(){return u})),o.d(n,"c",(function(){return i})),o.d(n,"a",(function(){return t}));var t={uCheckboxGroup:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-checkbox-group/u-checkbox-group")]).then(o.bind(null,"e9fd"))},uCheckbox:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-checkbox/u-checkbox")]).then(o.bind(null,"35ca"))},uPopup:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(o.bind(null,"326d"))}},u=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.checked=0},e.e1=function(n){e.checked=1},e.e2=function(n){e.show=!0})},i=[]}},[["b426","common/runtime","common/vendor"]]]);