(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-726f2450"],{"02bc":function(t,e,a){},"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},"8c7d":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("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("下一步")])],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,valueFocus:!1}},created:function(){},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},loginHandle:function(){var t=this;if(!0!==this.disabled){this.disabled=!0;var e=/^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.[a-zA-Z0-9]{2,6}$/,a=this.$store.state.langStr,i={};if(i.url=this.$apis.api_user_verification,i.data={status:"3",email:this.value},!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:"mail",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("b853"),a("2877")),c=Object(u["a"])(l,i,s,!1,null,"2a86257b",null);c.options.__file="editMail.vue";e["default"]=c.exports},"8d1f":function(t,e,a){},b853:function(t,e,a){"use strict";var i=a("02bc"),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-726f2450.6a458354.js.map