webpackJsonp([14],{G4OE:function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=t("SQ4B"),a=t("vGYV"),o=t("qI5z"),d={name:"MailBinding",data:function(){return{loading:!1,hasVerifyCode:!1,bindingEmail:!1,codeTime:10,emailBindingForm:{email:"",verifyCode:""},user:{}}},methods:{showLoading:function(){this.loading=!0},hideLoading:function(){this.loading=!1},setUserInfo:function(){var i=this;this.showLoading();var e=Object(a.M)("user")&&Object(a.M)("user").userVO.id;n.a.get("/api/user/"+e).then(function(e){i.user=e.userVO,i.hideLoading()})},handleBindingEmail:function(){this.$router.push({path:"/personal/mailBinding/binding"})},handleChangeEmail:function(){this.$router.push({path:"/personal/mailBinding/rebinding"})},getVerifyCode:function(){var i=this,e={id:this.user.id,email:this.emailBindingForm.email};n.a.put("/api/verify/email",e).then(function(e){i.hasVerifyCode=!0;var t=i,n=setInterval(function(){t.codeTime>0?t.codeTime--:(clearInterval(n),t.hasVerifyCode=!1,this.codeTime=10,this.setUserInfo())},1e3)}).catch(function(i){Object(o.a)("error","获取验证码失败:"+i.data)})}},mounted:function(){this.setUserInfo()},watch:{$route:function(i,e){"/personal/mailBinding"===i.path&&this.$router.go(0)}}},s=function(){var i=this,e=i.$createElement,n=i._self._c||e;return n("div",[n("div",{staticClass:"right-modifyPsw"},[n("div",[i._m(0),i._v(" "),n("div",{directives:[{name:"loading",rawName:"v-loading",value:i.loading,expression:"loading"}]},[i.user.email?i._e():n("div",[n("div",{staticStyle:{"background-color":"rgba(233,239,249,1)",padding:"10px","margin-bottom":"30px"}},[n("img",{attrs:{src:t("msK+")}}),i._v(" "),n("span",{staticStyle:{"font-size":"16px"}},[i._v("您还未绑定邮箱,为保护您帐号,建议您")]),i._v(" "),n("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:i.handleBindingEmail}},[i._v("立即绑定\n ")])],1),i._v(" "),n("div",[i._v("\n 邮箱绑定成功后,您将享受以下服务:\n ")]),i._v(" "),n("div",[i._v("①邮箱地址登录 可直接使用“邮箱地址”登录到众测服务平台")]),i._v(" "),n("div",[i._v("②重要事件提醒 进行(支付/提现/众测/中标)时,可及时收到邮件提醒")]),i._v(" "),n("div",[i._v("③找回账号密码 忘记密码时,可使用邮件找回密码")])]),i._v(" "),i.user.email?n("div",[n("div",{staticStyle:{"background-color":"rgba(233,239,249,1)",padding:"10px","margin-bottom":"30px"}},[n("img",{attrs:{src:t("emUe")}}),i._v(" "),n("span",{staticStyle:{"font-size":"16px"}},[i._v("您绑定的邮箱是:"+i._s(this.user.email))]),i._v(" "),n("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary",plain:"",size:"mini"},on:{click:i.handleChangeEmail}},[i._v("修改邮箱")])],1)]):i._e(),i._v(" "),n("router-view")],1)])])])};s._withStripped=!0;var r={render:s,staticRenderFns:[function(){var i=this.$createElement,e=this._self._c||i;return e("div",{staticClass:"right-modifyPsw-title"},[e("span",{staticStyle:{"font-size":"18px","font-weight":"bold"}},[this._v("邮箱绑定")])])}]},A=r;var p=!1;var u=t("VU/8")(d,A,!1,function(i){p||t("tu+p")},"data-v-2d598543",null);u.options.__file="src/pages/UserCenter/MailBinding.vue";e.default=u.exports},emUe:function(i,e){i.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAACZklEQVRIS7WVT0hUcRDHP/N2kUpDBS9F1EWhIlFyVysKMg8evFiGXSRvHoQg0rcLdXAvBbq70CEIIoLoUl46CdE/oYOku0sKHiyDoKRDGSZoaLv7Jt5um+7uW9eKncuDNzOf93sz35mfUMgGojW46EC0A6UOZV8qVFhAmEdljCRjhD2LTgjJezk4U47x8zIwAFQX/HDasQSEscpuEmpY3RybDfZH92PpGMKRIsBstzKLIR0Mez5mHBtg83UduCYQav4KmglWFiF5guCx+XTFbOuL7qJaYygH/wm6ccw5lqSJO54fabAZuYpwfZvQZ8ADYCdIP2hDVp5yjaD3hpDqvr4HKouCLYKEPH4CCAGxOD3uprniCdC2KXeZ5EqtYEYuItwvCoVZRrz12L0Q1yjKJ8pXzrFWcRKL8ZxT9wq+qUcg3QXBiiLMoqyATiPSCexB+U4ivhd32SFEYzkyGRV8kTdAozNYv4D0MOK16wqDk8cxjFfAGhZnCXmf44sMAYGc/Gkb/BUcJbaEWK0Mt8xgxk6BNiJUoXoFNboINb3EjHQhPATcOeBFZ7CyjqFnGG6ewD/Vg8oQqpdQbcDgBSMtUfyT7ajxOK2OPEuB80uhahJsDuGL9YF1G1ggKe2EPXMphD/WjVp3gd0FemOXwqF5CY6iLOPWd4i4APu5gOqO37D6rVWko85ys6w2XK4YakVAPpOU84SbvmFGPyAcKCpNpdd5QJSnJOKdVK7HCbQmUiNfpfeAC0WhsExSarca6bfALWwdG9KP6uFtQOHPSJd0CaUWUSnWZuYfS7LoM/CSXE2bu/Ofl+kvKWAJRf2+eJkAAAAASUVORK5CYII="},fbnv:function(i,e,t){(e=t("yGwj")(!0)).push([i.i,"\n.el-input-group__append[data-v-2d598543]{border-radius:0 !important\n}\n.right-modifyPsw[data-v-2d598543]{padding:20px;background:#fff;-webkit-box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13);box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13)\n}\n.right-modifyPsw .right-modifyPsw-title[data-v-2d598543]{padding:10px;border-bottom:1px solid #ccc;margin-bottom:20px\n}\n","",{version:3,sources:["MailBinding.vue"],names:[],mappings:";AACA,yCAAyC;AACzC;AACA,kCAAkC,YAAY,CAAC,eAAe,CAAC,mDAAmD,CAAC;AACnH;AACA,yDAAyD,YAAY,CAAC,4BAA4B,CAAC;AACnG",file:"MailBinding.vue",sourcesContent:["\n.el-input-group__append[data-v-2d598543]{border-radius:0 !important\n}\n.right-modifyPsw[data-v-2d598543]{padding:20px;background:#fff;-webkit-box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13);box-shadow:0px 1px 6px 0px rgba(8,6,6,0.13)\n}\n.right-modifyPsw .right-modifyPsw-title[data-v-2d598543]{padding:10px;border-bottom:1px solid #ccc;margin-bottom:20px\n}\n"]}]),i.exports=e},"msK+":function(i,e){i.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAACZklEQVRIS7WVT0hUcRDHP/N2kUpDBS9F1EWhIlFyVysKMg8evFiGXSRvHoQg0rcLdXAvBbq70CEIIoLoUl46CdE/oYOku0sKHiyDoKRDGSZoaLv7Jt5um+7uW9eKncuDNzOf93sz35mfUMgGojW46EC0A6UOZV8qVFhAmEdljCRjhD2LTgjJezk4U47x8zIwAFQX/HDasQSEscpuEmpY3RybDfZH92PpGMKRIsBstzKLIR0Mez5mHBtg83UduCYQav4KmglWFiF5guCx+XTFbOuL7qJaYygH/wm6ccw5lqSJO54fabAZuYpwfZvQZ8ADYCdIP2hDVp5yjaD3hpDqvr4HKouCLYKEPH4CCAGxOD3uprniCdC2KXeZ5EqtYEYuItwvCoVZRrz12L0Q1yjKJ8pXzrFWcRKL8ZxT9wq+qUcg3QXBiiLMoqyATiPSCexB+U4ivhd32SFEYzkyGRV8kTdAozNYv4D0MOK16wqDk8cxjFfAGhZnCXmf44sMAYGc/Gkb/BUcJbaEWK0Mt8xgxk6BNiJUoXoFNboINb3EjHQhPATcOeBFZ7CyjqFnGG6ewD/Vg8oQqpdQbcDgBSMtUfyT7ajxOK2OPEuB80uhahJsDuGL9YF1G1ggKe2EPXMphD/WjVp3gd0FemOXwqF5CY6iLOPWd4i4APu5gOqO37D6rVWko85ys6w2XK4YakVAPpOU84SbvmFGPyAcKCpNpdd5QJSnJOKdVK7HCbQmUiNfpfeAC0WhsExSarca6bfALWwdG9KP6uFtQOHPSJd0CaUWUSnWZuYfS7LoM/CSXE2bu/Ofl+kvKWAJRf2+eJkAAAAASUVORK5CYII="},"tu+p":function(i,e,t){var n=t("fbnv");"string"==typeof n&&(n=[[i.i,n,""]]),n.locals&&(i.exports=n.locals);t("rjj0")("91ce4876",n,!1,{})}});