"use strict";(self["webpackChunkexchange"]=self["webpackChunkexchange"]||[]).push([[9156],{71800:function(t,e,i){i.r(e),i.d(e,{default:function(){return u}});var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"forget"},[a("div",{staticClass:"header"},[a("div",{on:{click:function(e){return t.$router.go(-1)}}},[a("img",{staticClass:"w-14 h-27",attrs:{src:i(25139),alt:""}})])]),a("div",{staticClass:"title textColor"},[t._v(t._s(t.$t("重置登录密码")))]),a("div",{staticClass:"flex re-tab text-grey"},[a("div",{class:0==t.activeIndex?"active":"",on:{click:function(e){return t.changeIndex(0)}}},[t._v(t._s(t.$t("邮箱")))]),a("div",{class:1==t.activeIndex?"active":"",on:{click:function(e){return t.changeIndex(1)}}},[t._v(t._s(t.$t("手机号")))]),a("div",{class:2==t.activeIndex?"active":"",on:{click:function(e){return t.changeIndex(2)}}},[t._v(t._s(t.$t("谷歌验证")))])]),a("ExInput",{attrs:{label:t.$t("账号"),placeholderText:t.$t("请输入账号"),dialCode:t.dialCode,area:t.isArea,icon:t.icon},on:{selectArea:t.onSelectArea},model:{value:t.account,callback:function(e){t.account=e},expression:"account"}}),a("div",{staticClass:"btn",on:{click:t.next}},[t._v(t._s(t.$t("下一步")))]),a("nationality-list",{ref:"controlChild",attrs:{title:t.$t("选择区域码")},on:{getName:function(e){return t.getName(arguments)}}})],1)},s=[],o=(i(44114),i(47755)),n=i(50404),r=i(53963),g={props:{},components:{ExInput:o.A,nationalityList:r.A},data(){return{account:"",activeIndex:0,isArea:!1,dialCode:0,icon:""}},mounted(){},methods:{changeIndex(t){this.activeIndex=t,this.isArea=1==t},next(){""!=this.account?this.getUserNameVerifTarget():this.$toast(this.$t("请输入账号"))},getUserNameVerifTarget(){let t;0==this.activeIndex?t=2:1==this.activeIndex?t=1:2==this.activeIndex&&(t=3),n.A.getUserNameVerifTarget({username:1==t?`${this.dialCode}${this.account}`:this.account,verifcode_type:t}).then((e=>{if(1==t&&!e.data.phone_authority)return this.$toast(this.$t("未绑定手机号")),!1;if(2==t&&!e.data.email_authority)return this.$toast(this.$t("未绑定邮箱")),!1;if(3==t&&!e.data.google_auth_bind)return this.$toast(this.$t("未绑定谷歌验证器")),!1;let i;1==t?i=e.data.phone:2==t&&(i=e.data.email),this.$router.push({name:"safeVerify",query:{type:t,account:i,username:this.account}})})).catch((t=>{"ECONNABORTED"===t.code?this.$toast(this.$t("网络超时!")):void 0!==t.msg&&this.$toast(this.$t(t.msg))}))},onSelectArea(){this.openBtn()},openBtn(){this.$refs.controlChild.open()},getName(t){this.icon=t[1],this.dialCode=t[2]}}},c=g,d=i(81656),l=(0,d.A)(c,a,s,!1,null,"004489dc",null),u=l.exports},50404:function(t,e,i){var a=i(60783),s=i(91655);const o=t=>(0,a.zi)({url:"/api/user!updateOldAndNewPsw.action",method:"get",isLoading:!0},t),n=t=>(0,a.zi)({url:"/api/user!updatepsw.action",method:"get",isLoading:!0},t),r=t=>(0,a.zi)({url:"/api/user!resetpsw.action",method:"get",isLoading:!0},t),g=t=>(0,a.zi)({url:"/api/user!setSafewordReg.action",method:"get",isLoading:!0},t),c=t=>(0,a.zi)({url:"/api/user!updateOldAndNewSafeword.action",method:"get",isLoading:!0},t),d=t=>(0,a.zi)({url:"/api/user!setSafeword.action",method:"get",isLoading:!0},t),l=t=>(0,a.zi)({url:"/api/localuser!save_email.action",method:"get",isLoading:!0},t),u=t=>(0,a.zi)({url:"/api/localuser!save_phone.action",method:"get",isLoading:!1},t),h=t=>(0,a.zi)({url:"/api/user!getVerifTarget.action",method:"get",isLoading:!1},t),p=t=>(0,a.zi)({url:"/api/user!getUserNameVerifTarget.action",method:"get",isLoading:!0},t),A=t=>(0,a.zi)({url:"/api/googleauth!get.action",method:"get",isLoading:!1},t),m=t=>(0,a.zi)({url:"/api/googleauth!bind.action",method:"get",isLoading:!0},t),f=t=>(0,a.zi)({url:"/api/user!get_safeword_apply.action",method:"get",isLoading:!0},t),v=t=>(0,a.zi)({url:"/api/user!set_safeword_apply.action",method:"get",isLoading:!0},t),w=t=>(0,a.zi)({url:"/api/localuser!get.action",method:"get",isLoading:!1},t),x=t=>(0,a.zi)({url:"/api/kycHighLevel!apply.action",method:"get",isLoading:!1},t),C=t=>(0,a.zi)({url:"/api/kycHighLevel!get.action",method:"get",isLoading:!1},t),L=t=>(0,a.zi)({url:"/api/banner!list.action",method:"get",isLoading:!1},t),N=t=>(0,a.zi)({url:"/api/cms!get.action",method:"get",isLoading:!1},t),_=t=>(0,a.zi)({url:"/api/news!list_v2.action",method:"get",isLoading:!1},t),y=t=>(0,a.zi)({url:"/api/news!list.action",method:"get",isLoading:!1},t),z=t=>(0,a.zi)({url:"/api/news!get.action",method:"get",isLoading:!1},t),I=t=>(0,a.zi)({url:"/api/news!list_v2_popup.action",method:"get",isLoading:!1},t),$=t=>(0,a.zi)({url:"/api/syspara!getSyspara.action",method:"get",isLoading:!1},t),b=t=>(0,s.A)({url:"/api/tConfiguration/getConfiguration",method:"get",isLoading:!1},t),T={getConfigurationByKey:b,changePassword:o,updatepsw:n,resetpsw:r,setSafewordReg:g,changeFundsPassword:c,getVerifTarget:h,getUserNameVerifTarget:p,setSafeword:d,bindEmail:l,bindPhone:u,getGoogleauth:A,bindGoogleauth:m,getSafewordApply:f,setSafewordApply:v,localuserAction:w,kycHighLevelApply:x,getKycHighLevel:C,getBanner:L,getCms:N,_getNewsList:_,_getNewsList1:y,_getNews:z,_getPopupNews:I,_getIsGoogleAuth:$};e.A=T},25139:function(t){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAhCAYAAADZPosTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGXSURBVHgBrdZNTsJAFAfw92asbj0CR4AbyAnUEwAbDSsl6gKNocYUEhXqxhDQBDiBegK4gRyBrTu3QDrPGTQsYNqZKfxXpY/80mnn4yFsED/s7e/RvKCupxh9+pXyBCFlGmE7Q4INATDzf2syY16OQ4poMJV9HkXfDBwThC9ZDbaM05AVhsIbqqfRlOWQo7w1aINZfxRbTP0wvsN6660gsS8bTAVNGJDox5TXsEQwESMYz7gnsdLPakk75Eare5YG04L11muNCJ7TYGugwoDI1/0RgT5MmMqODSbvD6qXp0WwCNpg15bYArx/6hxxxPdtYCqMEWS1FsDIFVuAAsRIV5Dv4qDR7ITgCt5elUck6E5XJMDzoNntgUOWKyV47PjIsKaHoX9zcVICF9CEgpqHbLdkmodraznxSRHGc0ye3NrNYRM0drcJmu0iAu/Fo9Hx6taVCJpQcN0P06J2Z8qDPFO43Zlif+pZom7nshH1cs69TUwb8hdBFedWpKqGxUReTp6Jrr7l7suhFYlDgfihup6iN1Cr5xeGRwOFSSu2JAAAAABJRU5ErkJggg=="}}]);