1 |
- webpackJsonp([11],{G4OE:function(i,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=t("SQ4B"),n=t("vGYV"),o=t("qI5z"),s={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(n.I)("user")&&Object(n.I)("user").userVO.id;a.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};a.a.put("/api/verify/email",e).then(function(e){i.hasVerifyCode=!0;var t=i,a=setInterval(function(){t.codeTime>0?t.codeTime--:(clearInterval(a),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)}}},d={render:function(){var i=this,e=i.$createElement,a=i._self._c||e;return a("div",[a("div",{staticClass:"right-modifyPsw"},[a("div",[i._m(0),i._v(" "),a("div",{directives:[{name:"loading",rawName:"v-loading",value:i.loading,expression:"loading"}]},[i.user.email?i._e():a("div",[a("div",{staticStyle:{"background-color":"rgba(233,239,249,1)",padding:"10px","margin-bottom":"30px"}},[a("img",{attrs:{src:t("msK+")}}),i._v(" "),a("span",{staticStyle:{"font-size":"16px"}},[i._v("您还未绑定邮箱,为保护您帐号,建议您")]),i._v(" "),a("el-button",{attrs:{type:"primary",plain:"",size:"mini"},on:{click:i.handleBindingEmail}},[i._v("立即绑定\n ")])],1),i._v(" "),a("div",[i._v("\n 邮箱绑定成功后,您将享受以下服务:\n ")]),i._v(" "),a("div",[i._v("①邮箱地址登录 可直接使用“邮箱地址”登录到众测服务平台")]),i._v(" "),a("div",[i._v("②重要事件提醒 进行(支付/提现/众测/中标)时,可及时收到邮件提醒")]),i._v(" "),a("div",[i._v("③找回账号密码 忘记密码时,可使用邮件找回密码")])]),i._v(" "),i.user.email?a("div",[a("div",{staticStyle:{"background-color":"rgba(233,239,249,1)",padding:"10px","margin-bottom":"30px"}},[a("img",{attrs:{src:t("emUe")}}),i._v(" "),a("span",{staticStyle:{"font-size":"16px"}},[i._v("您绑定的邮箱是:"+i._s(this.user.email))]),i._v(" "),a("el-button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary",plain:"",size:"mini"},on:{click:i.handleChangeEmail}},[i._v("修改邮箱")])],1)]):i._e(),i._v(" "),a("router-view")],1)])])])},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("邮箱绑定")])])}]};var r=t("VU/8")(s,d,!1,function(i){t("Zy0Y")},"data-v-15d74c3b",null);e.default=r.exports},Zy0Y:function(i,e){},emUe:function(i,e){i.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAACZklEQVRIS7WVT0hUcRDHP/N2kUpDBS9F1EWhIlFyVysKMg8evFiGXSRvHoQg0rcLdXAvBbq70CEIIoLoUl46CdE/oYOku0sKHiyDoKRDGSZoaLv7Jt5um+7uW9eKncuDNzOf93sz35mfUMgGojW46EC0A6UOZV8qVFhAmEdljCRjhD2LTgjJezk4U47x8zIwAFQX/HDasQSEscpuEmpY3RybDfZH92PpGMKRIsBstzKLIR0Mez5mHBtg83UduCYQav4KmglWFiF5guCx+XTFbOuL7qJaYygH/wm6ccw5lqSJO54fabAZuYpwfZvQZ8ADYCdIP2hDVp5yjaD3hpDqvr4HKouCLYKEPH4CCAGxOD3uprniCdC2KXeZ5EqtYEYuItwvCoVZRrz12L0Q1yjKJ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