(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{"6c26":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:!0}},onLoad:function(){},onShareTimeline:function(){return{title:"企信易联",path:"/pages/login/login"}},onShareAppMessage:function(e){return{title:"企信易联",path:"/pages/login/login"}},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"])},a8d2:function(e,n,o){"use strict";(function(e){o("0a4c");t(o("66fd"));var n=t(o("fd54"));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"])},b9dd:function(e,n,o){"use strict";var t=o("f8a6"),i=o.n(t);i.a},be6e:function(e,n,o){"use strict";o.d(n,"b",(function(){return i})),o.d(n,"c",(function(){return u})),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,"264a"))},uCheckbox:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-checkbox/u-checkbox")]).then(o.bind(null,"d89a"))},uPopup:function(){return Promise.all([o.e("common/vendor"),o.e("node-modules/uview-ui/components/u-popup/u-popup")]).then(o.bind(null,"9b93"))}},i=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})},u=[]},c72b:function(e,n,o){"use strict";o.r(n);var t=o("6c26"),i=o.n(t);for(var u in t)"default"!==u&&function(e){o.d(n,e,(function(){return t[e]}))}(u);n["default"]=i.a},f8a6:function(e,n,o){},fd54:function(e,n,o){"use strict";o.r(n);var t=o("be6e"),i=o("c72b");for(var u in i)"default"!==u&&function(e){o.d(n,e,(function(){return i[e]}))}(u);o("b9dd");var c,a=o("f0c5"),s=Object(a["a"])(i["default"],t["b"],t["c"],!1,null,"46927896",null,!1,t["a"],c);n["default"]=s.exports}},[["a8d2","common/runtime","common/vendor"]]]);