(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{"0036":function(t,n,e){"use strict";(function(t,n){var o=e("4ea4");e("6cdc");o(e("66fd"));var i=o(e("a86a"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"0abb":function(t,n,e){"use strict";var o=e("6312"),i=e.n(o);i.a},3285:function(t,n,e){"use strict";e.r(n);var o=e("8edd"),i=e.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);n["default"]=i.a},"5a7a":function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return o}));var o={uButton:function(){return e.e("node-modules/uview-ui/components/u-button/u-button").then(e.bind(null,"d9ad"))}},i=function(){var t=this,n=t.$createElement;t._self._c},a=[]},6312:function(t,n,e){},"8edd":function(t,n,e){"use strict";(function(t){var o=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;e("815d");var i=o(e("0cc2")),a=o(e("8237")),s=function(){e.e("components/jp-verification-literalness/jp-verification-literalness").then(function(){return resolve(e("08d3"))}.bind(null,e)).catch(e.oe)};n.default={components:{Security:s},data:function(){return{identify:"123s",username:"",password:"",identifyCode:""}},onLoad:function(){},methods:{randomNum:function(t,n){return Math.floor(Math.random()*(n-t)+t)},refreshCode:function(){this.identifyCode="",this.makeCode()},makeCode:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:4,n="1234567890abcdef",e="",o=0;o<t;o++)e+=n[this.randomNum(0,n.length)];this.identify=e},login:function(){var n=this;if(this.username)if(this.password)if(this.identifyCode)if(this.identifyCode==this.identify){var e={username:this.username,password:(0,a.default)(this.password),identifyCode:this.identifyCode};this.$http.post("/api/auth/login",e,{custom:{auth:!1}}).then((function(e){var o=e.data;if(console.log(o),200==o.code){var a=o.data;a.info;console.log(a),i.default.setAccessToken(a.token),n.$store.dispatch("getUserInfo"),t.switchTab({url:"/pages/index/index"}),t.showToast({title:"登录成功！",icon:"none"})}})).catch((function(n){t.showToast({title:n.data.message,icon:"none"})}))}else t.showToast({title:"验证码不正确",icon:"none"});else t.showToast({title:"请输入验证码",icon:"none"});else t.showToast({title:"请输入您的密码",icon:"none"});else t.showToast({title:"请输入您的账号",icon:"none"})}}}}).call(this,e("543d")["default"])},a86a:function(t,n,e){"use strict";e.r(n);var o=e("5a7a"),i=e("3285");for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);e("0abb");var s,u=e("f0c5"),c=Object(u["a"])(i["default"],o["b"],o["c"],!1,null,"13fa2dab",null,!1,o["a"],s);n["default"]=c.exports}},[["0036","common/runtime","common/vendor"]]]);