|
|
@ -336,34 +336,35 @@ |
|
|
|
} |
|
|
|
}) |
|
|
|
} else if (this.coin.type === 'TRX') { |
|
|
|
this.$TronUtil.transaction(this.transaction, this.transInfoPass.privateKey, this.transInfoPass |
|
|
|
.contractAddress) |
|
|
|
.then((res) => { |
|
|
|
console.log(1212121212121212) |
|
|
|
that.showFinger = false |
|
|
|
that.showBottom = false; |
|
|
|
that.fingerSuccess = true; |
|
|
|
uni.showToast({ |
|
|
|
title: this.$t('index').Transfersucceeded, |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
|
setTimeout(() => { |
|
|
|
that.fingerSuccess = false; |
|
|
|
uni.reLaunch({ |
|
|
|
url: '/pages/menu/wallet/index' |
|
|
|
}) |
|
|
|
}, 1000) |
|
|
|
}).catch(err => { |
|
|
|
console.log(err, 'cuowu') |
|
|
|
that.showFinger = false; |
|
|
|
that.showBottom = true; |
|
|
|
uni.showToast({ |
|
|
|
title: this.$t('index').Transferfailedconfirm, |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
// this.$TronUtil.transaction(this.transaction, this.transInfoPass.privateKey, this.transInfoPass |
|
|
|
// .contractAddress) |
|
|
|
// .then((res) => { |
|
|
|
// console.log(1212121212121212) |
|
|
|
// that.showFinger = false |
|
|
|
// that.showBottom = false; |
|
|
|
// that.fingerSuccess = true; |
|
|
|
// uni.showToast({ |
|
|
|
// title: this.$t('index').Transfersucceeded, |
|
|
|
// icon: 'none', |
|
|
|
// duration: 1500 |
|
|
|
// }) |
|
|
|
// setTimeout(() => { |
|
|
|
// that.fingerSuccess = false; |
|
|
|
// uni.reLaunch({ |
|
|
|
// url: '/pages/menu/wallet/index' |
|
|
|
// }) |
|
|
|
// }, 1000) |
|
|
|
// }).catch(err => { |
|
|
|
// console.log(err, 'cuowu') |
|
|
|
// that.showFinger = false; |
|
|
|
// that.showBottom = true; |
|
|
|
// uni.showToast({ |
|
|
|
// title: this.$t('index').Transferfailedconfirm, |
|
|
|
// icon: 'none', |
|
|
|
// duration: 1500 |
|
|
|
// }) |
|
|
|
// }) |
|
|
|
}else if (this.coin.type === 'BTC') { |
|
|
|
this.$BtcUtil.sendTransaction(this.transInfoPass.fromAddress, |
|
|
|
this.transInfoPass.toAddress, this.transInfoPass.amount, this.transInfoPass.privateKey) |
|
|
@ -451,6 +452,7 @@ |
|
|
|
}, |
|
|
|
// 确认提交 |
|
|
|
Confirm() { |
|
|
|
|
|
|
|
// 做判断 |
|
|
|
// debugger |
|
|
|
if (this.transInfoPass.amount == '') { |
|
|
@ -691,11 +693,7 @@ |
|
|
|
|
|
|
|
} |
|
|
|
// #endif |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
goAddress(text) { |
|
|
|
uni.setStorageSync('transInfoPass',this.transInfoPass) |
|
|
|
uni.setStorageSync('sourcePage', '/pages/menu/sendToken/transfer/index'); |
|
|
@ -722,6 +720,7 @@ |
|
|
|
this.transInfoPass.privateKey = this.coin.privateKey; |
|
|
|
this.transInfoPass.password = this.coin.password; |
|
|
|
this.transInfoPass.contractAddress = this.coin.contractAddress |
|
|
|
console.log( this.transInfoPass.contractAddress,888888888888888888888) |
|
|
|
this.transInfoPass.type = this.coin.type; |
|
|
|
console.log(this.transInfoPass, '指纹') |
|
|
|
if (uni.getStorageSync('fingerPass')) { |
|
|
|