(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c5685ff"],{"0790":function(e,t,i){"use strict";var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("van-nav-bar",{attrs:{title:e.title,"left-text":"","left-arrow":""},on:{"click-left":e.back}},[i("van-icon",{attrs:{slot:"left",name:e.backHome?"wap-home":"arrow-left"},slot:"left"})],1)},s=[],n={name:"NavBar",data:function(){return{backHome:!1}},props:{title:{type:String,required:!0,default:""}},created:function(){this.$util.sessionStorage.fetch("backHome")&&(this.backHome=!0)},mounted:function(){},methods:{back:function(){this.backHome?(this.$util.sessionStorage.remove("backHome"),this.$router.push("/")):window.history.length>1?window.history.go(-1):this.$router.push("/")}}},o=n,l=(i("ba46"),i("2877")),r=Object(l["a"])(o,a,s,!1,null,"530892b0",null);r.options.__file="NavBar.vue";t["a"]=r.exports},"33f3":function(e,t,i){"use strict";i.r(t);var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"set-nickname-wrap"},[i("nav-bar",{attrs:{title:""}}),i("div",{staticClass:"tab"},[i("p",{class:{active:"mobile"===e.registerType},on:{click:function(t){e.toggleRegisterType("mobile")}}},[e._v("绑定手机")]),i("p",{class:{active:"mail"===e.registerType},on:{click:function(t){e.toggleRegisterType("mail")}}},[e._v("绑定邮箱")])]),i("p",{staticClass:"info"},[e._v("为了给您的账号提供更好的安全保障，请绑定"+e._s("mobile"===e.registerType?"手机号":"邮箱"))]),i("div",{staticClass:"login"},[i("div",{staticClass:"flex align-c",class:{active:e.valueFocus}},["mail"===e.registerType?i("i",{staticClass:"icon icon-youxiang"}):i("p",{staticClass:"areaCode",on:{click:e.getAreaCode}},[i("span",[e._v(e._s(e.areaCodeItem.code))]),i("i",{staticClass:"icon icon-xialatishi"})]),i("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],attrs:{placeholder:"mail"===e.registerType?"请输入邮箱地址":"请输入手机号"},domProps:{value:e.value},on:{focus:function(t){e.focus()},blur:function(t){e.blur()},input:function(t){t.target.composing||(e.value=t.target.value)}}}),e.value.length&&e.valueFocus?i("i",{staticClass:"icon icon-shuruqingkong close",on:{click:function(t){e.clean("value")}}}):e._e()])]),e._m(0),i("van-button",{staticClass:"btn",class:{disabled:e.disabled},attrs:{type:"default"},on:{click:e.loginHandle}},[e._v("\n    "+e._s("mobile"===e.registerType?"绑定手机":"绑定邮箱")+"\n  ")])],1)},s=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"protocol"},[e._v("注册即表示同意"),i("i",[e._v("Hooli服务协议")])])}],n=(i("c5f6"),i("0790")),o={name:"Register",components:{NavBar:n["a"]},data:function(){return{registerType:"mobile",loading:!1,lang:this.$store.state.langStr,areaCodeItem:{id:"317",name:"中国",code:"+86"},value:"",valueFocus:!1,passwordFocus:!1,disabled:!0}},created:function(){var e=this.$util.storage.fetch("areaCodeItem");e&&(this.areaCodeItem=e)},watch:{value:function(e){e.length?this.disabled=!1:this.disabled=!0}},mounted:function(){},methods:{focus:function(){this.valueFocus=!0},blur:function(){this.valueFocus=!1},toggleRegisterType:function(e){this.registerType=e,this.value=""},loginHandle:function(){var e=this;if(!0!==this.disabled){this.disabled=!0;var t=/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,i=/^[0-9]*$/,a={};if(a.url=this.$apis.api_user_verification,a.data={status:"4"},"mail"===this.registerType&&!t.test(this.value))return this.$Toast("邮箱格式不正确"),this.disabled=!1,!1;if("mobile"===this.registerType&&!i.test(this.value))return this.$Toast("手机格式不正确"),this.disabled=!1,!1;"mobile"===this.registerType?(a.data.mobile=this.value,a.data.countryId=this.areaCodeItem.id):"mail"===this.registerType&&(a.data.email=this.value),this.$net.req(a,this).then(function(t){if(e.disabled=!1,0===Number(t.code)){var i={key:e.registerType,value:e.value};e.$util.sessionStorage.save("registerItem",i),e.$util.sessionStorage.save("sendType",4),e.$router.push({path:"/"+e.lang+"/verificationCode",query:{value:e.value}})}},function(t){e.disabled=!1,e.$Toast(t.msg)})}},getAreaCode:function(){this.$router.push({path:"/"+this.lang+"/areaCode"})},clean:function(e){this[e]=""}}},l=o,r=(i("c134"),i("2877")),c=Object(r["a"])(l,a,s,!1,null,"15642bba",null);c.options.__file="bind.vue";t["default"]=c.exports},"56f3":function(e,t,i){},"8d1f":function(e,t,i){},ba46:function(e,t,i){"use strict";var a=i("8d1f"),s=i.n(a);s.a},c134:function(e,t,i){"use strict";var a=i("56f3"),s=i.n(a);s.a}}]);
//# sourceMappingURL=chunk-6c5685ff.a0fbe7d0.js.map