(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5c1b895f"],{"066f":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"edit-mobile-wrap"},[a("nav-bar",{attrs:{title:""}}),t._m(0),a("p",{staticClass:"info"},[t._v("绑定手机后，下次可使用新手机号登录")]),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:t.focus,blur:t.blur,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("下一步")])],1)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tab"},[a("p",[t._v("绑定手机号")])])}],n=(a("c5f6"),a("0790")),o={name:"EditMobile",components:{NavBar:n["a"]},data:function(){return{loading:!1,value:"",disabled:!0,areaCodeItem:{id:"317",name:"中国",code:"+86"},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(){this.valueFocus=!0},blur:function(){this.valueFocus=!1},getAreaCode:function(){var t=this.$store.state.langStr;this.$router.push({path:"/"+t+"/areaCode"})},loginHandle:function(){var t=this;if(!0!==this.disabled){this.disabled=!0;var e=/^[0-9]*$/,a=this.$store.state.langStr,i={};if(i.url=this.$apis.api_user_verification,i.data={status:"3",mobile:this.value,countryId:this.areaCodeItem.id},!e.test(this.value))return this.$Toast("手机格式不正确"),this.disabled=!1,!1;this.$net.req(i,this).then(function(e){if(t.disabled=!1,0===Number(e.code)){t.$util.sessionStorage.save("sendType",3);var i={key:"mobile",value:t.value};t.$util.sessionStorage.save("registerItem",i),t.$router.push({path:"/"+a+"/verificationCode",query:{value:t.value}})}},function(e){t.disabled=!1,t.$Toast(e.msg)})}},clean:function(t){this[t]=""}}},l=o,u=(a("a738"),a("2877")),r=Object(u["a"])(l,i,s,!1,null,"1f781cb6",null);r.options.__file="editMobile.vue";e["default"]=r.exports},"0790":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("van-nav-bar",{attrs:{title:t.title,"left-text":"","left-arrow":""},on:{"click-left":t.back}},[a("van-icon",{attrs:{slot:"left",name:t.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=(a("ba46"),a("2877")),u=Object(l["a"])(o,i,s,!1,null,"530892b0",null);u.options.__file="NavBar.vue";e["a"]=u.exports},"5f1e":function(t,e,a){},"8d1f":function(t,e,a){},a738:function(t,e,a){"use strict";var i=a("5f1e"),s=a.n(i);s.a},ba46:function(t,e,a){"use strict";var i=a("8d1f"),s=a.n(i);s.a}}]);
//# sourceMappingURL=chunk-5c1b895f.6a67dfa1.js.map