text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c122ed9c"],{"26fc":function(t,e,o){t.exports=o.p+"static/img/404_cloud.0f4bc32b.png"},"9ed6":function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"login-container"},[n("div",{staticClass:"header"},[n("div",{staticClass:"content"},[n("img",{staticClass:"logo",attrs:{src:o("26fc")},on:{click:function(e){return t.$router.push("/news/index")}}}),n("div",{staticStyle:{"font-size":"16px",margin:"0 10px","font-weight":"800",flex:"1"}},[t._v("原子回声科技有限公司")]),n("img",{staticClass:"logo",attrs:{src:o("26fc")},on:{click:function(e){return t.$router.push("/news/index")}}}),n("div",{staticStyle:{"font-size":"16px",margin:"0 10px","font-weight":"800"}},[t._v("原子回声")])])]),n("el-card",{staticStyle:{width:"350px",position:"absolute",right:"20%",top:"20%"}},[n("div",{staticStyle:{"border-bottom":"2px solid #67C23A","font-weight":"550","font-size":"16px",width:"65px",padding:"10px 0"}},[t._v(" 快捷登录 ")]),n("el-form",{ref:"loginForm",staticStyle:{padding:"30px 0"},attrs:{model:t.loginForm}},[n("el-form-item",[n("el-input",{attrs:{placeholder:"请输入手机号"},model:{value:t.loginForm.phone,callback:function(e){t.$set(t.loginForm,"phone",e)},expression:"loginForm.phone"}},[n("template",{slot:"prepend"},[t._v("+86")])],2)],1),n("el-form-item",[n("el-input",{attrs:{placeholder:"请输入短信验证码"},model:{value:t.loginForm.code,callback:function(e){t.$set(t.loginForm,"code",e)},expression:"loginForm.code"}},[n("template",{slot:"append"},[n("el-button",{staticStyle:{width:"140px"},attrs:{disabled:60!==t.codeSecond},on:{click:t.getCode}},[t._v(t._s(t.getCodeBtn))])],1)],2)],1),n("el-form-item",[n("el-button",{staticStyle:{width:"100%"},attrs:{type:"success"}},[t._v("登录")])],1),n("el-form-item",{staticStyle:{"text-align":"center"}},[n("span",[t._v("没有账号？")]),n("span",{staticStyle:{color:"#67C23A",cursor:"pointer"}},[t._v("联系管理员")])])],1)],1)],1)},i=[],r={name:"Login",data:function(){return{loginForm:{username:"admin",password:"111111"},loading:!1,passwordType:"password",redirect:void 0,getCodeBtn:"获取短信验证码",codeSecond:60}},watch:{$route:{handler:function(t){this.redirect=t.query&&t.query.redirect},immediate:!0}},methods:{getCode:function(){var t=this;this.timer=setInterval((function(){t.codeSecond>0?t.getCodeBtn=t.codeSecond--:(t.getCodeBtn="获取短信验证码",t.codeSecond=60,window.clearInterval(t.timer))}),1e3)},handleLogin:function(){var t=this;this.$refs.loginForm.validate((function(e){if(!e)return console.log("error submit!!"),!1;t.loading=!0,t.$store.dispatch("user/login",t.loginForm).then((function(){t.$router.push({path:t.redirect||"/"}),t.loading=!1})).catch((function(){t.loading=!1}))}))}}},c=r,s=(o("b7a3"),o("2877")),a=Object(s["a"])(c,n,i,!1,null,"c33a394e",null);e["default"]=a.exports},b60d:function(t,e,o){},b7a3:function(t,e,o){"use strict";o("b60d")}}]);