(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["login"],{5801:function(t,e,n){},a58f:function(t,e,n){t.exports=n.p+"static/img/ok.png"},ae74:function(t,e,n){t.exports=n.p+"static/img/crit.png"},da60:function(t,e,n){t.exports=n.p+"static/img/helpicon.png"},dd7b:function(t,e,n){"use strict";n.r(e);var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"index"},[s("Header",{attrs:{isShowMenu:!1}}),s("div",{staticClass:"login-context"},[s("Form",{ref:"formInline",staticClass:"formLogin",attrs:{model:t.formInline,rules:t.ruleInline,"label-width":80}},[s("FormItem",{staticStyle:{color:"#fff"},attrs:{prop:"username",label:"账号："}},[s("Input",{attrs:{type:"text",placeholder:"用户名"},model:{value:t.formInline.username,callback:function(e){t.$set(t.formInline,"username",e)},expression:"formInline.username"}})],1),s("FormItem",{attrs:{prop:"password",label:"密 码："}},[s("Input",{attrs:{type:"password",placeholder:"密码"},model:{value:t.formInline.password,callback:function(e){t.$set(t.formInline,"password",e)},expression:"formInline.password"}})],1),s("FormItem",{staticStyle:{"text-align":"left","margin-left":"0",width:"100%"}},[s("Button",{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:function(e){return t.handleSubmit("formInline")}}},[t._v("登录")])],1),s("FormItem",{staticStyle:{"text-align":"center"}},[s("a",{staticStyle:{color:"#EB980E"},attrs:{href:"#"}},[t._v("忘记密码？")])]),s("FormItem",{staticStyle:{"text-align":"left"}},[s("div",{staticClass:"tips-attion"},[s("h3",[t._v("所需的浏览器设置")]),s("ul",[s("li",[t._v("1、允许来自此网站的弹出窗口 "),s("span",{attrs:{id:"enablePopupBlock"}},[t.enableScript?s("img",{attrs:{src:n("a58f"),alt:""}}):s("img",{attrs:{src:n("ae74"),alt:""}})])]),s("li",[t._v("2、允许从此网站下载文件. "),s("span",{attrs:{id:"popupBlock"}},[t._v("(help"),s("img",{attrs:{src:n("da60"),alt:""}})]),t._v(")")]),s("li",[t._v("3、为此网站启用javascript "),s("span",{attrs:{id:"popupBlock"}},[t.enableScript?s("img",{attrs:{src:n("a58f"),alt:""}}):s("img",{attrs:{src:n("ae74"),alt:""}})])]),s("li",[t._v("4、为此网站启用Cookie "),s("span",{attrs:{id:"enableCookie"}},[t.enableScript?s("img",{attrs:{src:n("a58f"),alt:""}}):s("img",{attrs:{src:n("ae74"),alt:""}})])])]),s("strong",[t._v("建议不要使用浏览器的刷新、后退和前进选项。")])])])],1)],1)],1)},a=[],o=n("71c2"),i=n("365c"),r={name:"index",data:function(){return{enableScript:!0,enablePopupBlock:!0,enableCookie:navigator.cookieEnabled,formInline:{username:"joshua",password:"123456"},ruleInline:{username:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}}},components:{Header:o["a"]},props:{msg:String},created:function(){this.testGetDeviceInfo()},methods:{testGetDeviceInfo:function(){i["a"].Get("/action/deviceinfo",{}).then((function(t){console.log(t)})).catch((function(t){console.log(t),console.log(t.isSuccess)}))},handleSubmit:function(t){var e=this;this.$refs[t].validate((function(t){t?i["a"].Get("/action/login",e.formInline).then((function(t){console.log(t),console.log(t.data),t.isSuccess?(e.$Message.success("登录成功!"),e.$router.push("/index")):e.$Message.error("登录失败!")})).catch((function(t){console.log(t),console.log(t.isSuccess)})):e.$Message.error("Fail!")}))},handleReset:function(t){this.$refs[t].resetFields()}}},l=r,c=(n("fcc5"),n("2877")),p=Object(c["a"])(l,s,a,!1,null,"e932024c",null);e["default"]=p.exports},fcc5:function(t,e,n){"use strict";var s=n("5801"),a=n.n(s);a.a}}]);