(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cdae7d22"],{"91bc":function(t,e,a){},bf91:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"smsLogin-wrap"},[a("div",{staticClass:"title"},[a("i",{staticClass:"icon icon-guanbi",on:{click:t.goBack}})]),t._m(0),a("p",{staticClass:"info"},[t._v("未注册的手机号将自动创建Hooli账户")]),a("div",{staticClass:"login"},[a("div",{staticClass:"flex align-c",class:{active:t.valueFocus}},[a("p",{staticClass:"areaCode",on:{click:t.getAreaCode}},[a("span",[t._v(t._s(t.areaCodeItem.code))]),a("i",{staticClass:"icon icon-xialatishi"})]),a("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],attrs:{placeholder:"请输入手机号"},domProps:{value:t.value},on:{focus:function(e){t.focus("value")},blur:function(e){t.blur("value")},input:function(e){e.target.composing||(t.value=e.target.value)}}}),t.value.length&&t.valueFocus?a("i",{staticClass:"icon icon-shuruqingkong close",on:{click:function(e){t.clean("value")}}}):t._e()])]),a("van-button",{staticClass:"btn",class:{disabled:t.disabled},attrs:{type:"default"},on:{click:t.loginHandle}},[t._v("确认")]),a("p",{staticClass:"other",on:{click:function(e){t.goNextPage("login")}}},[t._v("使用密码登录")])],1)},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tab"},[a("p",[t._v("短信验证码登录")])])}],n=(a("c5f6"),{name:"SmsLogin",data:function(){return{loading:!1,value:"",disabled:!0,areaCodeItem:{id:"317",name:"中国",code:"+86"},lang:this.$store.state.langStr,valueFocus:!1}},created:function(){var t=this.$util.storage.fetch("areaCodeItem");t&&(this.areaCodeItem=t)},mounted:function(){},watch:{value:function(t){t.length?this.disabled=!1:this.disabled=!0}},methods:{focus:function(t){"value"===t?this.valueFocus=!0:"password"===t&&(this.passwordFocus=!0)},blur:function(t){"value"===t?this.valueFocus=!1:"password"===t&&(this.passwordFocus=!1)},getAreaCode:function(){this.$router.push({path:"/"+this.lang+"/areaCode"})},goNextPage:function(t){this.$router.push({path:"/"+this.lang+"/"+t})},loginHandle:function(){var t=this;if(!0!==this.disabled){this.disabled=!0;var e=/^[0-9]*$/,a={};if(a.url=this.$apis.api_user_verification,a.data={status:"5",mobile:this.value,countryId:this.areaCodeItem.id},!e.test(this.value))return this.$Toast("手机格式不正确"),this.disabled=!1,!1;this.$net.req(a,this).then(function(e){if(t.disabled=!1,0===Number(e.code)){t.$util.sessionStorage.save("sendType",5);var a={key:"mobile",value:t.value};t.$util.sessionStorage.save("registerItem",a),t.$router.push({path:"/"+t.lang+"/verificationCode",query:{value:t.value}})}},function(e){t.disabled=!1,t.$Toast(e.msg)})}},clean:function(t){this[t]=""},goBack:function(){window.history.length>1?this.$router.go(-1):this.$router.push("/")}}}),o=n,l=(a("f717"),a("2877")),u=Object(l["a"])(o,s,i,!1,null,"672e0460",null);u.options.__file="smsLogin.vue";e["default"]=u.exports},f717:function(t,e,a){"use strict";var s=a("91bc"),i=a.n(s);i.a}}]);
//# sourceMappingURL=chunk-cdae7d22.9bff0af2.js.map