Browse Source

预防重复提交

master
vee 4 years ago
parent
commit
9f8c9758e8
  1. 16
      pages/menu/backUp/backUp4/index.vue
  2. 2
      unpackage/dist/dev/app-plus/app-service.js

16
pages/menu/backUp/backUp4/index.vue

@ -210,8 +210,10 @@
}
this.typename = uni.getStorageSync('createWalletName')
try {
this.$TronUtil.generateBtc(this.wordInfo)
this.$Token.generateBtc(this.wordInfo)
} catch (e) {
console.log(e)
uni.showToast({
title: this.$t('index').MnemonicsError,
icon: 'none',
@ -237,6 +239,18 @@
} else {
this.walletInfo = uni.getStorageSync('walletInfo');
for(var i=0;i<this.walletInfo[this.typename].length;i++){
if(this.walletInfo[this.typename][i]["mnemonic"]===this.wordInfo){
uni.showToast({
title: this.$t('index').beenimported,
icon: 'none',
duration: 1500
})
return;
}
}
console.log(this.walletInfo, 123654)
if (this.wordInfo == null) {
uni.showToast({

2
unpackage/dist/dev/app-plus/app-service.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save