webpackJsonp([23],{EV1k:function(s,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={data:function(){return{isCode:!0,psw:!0,passwd:""}},components:{Headers:e("GgDs").a},methods:{toggle:function(s){this.isCode=!(s>0)},logIn:function(){this.$store.dispatch("login"),this.$router.push("/index")},pswd:function(){this.psw=!this.psw}}},n={render:function(){var s=this,t=s.$createElement,a=s._self._c||t;return a("div",[a("Headers",{attrs:{title:"登录"}}),s._v(" "),a("div",{staticClass:"login"},[a("p",{staticClass:"loginType"},[a("span",{class:s.isCode?"active":"",on:{click:function(t){s.toggle(0)}}},[s._v("验证码登录")]),a("i"),a("span",{class:s.isCode?"":"active",on:{click:function(t){s.toggle(1)}}},[s._v("密码登录")])]),s._v(" "),s.isCode?a("div",{staticClass:"logincode"},[s._m(0),s._v(" "),s._m(1)]):a("div",{staticClass:"loginpwd"},[s._m(2),s._v(" "),a("p",["checkbox"==(s.psw?"password":"text")?a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwd,expression:"passwd"}],attrs:{placeholder:"密码",type:"checkbox"},domProps:{checked:Array.isArray(s.passwd)?s._i(s.passwd,null)>-1:s.passwd},on:{change:function(t){var e=s.passwd,a=t.target,n=!!a.checked;if(Array.isArray(e)){var i=s._i(e,null);a.checked?i<0&&(s.passwd=e.concat([null])):i>-1&&(s.passwd=e.slice(0,i).concat(e.slice(i+1)))}else s.passwd=n}}}):"radio"==(s.psw?"password":"text")?a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwd,expression:"passwd"}],attrs:{placeholder:"密码",type:"radio"},domProps:{checked:s._q(s.passwd,null)},on:{change:function(t){s.passwd=null}}}):a("input",{directives:[{name:"model",rawName:"v-model",value:s.passwd,expression:"passwd"}],attrs:{placeholder:"密码",type:s.psw?"password":"text"},domProps:{value:s.passwd},on:{input:function(t){t.target.composing||(s.passwd=t.target.value)}}}),a("span",{staticClass:"pimg",on:{click:s.pswd}},[s.psw?a("img",{attrs:{src:e("PQMM")}}):a("img",{attrs:{src:e("YvW5")}})])]),s._v(" "),a("p",[a("router-link",{attrs:{to:"/forget"}},[s._v("忘记密码？")])],1)]),s._v(" "),a("button",{staticClass:"loginto",on:{click:s.logIn}},[s._v("登录")]),s._v(" "),a("router-link",{attrs:{to:"/register"}},[a("button",{staticClass:"zhuce"},[s._v("注册")])])],1)],1)},staticRenderFns:[function(){var s=this.$createElement,t=this._self._c||s;return t("p",[t("input",{attrs:{type:"text",placeholder:"手机号码"}})])},function(){var s=this.$createElement,t=this._self._c||s;return t("p",[t("input",{attrs:{type:"text",placeholder:"验证码"}}),t("span",[this._v("获取验证码")])])},function(){var s=this.$createElement,t=this._self._c||s;return t("p",[t("input",{attrs:{type:"text",placeholder:"手机号码"}})])}]};var i=e("VU/8")(a,n,!1,function(s){e("rvBW")},null,null);t.default=i.exports},rvBW:function(s,t){}});