完善钱包模块,修改密码,导出助记词

This commit is contained in:
唐明明
2022-01-13 17:23:22 +08:00
parent ae0179af3c
commit 8eef1d2a4b
9 changed files with 220 additions and 152 deletions

View File

@@ -50,7 +50,7 @@
logs : [],
logsType : 0,
password : '',
passwordShow : true,
passwordShow : false,
passwordPages: ''
};
},
@@ -90,17 +90,18 @@
return
}
securityCheck(this.password).then(res => {
switch (this.passwordPages){
case 'privatekey':
this.$Router.push({name:'WalletPrivatekey', params: {password: this.password}})
break;
case 'ResetPassword':
this.$Router.push({name:'ResetPassword', params: {password: this.password}})
break;
case 'WalletMnemonic':
this.$Router.push({name:'WalletMnemonic', params: {password: this.password}})
break;
}
this.resetPassword()
console.log("密码验证通过")
// switch (this.passwordPages){
// case 'privatekey':
// this.$Router.push({name:'Privatekey', params: {password: this.password}})
// break;
// case 'resetPassword':
// this.$Router.push({name:'ResetPassword', params: {password: this.password}})
// break;
// }
}).catch(err => {
uni.showToast({
title: err.message,
@@ -145,18 +146,11 @@
itemList: ['导出助记词', '修改密码'],
success: (res) => {
switch (res.tapIndex) {
case 0:
this.$Router.push({
name: 'Transfer'
})
case 0:
this.showPrivatekey('WalletMnemonic')
break;
case 1:
this.$Router.push({
name: 'WalletCode'
})
break;
case 3:
this.showPrivatekey('resetPassword')
case 1:
this.showPrivatekey('ResetPassword')
break;
}
uni.hideLoading()
@@ -270,7 +264,7 @@
color: $main-color;
margin: 0 $margin;
border-radius: $radius-m;
font-size: $title-size;
font-size: $title-size-lg;
}
}
}