(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4309cd0d"],{1364:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"container"},[t._m(0),n("div",{staticClass:"main"},[t._m(1),n("van-form",{on:{submit:t.onSubmit}},[n("div",{staticClass:"border"},[n("van-field",{attrs:{"left-icon":"friends",placeholder:"请输入用户名",rules:[{required:!0,message:"请填写用户名"}]},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),n("div",{staticClass:"border"},[n("van-field",{attrs:{rules:[{required:!0,message:"请填写密码"}],color:"#ee0a24",type:"password","left-icon":"lock",placeholder:"请输入密码",clearable:""},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}})],1),n("div",{staticStyle:{margin:"26px"}},[n("van-button",{attrs:{round:"",block:"",type:"primary","native-type":"submit"}},[t._v("提交")])],1)])],1)])},r=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"topHeader"},[n("span",[t._v("登录")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"logo"},[a("img",{attrs:{src:n("9d64"),alt:""}})])}],s=n("9ded"),o={name:"VueSkIndex",data:function(){return{username:"admin",password:"admin123"}},mounted:function(){},methods:{onSubmit:function(t){var e=this;this.username&&this.password?Object(s["d"])({userName:this.username,password:this.password}).then((function(t){var n=t.data;200===n.code&&(console.log(n),e.$notify({type:"success",message:n.msg,duration:1e3}),window.localStorage.setItem("token",n.data.token),e.$router.push("/home"),Android.setToken(n.data.token))})):this.$notify({type:"warning",message:"用户名或密码不能为空！",duration:2e3})}}},i=o,u=(n("2a85"),n("2877")),d=Object(u["a"])(i,a,r,!1,null,"5da5a079",null);e["default"]=d.exports},"2a85":function(t,e,n){"use strict";var a=n("33be"),r=n.n(a);r.a},"33be":function(t,e,n){},"9d64":function(t,e,n){t.exports=n.p+"assets/img/logo.e1ef5980.png"},"9ded":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return s})),n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return i})),n.d(e,"d",(function(){return u})),n.d(e,"c",(function(){return d}));var a=n("b775");function r(t){return Object(a["a"])({url:"/app/drill/plan/list",method:"get",params:t})}function s(t){return Object(a["a"])({url:"/app/drill/plan/getInfo",method:"get",params:t})}function o(t){return Object(a["a"])({url:"/app/drill/plan/startPlan",method:"post",data:t})}function i(t){return Object(a["a"])({url:"/app/common/upload",method:"post",data:t})}function u(t){return Object(a["a"])({url:"/app/login",method:"post",data:t})}function d(t){return Object(a["a"])({url:"/app/getInfo",method:"get",params:t})}}}]);