交易所前端蓝色ui, 4.5 jiem
lxf
2025-04-18 66a33e936d39ec4db7fdffed5d646e044ccc43e9
src/page/register/verify.vue
@@ -1,7 +1,7 @@
<template>
    <div class="verify">
        <div class="header">
            <div @click="$router.go(-1)"><img src="../../assets/image/assets-center/left-arrow.png" alt=""
            <div v-if="!account" @click="$router.go(-1)"><img src="../../assets/image/assets-center/left-arrow.png" alt=""
                    class="w-14 h-27" /></div>
<!--            <div class="textColor" @click="$router.push('/setFond')">{{ $t('跳过') }}</div>-->
        </div>
@@ -48,6 +48,7 @@
        },
        methods: {
            bound(){
            console.log('123');
                if (this.verifyCode.length<6){
                    this.$toast(this.$t('请输入6位验证码'));
                    return
@@ -72,7 +73,8 @@
                    verifcode: this.verifyCode
                }).then((res) => {
                    this.$toast(this.$t('绑定成功'));
                    this.$router.push('/setFond')
                    // this.$router.push('/setFond')
               this.setSafewordReg()
                }).catch((error) => {
                    if(error.code === 'ECONNABORTED'){this.$toast(this.$t('网络超时!'));}
                    else if(error.msg !== undefined){this.$toast(this.$t(error.msg));}  
@@ -84,7 +86,19 @@
                    verifcode: this.verifyCode
                }).then((res) => {
                    this.$toast(this.$t('绑定成功'));
                    this.$router.push('/setFond')
                    // this.$router.push('/setFond')
               this.setSafewordReg()
                }).catch((error) => {
                    if(error.code === 'ECONNABORTED'){this.$toast(this.$t('网络超时!'));}
                    else if(error.msg !== undefined){this.$toast(this.$t(error.msg));}
                });
            },
         setSafewordReg() {
             Axios.setSafewordReg({
                 safeword: '123456'
             }).then((res) => {
                 // this.$toast(this.$t('绑定成功'));
                 this.$router.push('/home')
                }).catch((error) => {
                    if(error.code === 'ECONNABORTED'){this.$toast(this.$t('网络超时!'));}
                    else if(error.msg !== undefined){this.$toast(this.$t(error.msg));}