| | |
| | | <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> |
| | |
| | | }, |
| | | methods: { |
| | | bound(){ |
| | | console.log('123'); |
| | | if (this.verifyCode.length<6){ |
| | | this.$toast(this.$t('请输入6位验证码')); |
| | | return |
| | |
| | | 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));} |
| | |
| | | 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));} |