(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-3cdd93cb"],{5297:function(e,t,n){"use strict";n("64c5")},"64c5":function(e,t,n){},"684e":function(e,t,n){"use strict";n.r(t);var r=n("1da1"),a=n("5530");n("96cf"),n("d3b7"),n("ac1f"),n("5319"),n("e9c4"),n("00b4"),n("1276"),n("4d63"),n("c607"),n("2c3e"),n("25f0");var i=n("2f62"),s={name:"mob-index",components:{},data:function(){return{userName:"",password:"",pwdVisible:!1}},filters:{},computed:{canSummit:function(){var e=this;return["userName","password"].some((function(t){return!e[t]}))}},watch:{},methods:Object(a.a)(Object(a.a)({},Object(i.b)({loginIn:"user/loginIn"})),{},{validatorUserName:function(e){return function(e){return/^1[0-9]{10}$/.test(e)}(e)},validatorPassword:function(e){return function(e){return e.length>=6}(e)},loginSubmit:function(e){var t=this;return Object(r.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.$store.commit("user/SET_TOKEN",e.userName),t.$router.replace("tab-bar");case 2:case"end":return n.stop()}}),n)})))()}}),created:function(){},mounted:function(){}},o=(n("5297"),n("2877")),c=Object(o.a)(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"main"},[n("h2",{staticClass:"title"},[e._v("登录")]),n("van-form",{on:{submit:e.loginSubmit}},[n("div",{staticClass:"input"},[n("van-field",{attrs:{placeholder:"手机号",type:"tel",maxlength:"11","left-icon":"phone-o",clearable:"",name:"userName",rules:[{required:!0,validator:e.validatorUserName,message:"不是有效的手机号"}],trigger:"onBlur"},model:{value:e.userName,callback:function(t){e.userName="string"==typeof t?t.trim():t},expression:"userName"}})],1),n("div",{staticClass:"input"},[n("van-field",{attrs:{placeholder:"密码",type:e.pwdVisible?"":"password","left-icon":"ellipsis","right-icon":e.pwdVisible?"closed-eye":"eye-o",clearable:"",name:"password",rules:[{required:!0,validator:e.validatorPassword,message:"密码必须大于6位"}],trigger:"onBlur"},on:{"click-right-icon":function(t){e.pwdVisible=!e.pwdVisible}},model:{value:e.password,callback:function(t){e.password="string"==typeof t?t.trim():t},expression:"password"}})],1),n("div",{staticClass:"login"},[n("van-button",{attrs:{block:"",type:"plain","native-type":"submit",disabled:e.canSummit}},[e._v("立 即 登 录")])],1)])],1)}),[],!1,null,"66754a9c",null);t.default=c.exports}}]);