"use strict";(self["webpackChunkexchange"]=self["webpackChunkexchange"]||[]).push([[8300],{25487:function(t,e,i){i.r(e),i.d(e,{default:function(){return l}});var s=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"verify"},[s("div",{staticClass:"header"},[s("div",{on:{click:function(e){return t.$router.go(-1)}}},[s("img",{staticClass:"w-14 h-27",attrs:{src:i(25139),alt:""}})])]),s("div",{staticClass:"content"},[1==t.type?s("div",{staticClass:"title textColor"},[t._v(t._s(t.$t("邮箱验证")))]):t._e(),2==t.type?s("div",{staticClass:"title textColor"},[t._v(t._s(t.$t("手机验证")))]):t._e(),1==t.type?s("p",[t._v(t._s(t.$t("verifyEmailTips",{account:t.account})))]):t._e(),2==t.type?s("p",[t._v(t._s(t.$t("verifyPhoneTips",{account:t.account})))]):t._e(),s("div",{staticClass:"iptbox inputBackground"},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.verifyCode,expression:"verifyCode"}],staticClass:"inputBackground textColor",attrs:{type:"text",placeholder:t.$t("请输入验证码")},domProps:{value:t.verifyCode},on:{input:function(e){e.target.composing||(t.verifyCode=e.target.value)}}}),s("span",{on:{click:t.senCode}},[t._v(t._s(t.$t("重新发送验证码"))+" "),t.time?[t._v(" ("+t._s(t.time)+")s")]:t._e()],2)]),s("div",{staticClass:"btn btnMain",on:{click:t.bound}},[t._v(t._s(t.$t("绑定")))])])])},o=[],a=(i(44114),i(10861)),n=i(50404),r={props:{},components:{},data(){return{verifyCode:"",type:"",account:"",timer:"",time:0}},mounted(){let t=this.$route.query.type;this.type=t;let e=this.$route.query.account;this.account=e,clearInterval(this.timer),this.senCode()},methods:{bound(){if(this.verifyCode.length<6)this.$toast(this.$t("请输入6位验证码"));else switch(this.type){case 1:this.bindEmail();break;case 2:this.bindPhone();break}},bindEmail(){n.A.bindEmail({email:this.account,verifcode:this.verifyCode}).then((t=>{this.$toast(this.$t("绑定成功")),this.$router.push("/setFond")})).catch((t=>{"ECONNABORTED"===t.code?this.$toast(this.$t("网络超时!")):void 0!==t.msg&&this.$toast(this.$t(t.msg))}))},bindPhone(){n.A.bindPhone({phone:this.account,verifcode:this.verifyCode}).then((t=>{this.$toast(this.$t("绑定成功")),this.$router.push("/setFond")})).catch((t=>{"ECONNABORTED"===t.code?this.$toast(this.$t("网络超时!")):void 0!==t.msg&&this.$toast(this.$t(t.msg))}))},senCode(){if(this.time>0)return!1;a.A.sendVerifyCode({target:this.account}).then((t=>{this.time=30,this.timer=setInterval((()=>{this.time>0?this.time=this.time-1:(this.time=0,clearInterval(this.timer))}),1e3)})).catch((t=>{"ECONNABORTED"===t.code?this.$toast(this.$t("网络超时!")):void 0!==t.msg&&this.$toast(this.$t(t.msg))}))}},beforeDestroy(){clearInterval(this.timer)}},d=r,g=i(81656),c=(0,g.A)(d,s,o,!1,null,"3f0be141",null),l=c.exports},10861:function(t,e,i){var s=i(60783);const o=t=>(0,s.zi)({url:"projectInfoApp/getCurrentProjectInfo",method:"get",isLoading:!0},t),a=t=>(0,s.zi)({url:"/api/localuser!registerNoVerifcode.action",method:"get",isLoading:!0},t),n=t=>(0,s.zi)({url:"/api/user!login.action",method:"get",isLoading:!0},t),r=t=>(0,s.zi)({url:"/api/idcode!execute.action",method:"get",isLoading:!1},t),d=t=>(0,s.zi)({url:"/api/cms!list.action",method:"get",isLoading:!1},t),g=t=>(0,s.zi)({url:"/api/localuser!registerTest.action",method:"get",isLoading:!0},t),c={getCurrentProjectInfo:o,registerUser:a,sendVerifyCode:r,loginUser:n,helpCenter:d,registerTest:g};e.A=c},50404:function(t,e,i){var s=i(60783),o=i(91655);const a=t=>(0,s.zi)({url:"/api/user!updateOldAndNewPsw.action",method:"get",isLoading:!0},t),n=t=>(0,s.zi)({url:"/api/user!updatepsw.action",method:"get",isLoading:!0},t),r=t=>(0,s.zi)({url:"/api/user!resetpsw.action",method:"get",isLoading:!0},t),d=t=>(0,s.zi)({url:"/api/user!setSafewordReg.action",method:"get",isLoading:!0},t),g=t=>(0,s.zi)({url:"/api/user!updateOldAndNewSafeword.action",method:"get",isLoading:!0},t),c=t=>(0,s.zi)({url:"/api/user!setSafeword.action",method:"get",isLoading:!0},t),l=t=>(0,s.zi)({url:"/api/localuser!save_email.action",method:"get",isLoading:!0},t),u=t=>(0,s.zi)({url:"/api/localuser!save_phone.action",method:"get",isLoading:!1},t),h=t=>(0,s.zi)({url:"/api/user!getVerifTarget.action",method:"get",isLoading:!1},t),p=t=>(0,s.zi)({url:"/api/user!getUserNameVerifTarget.action",method:"get",isLoading:!0},t),m=t=>(0,s.zi)({url:"/api/googleauth!get.action",method:"get",isLoading:!1},t),A=t=>(0,s.zi)({url:"/api/googleauth!bind.action",method:"get",isLoading:!0},t),f=t=>(0,s.zi)({url:"/api/user!get_safeword_apply.action",method:"get",isLoading:!0},t),v=t=>(0,s.zi)({url:"/api/user!set_safeword_apply.action",method:"get",isLoading:!0},t),C=t=>(0,s.zi)({url:"/api/localuser!get.action",method:"get",isLoading:!1},t),y=t=>(0,s.zi)({url:"/api/kycHighLevel!apply.action",method:"get",isLoading:!1},t),w=t=>(0,s.zi)({url:"/api/kycHighLevel!get.action",method:"get",isLoading:!1},t),L=t=>(0,s.zi)({url:"/api/banner!list.action",method:"get",isLoading:!1},t),z=t=>(0,s.zi)({url:"/api/cms!get.action",method:"get",isLoading:!1},t),_=t=>(0,s.zi)({url:"/api/news!list_v2.action",method:"get",isLoading:!1},t),b=t=>(0,s.zi)({url:"/api/news!list.action",method:"get",isLoading:!1},t),N=t=>(0,s.zi)({url:"/api/news!get.action",method:"get",isLoading:!1},t),$=t=>(0,s.zi)({url:"/api/news!list_v2_popup.action",method:"get",isLoading:!1},t),E=t=>(0,s.zi)({url:"/api/syspara!getSyspara.action",method:"get",isLoading:!1},t),T=t=>(0,o.A)({url:"/api/tConfiguration/getConfiguration",method:"get",isLoading:!1},t),x={getConfigurationByKey:T,changePassword:a,updatepsw:n,resetpsw:r,setSafewordReg:d,changeFundsPassword:g,getVerifTarget:h,getUserNameVerifTarget:p,setSafeword:c,bindEmail:l,bindPhone:u,getGoogleauth:m,bindGoogleauth:A,getSafewordApply:f,setSafewordApply:v,localuserAction:C,kycHighLevelApply:y,getKycHighLevel:w,getBanner:L,getCms:z,_getNewsList:_,_getNewsList1:b,_getNews:N,_getPopupNews:$,_getIsGoogleAuth:E};e.A=x},25139:function(t){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAhCAYAAADZPosTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGXSURBVHgBrdZNTsJAFAfw92asbj0CR4AbyAnUEwAbDSsl6gKNocYUEhXqxhDQBDiBegK4gRyBrTu3QDrPGTQsYNqZKfxXpY/80mnn4yFsED/s7e/RvKCupxh9+pXyBCFlGmE7Q4INATDzf2syY16OQ4poMJV9HkXfDBwThC9ZDbaM05AVhsIbqqfRlOWQo7w1aINZfxRbTP0wvsN6660gsS8bTAVNGJDox5TXsEQwESMYz7gnsdLPakk75Eare5YG04L11muNCJ7TYGugwoDI1/0RgT5MmMqODSbvD6qXp0WwCNpg15bYArx/6hxxxPdtYCqMEWS1FsDIFVuAAsRIV5Dv4qDR7ITgCt5elUck6E5XJMDzoNntgUOWKyV47PjIsKaHoX9zcVICF9CEgpqHbLdkmodraznxSRHGc0ye3NrNYRM0drcJmu0iAu/Fo9Hx6taVCJpQcN0P06J2Z8qDPFO43Zlif+pZom7nshH1cs69TUwb8hdBFedWpKqGxUReTp6Jrr7l7suhFYlDgfihup6iN1Cr5xeGRwOFSSu2JAAAAABJRU5ErkJggg=="}}]);
|