bitcooo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

98 lines
1.7 KiB

<template>
<view class="">
<navigation :showBack="true" :bgnum="false">
<text class="big_title">
{{i18n.backupMneTit}}
</text>
</navigation>
<view class="main">
<view class="title">
{{i18n.keepyourmnemonics}}
</view>
<u-message-input @finish="finish" :inactive-color="info?'#F16063':'#E0E5F2'" active-color="#5B53FF" :width="94" :maxlength="6" mode="box" :focus="fes" :dot-fill="true" @change="back"></u-message-input>
<view class="infoText" v-if="info">
{{i18n.Incorrectpassword}}
</view>
</view>
</view>
</view>
</template>
<script>
import cont from "@/components/navigation/navigation.vue"
export default {
data() {
return {
password:'',
msg:'',
msgLength:0,
fes:false,
borNum:true,
borNum2:false,
info:false,
word:{},
walletInfo:{},
userObj:{},
}
},
watch:{
},
computed: {
i18n() {
return this.$t('index')
},
},
methods: {
// 删除触发
back(e){
if(e.length<6){
this.info=false;
}
},
// 比较
// 第一次存密码
finish(e) {
this.password=e
var that=this;
if(e!=this.userObj.password){
this.info=true
}else{
uni.showToast({
title: this.$t('index').correct,
icon: 'success',
duration: 1500,
})
console.log(this.userObj.mnemonic,55555)
uni.setStorageSync('word',this.userObj.mnemonic,)
setTimeout(()=>{
uni.navigateTo({
url:'../backUpWord/index'
})
},1500)
}
},
},
onLoad: function() {
this.userObj=uni.getStorageSync('backWordInfo')
}
};
</script>
<style scoped>
</style>
<style>
@import './index.css';
</style>