(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[46],{"10fb":function(e,t,a){"use strict";a.r(t);var r=a("eedf"),c=a.n(r),s=a("3787"),i=a.n(s),n=a("f3ad"),o=a.n(n),u=a("4105"),l=a.n(u),d=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"bgF3"},[a("div",{staticClass:"w1200 reg-box"},[a("div",{staticClass:"n bg-white"},[a("div",{staticClass:"t"},[e._v("邮箱注册")]),a("div",{staticClass:"b"},[a(l.a,{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.form,rules:e.rules}},[a(i.a,{attrs:{label:"邮箱",prop:"receiveCodeAddr"}},[a("div",[a(o.a,{model:{value:e.form.receiveCodeAddr,callback:function(t){e.$set(e.form,"receiveCodeAddr",t)},expression:"form.receiveCodeAddr"}})],1)]),a(i.a,{attrs:{label:"验证码",prop:"captchaValue"}},[a("div",{staticClass:"dis-flex"},[a(o.a,{model:{value:e.form.captchaValue,callback:function(t){e.$set(e.form,"captchaValue",t)},expression:"form.captchaValue"}}),a("img",{attrs:{src:e.captcha.base64Img,alt:""},on:{click:e.getCaptcha}})],1)]),a(i.a,{attrs:{label:""}},[a("div",{staticClass:"btn-box"},[a(c.a,{staticStyle:{width:"100%"},attrs:{type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确认")])],1)])],1)],1)])])])},f=[],p=a("7ec2"),h=a.n(p),m=a("c973"),v=a.n(m),b=(a("14d9"),{data:function(){return{captcha:{},form:{verifyLinkFlag:20,captchaValue:"",checkMethod:20},rules:{receiveCodeAddr:[{required:!0,message:"邮箱不能为空",trigger:"blur"}],captchaValue:[{required:!0,message:"图形验证码不能为空",trigger:"blur"}]}}},created:function(){this.getCaptcha()},methods:{getCaptcha:function(){var e=this;this.apiGet("captcha").then((function(t){e.captcha=t.data}))},submit:function(){var e=this;return v()(h()().mark((function t(){var a;return h()().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.form.captchaKey=e.captcha.captchaKey,t.next=3,e.apiPost("getCheckCode",e.form,!0);case 3:a=t.sent,200==a.code&&(e.$message.success("邮件验证码发送成功，请注意查收"),e.$router.push({path:"/register/email",query:{email:e.form.receiveCodeAddr}}));case 5:case"end":return t.stop()}}),t)})))()},submitForm:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;t.submit()}))}}}),C=b,g=(a("988c"),a("2877")),w=Object(g["a"])(C,d,f,!1,null,"ddfa2982",null);t["default"]=w.exports},"988c":function(e,t,a){"use strict";a("bf6a")},bf6a:function(e,t,a){}}]);