"use strict";(self["webpackChunkexchange"]=self["webpackChunkexchange"]||[]).push([[6246],{44269:function(t,s,e){e.r(s),e.d(s,{default:function(){return d}});var a=function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("div",{staticClass:"gooleVerify"},[a("div",{staticClass:"header"},[a("div",{on:{click:function(s){return t.$router.go(-1)}}},[a("img",{staticClass:"w-14 h-27",attrs:{src:e(25139),alt:""}})]),a("div",{staticClass:"textColor",on:{click:function(s){return t.$router.push("/finish")}}},[t._v(t._s(t.$t("跳过")))])]),a("Step",{attrs:{step:3}}),a("div",{staticClass:"title textColor"},[t._v(t._s(t.$t("安全绑定")))]),a("div",{staticClass:"pl-30 pr-30 text-center flex flex-col items-center justify-center mt40"},[a("div",{staticClass:"imgbox"},[a("canvas",{directives:[{name:"show",rawName:"v-show",value:!t.imgshow,expression:"!imgshow"}],attrs:{id:"QRcodeCanvas"}}),a("img",{directives:[{name:"show",rawName:"v-show",value:t.imgshow,expression:"imgshow"}],staticClass:"QRcodeImg",attrs:{src:t.google_auth_url,alt:""}})]),a("div",{staticClass:"code flex items-center justify-center textColor"},[t._v(t._s(t.google_auth_secret)+" "),a("img",{attrs:{src:e(29677),alt:""},on:{click:t.getGoogleauth}})]),a("p",{staticClass:"tips"},[t._v(t._s(t.$t("(请妥善备份密钥以防丢失)")))]),a("div",{staticClass:"copy textColor",on:{click:t.copy}},[t._v(t._s(t.$t("复制")))])]),a("div",{staticClass:"flex justify-between mt-48 mb-20"},[a("div",{staticClass:"textColor"},[t._v(t._s(t.$t("谷歌验证码")))]),a("div",{staticClass:"flex items-center"},[a("div",{staticClass:"colorMain",on:{click:function(s){t.value=""}}},[t._v(t._s(t.$t("清除")))]),a("div",{staticClass:"colorMain ml-30",on:{click:t.pastCont}},[t._v(t._s(t.$t("粘贴")))])])]),a("van-password-input",{attrs:{value:t.value,gutter:16,focused:t.showKeyboard,mask:!1},on:{focus:function(s){t.showKeyboard=!0}}}),a("van-number-keyboard",{attrs:{show:t.showKeyboard},on:{blur:function(s){t.showKeyboard=!1}},model:{value:t.value,callback:function(s){t.value=s},expression:"value"}}),a("div",{staticClass:"mt-20"}),a("div",{staticClass:"mt-44 bottom tabBackground textColor"},[a("p",[t._v(t._s(t.$t("注意事项")))]),a("p",[t._v(t._s(t.$t("1.下载Google身份验证器APP")))]),a("p",[t._v(t._s(t.$t("2.扫描上图二维码输入验证码完成绑定")))])]),a("div",{staticClass:"btn btnMain",on:{click:t.submit}},[t._v(t._s(t.$t("确定")))])],1)},o=[],i=(e(86514),e(8640)),l=(e(42175),e(17259)),c=(e(44114),e(45170)),n=e(50404),r=e(94348),h={props:{},components:{Step:c.A,[l.A.name]:l.A,[i.A.name]:i.A},data(){return{google_auth_secret:"",imgshow:!0,google_auth_url:"",value:"",showKeyboard:!1}},mounted(){this.getGoogleauth()},methods:{copy(){this.$copyText(this.google_auth_secret).then((t=>{this.$toast(this.$t("复制成功"))})).catch((t=>{}))},getGoogleauth(){n.A.getGoogleauth({}).then((t=>{this.google_auth_secret=t.data.google_auth_secret,this.google_auth_url=t.data.google_auth_url,r.log(t)})).catch((t=>{"ECONNABORTED"===t.code?this.$toast(this.$t("网络超时!")):void 0!==t.msg&&this.$toast(this.$t(t.msg))}))},bindGoogleauth(){n.A.bindGoogleauth({secret:this.google_auth_secret,code:this.value}).then((t=>{let s=t.data.google_auth_bind;s?(this.$toast(this.$t("绑定成功")),this.$router.push("/finish")):this.$toast(this.$t("绑定失败"))})).catch((t=>{"ECONNABORTED"===t.code?this.$toast(this.$t("网络超时!")):void 0!==t.msg&&this.$toast(this.$t(t.msg))}))},submit(){if(this.value.length<6)return this.$toast(this.$t("请输入验证码")),!1;this.bindGoogleauth()},async pastCont(){this.value=await navigator.clipboard.readText()}},watch:{value(t){6===t.length&&(this.showKeyboard=!1)}}},u=h,g=e(81656),v=(0,g.A)(u,a,o,!1,null,"30221bbc",null),d=v.exports},45170:function(t,s,e){e.d(s,{A:function(){return r}});var a=function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[e("div",{staticClass:"steps"},[e("div",{staticClass:"step",class:1==t.step||2==t.step||3==t.step||4==t.step?"green":""},[t._v("1")]),e("div",{staticClass:"line",class:1==t.step||2==t.step||3==t.step||4==t.step?"green":""}),e("div",{staticClass:"step",class:2==t.step||3==t.step||4==t.step?"green":""},[t._v("2")]),e("div",{staticClass:"line",class:3==t.step||4==t.step?"green":""}),e("div",{staticClass:"step",class:3==t.step||4==t.step?"green":""},[t._v("3")]),e("div",{staticClass:"line",class:4==t.step?"green":""}),e("div",{staticClass:"step",class:4==t.step?"green":""},[t._v("4")])]),e("div",{staticClass:"stepsText textColor"},[e("div",[t._v(t._s(t.$t("账号注册")))]),e("div",[t._v(t._s(t.$t("实名认证")))]),e("div",[t._v(t._s(t.$t("安全绑定")))]),e("div",[t._v(t._s(t.$t("去交易")))])])])},o=[],i={props:{step:{type:Number|String,default:1}},components:{},data(){return{}},methods:{}},l=i,c=e(81656),n=(0,c.A)(l,a,o,!1,null,"1b272119",null),r=n.exports},25139:function(t){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAhCAYAAADZPosTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGXSURBVHgBrdZNTsJAFAfw92asbj0CR4AbyAnUEwAbDSsl6gKNocYUEhXqxhDQBDiBegK4gRyBrTu3QDrPGTQsYNqZKfxXpY/80mnn4yFsED/s7e/RvKCupxh9+pXyBCFlGmE7Q4INATDzf2syY16OQ4poMJV9HkXfDBwThC9ZDbaM05AVhsIbqqfRlOWQo7w1aINZfxRbTP0wvsN6660gsS8bTAVNGJDox5TXsEQwESMYz7gnsdLPakk75Eare5YG04L11muNCJ7TYGugwoDI1/0RgT5MmMqODSbvD6qXp0WwCNpg15bYArx/6hxxxPdtYCqMEWS1FsDIFVuAAsRIV5Dv4qDR7ITgCt5elUck6E5XJMDzoNntgUOWKyV47PjIsKaHoX9zcVICF9CEgpqHbLdkmodraznxSRHGc0ye3NrNYRM0drcJmu0iAu/Fo9Hx6taVCJpQcN0P06J2Z8qDPFO43Zlif+pZom7nshH1cs69TUwb8hdBFedWpKqGxUReTp6Jrr7l7suhFYlDgfihup6iN1Cr5xeGRwOFSSu2JAAAAABJRU5ErkJggg=="}}]);