|
@ -27,7 +27,7 @@ |
|
|
<view class="inputcon"> |
|
|
<view class="inputcon"> |
|
|
<input type="text" value="" placeholder-style="font-size: 30rpx; color: #D0D0D2;" |
|
|
<input type="text" value="" placeholder-style="font-size: 30rpx; color: #D0D0D2;" |
|
|
placeholder="Please enter the recipient address" class="input1" |
|
|
placeholder="Please enter the recipient address" class="input1" |
|
|
v-model="recipientAddress" /> |
|
|
v-model="transInfoPass.toAddress" /> |
|
|
<image src="../../../../static/tongyonh/Frame330.png" mode="aspectFit" class="img1"></image> |
|
|
<image src="../../../../static/tongyonh/Frame330.png" mode="aspectFit" class="img1"></image> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -44,15 +44,16 @@ |
|
|
{{coin.name}} |
|
|
{{coin.name}} |
|
|
</view> |
|
|
</view> |
|
|
<input type="text" value="" placeholder-style="font-size: 30rpx; color: #D0D0D2;" |
|
|
<input type="text" value="" placeholder-style="font-size: 30rpx; color: #D0D0D2;" |
|
|
placeholder="0.0000000" class="input3" v-model="transAmount" /> |
|
|
placeholder="0.0000000" class="input3" v-model="transInfoPass.amount" /> |
|
|
</view> |
|
|
</view> |
|
|
<text>≈</text> |
|
|
<text>≈</text> |
|
|
<view class="inputc flex"> |
|
|
<view class="inputc flex"> |
|
|
<view class="textt"> |
|
|
<view class="textt"> |
|
|
USD |
|
|
USD |
|
|
</view> |
|
|
</view> |
|
|
<input type="text" value="" placeholder-style="font-size: 30rpx; color: #D0D0D2;" |
|
|
<input type="text" value="" disabled="disabled" |
|
|
placeholder="0.0000000" class="input3" /> |
|
|
placeholder-style="font-size: 30rpx; color: #D0D0D2;" placeholder="0.0000000" |
|
|
|
|
|
class="input3" /> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="top flex bottom"> |
|
|
<view class="top flex bottom"> |
|
@ -74,7 +75,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="inputcon"> |
|
|
<view class="inputcon"> |
|
|
<input type="text" value="" placeholder-style="font-size: 30rpx; color: #D0D0D2;" |
|
|
<input type="text" value="" placeholder-style="font-size: 30rpx; color: #D0D0D2;" |
|
|
placeholder="Please enter a note (off-chain)" class="input1" /> |
|
|
placeholder="Please enter a note (off-chain)" v-model="transInfoPass.remark" class="input1" /> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
@ -114,7 +115,7 @@ |
|
|
Amount |
|
|
Amount |
|
|
</view> |
|
|
</view> |
|
|
<view class="text1"> |
|
|
<view class="text1"> |
|
|
{{transAmount}} {{coin.name}} |
|
|
{{transInfoPass.amount}} {{coin.name}} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="item"> |
|
|
<view class="item"> |
|
@ -122,7 +123,7 @@ |
|
|
Send address |
|
|
Send address |
|
|
</view> |
|
|
</view> |
|
|
<view class="text2"> |
|
|
<view class="text2"> |
|
|
{{coin.address}} |
|
|
{{transInfoPass.fromAddress}} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="item"> |
|
|
<view class="item"> |
|
@ -130,7 +131,7 @@ |
|
|
Receiving address |
|
|
Receiving address |
|
|
</view> |
|
|
</view> |
|
|
<view class="text2"> |
|
|
<view class="text2"> |
|
|
{{recipientAddress}} |
|
|
{{transInfoPass.toAddress}} |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="item"> |
|
|
<view class="item"> |
|
@ -156,7 +157,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<u-mask z-index="10" :show="show"></u-mask> |
|
|
<u-mask z-index="10" :show="show" @click="cancelAll"></u-mask> |
|
|
<!-- <u-mask z-index="1000" :show="show2" @click="show2 = false"></u-mask> --> |
|
|
<!-- <u-mask z-index="1000" :show="show2" @click="show2 = false"></u-mask> --> |
|
|
<view class="zhiwen_con" v-if="showFinger"> |
|
|
<view class="zhiwen_con" v-if="showFinger"> |
|
|
<view class="tiao" @click="cancel"> |
|
|
<view class="tiao" @click="cancel"> |
|
@ -170,7 +171,7 @@ |
|
|
Touch the fingerprint sensor |
|
|
Touch the fingerprint sensor |
|
|
</view> |
|
|
</view> |
|
|
<view class="flex con"> |
|
|
<view class="flex con"> |
|
|
<view class="textt1" @click="goPassword" v-if="!passShow"> |
|
|
<view class="textt1" @click="goPassword"> |
|
|
Use Password |
|
|
Use Password |
|
|
</view> |
|
|
</view> |
|
|
<view class="textt2" @click="cancel"> |
|
|
<view class="textt2" @click="cancel"> |
|
@ -213,14 +214,14 @@ |
|
|
<view class="text1 green"> |
|
|
<view class="text1 green"> |
|
|
Fingerprint recognized. |
|
|
Fingerprint recognized. |
|
|
</view> |
|
|
</view> |
|
|
<!-- <view class="flex con"> |
|
|
<view class="flex con"> |
|
|
<view class="textt1"> |
|
|
<view class="textt1"> |
|
|
Use Password |
|
|
Use Password |
|
|
</view> |
|
|
</view> |
|
|
<view class="textt2"> |
|
|
<view class="textt2"> |
|
|
Confirm |
|
|
Confirm |
|
|
</view> |
|
|
</view> |
|
|
</view> --> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
@ -249,9 +250,6 @@ |
|
|
show2: false, |
|
|
show2: false, |
|
|
showFinger: false, |
|
|
showFinger: false, |
|
|
showBottom: false, |
|
|
showBottom: false, |
|
|
addressInfo: {}, |
|
|
|
|
|
recipientAddress: '', |
|
|
|
|
|
transAmount: '', |
|
|
|
|
|
fingerSuccess: false, |
|
|
fingerSuccess: false, |
|
|
fingerFail: false, |
|
|
fingerFail: false, |
|
|
// 是否显示使用密码,有设置指纹就不显示 |
|
|
// 是否显示使用密码,有设置指纹就不显示 |
|
@ -259,13 +257,82 @@ |
|
|
// 不用指纹去密码页面存的信息 |
|
|
// 不用指纹去密码页面存的信息 |
|
|
transInfoPass: { |
|
|
transInfoPass: { |
|
|
fromAddress: '', |
|
|
fromAddress: '', |
|
|
toAddress: "", |
|
|
toAddress: '1', |
|
|
privateKey: '', |
|
|
privateKey: '', |
|
|
amount: '', |
|
|
amount: '1', |
|
|
|
|
|
remark:'1', |
|
|
|
|
|
contractAddress:'', |
|
|
|
|
|
password:'' |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
transaction() { |
|
|
|
|
|
let that=this; |
|
|
|
|
|
if (this.coin.type === 'ETH') { |
|
|
|
|
|
this.$EthUtil.transaction(this.transInfoPass.fromAddress, this.transInfoPass.privateKey, |
|
|
|
|
|
this.transInfoPass.toAddress, this.transInfoPass.amount, this.transInfoPass.contractAddress, |
|
|
|
|
|
function(hash, err) { |
|
|
|
|
|
if (!err) { |
|
|
|
|
|
console.log(2222211111) |
|
|
|
|
|
that.showFinger = false |
|
|
|
|
|
that.showBottom = false; |
|
|
|
|
|
that.fingerSuccess = true; |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: 'Transfer succeeded', |
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
duration: 1500 |
|
|
|
|
|
}) |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
that.fingerSuccess = false; |
|
|
|
|
|
uni.reLaunch({ |
|
|
|
|
|
url: '/pages/menu/wallet/index' |
|
|
|
|
|
}) |
|
|
|
|
|
}, 1000) |
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
|
|
console.log(err, 'cuowu') |
|
|
|
|
|
that.showFinger = false; |
|
|
|
|
|
that.showBottom = true; |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: 'Transfer failed, please confirm the information is correct', |
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
duration: 1500 |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (this.coin.type === 'TRX') { |
|
|
|
|
|
this.$TronUtil.transaction(this.transInfoPass.fromAddress, this.transInfoPass.privateKey, |
|
|
|
|
|
this.transInfoPass.toAddress, this.transInfoPass.amount, this.transInfoPass.remark, this.transInfoPass.contractAddress) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
console.log(1212121212121212) |
|
|
|
|
|
that.showFinger = false |
|
|
|
|
|
that.showBottom = false; |
|
|
|
|
|
that.fingerSuccess = true; |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: 'Transfer succeeded', |
|
|
|
|
|
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: 'Transfer failed, please confirm the information is correct', |
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
duration: 1500 |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
cancelAll() { |
|
|
cancelAll() { |
|
|
this.show = false; |
|
|
this.show = false; |
|
|
this.showBottom = false; |
|
|
this.showBottom = false; |
|
@ -284,13 +351,20 @@ |
|
|
// 不用指纹去密码页 |
|
|
// 不用指纹去密码页 |
|
|
goPassword() { |
|
|
goPassword() { |
|
|
this.printCancel(); |
|
|
this.printCancel(); |
|
|
|
|
|
this.show = false; |
|
|
|
|
|
this.showBottom=false; |
|
|
console.log(111) |
|
|
console.log(111) |
|
|
|
|
|
uni.setStorageSync('transInfoPass', this.transInfoPass) |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: '/pages/menu/sendToken/enPassword/index' |
|
|
url: '/pages/menu/sendToken/enPassword/index' |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
// 唤起指纹 |
|
|
// 唤起指纹 |
|
|
confirmTo(type) { |
|
|
confirmTo(type) { |
|
|
|
|
|
if(!this.passShow){ |
|
|
|
|
|
this.goPassword(); |
|
|
|
|
|
}else{ |
|
|
|
|
|
console.log('点击提交') |
|
|
if (type == 'try') { |
|
|
if (type == 'try') { |
|
|
this.fingerFail = false; |
|
|
this.fingerFail = false; |
|
|
} |
|
|
} |
|
@ -298,15 +372,11 @@ |
|
|
this.show = true |
|
|
this.show = true |
|
|
this.showFinger = true |
|
|
this.showFinger = true |
|
|
this.showBottom = false; |
|
|
this.showBottom = false; |
|
|
// 存储去密码页面的信息 |
|
|
|
|
|
this.transInfoPass.fromAddress = this.addressInfo.address; |
|
|
|
|
|
this.transInfoPass.toAddress = this.recipientAddress; |
|
|
|
|
|
this.transInfoPass.privateKey = this.addressInfo.privateKey; |
|
|
|
|
|
this.transInfoPass.amount = this.transAmount; |
|
|
|
|
|
console.log(this.transInfoPass, 444) |
|
|
|
|
|
// 存储去密码页面的信息 |
|
|
|
|
|
uni.setStorageSync('transInfoPass', this.transInfoPass) |
|
|
|
|
|
this.fingerprint(); |
|
|
this.fingerprint(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
back() { |
|
|
back() { |
|
@ -316,12 +386,12 @@ |
|
|
}, |
|
|
}, |
|
|
// 点击获取所有钱 |
|
|
// 点击获取所有钱 |
|
|
forAll() { |
|
|
forAll() { |
|
|
this.transAmount = this.coin.balance |
|
|
this.transInfoPass.amount = this.coin.balance |
|
|
}, |
|
|
}, |
|
|
// 确认提交 |
|
|
// 确认提交 |
|
|
Confirm() { |
|
|
Confirm() { |
|
|
// 做判断 |
|
|
// 做判断 |
|
|
if (this.transAmount == '') { |
|
|
if (this.transInfoPass.amount == '') { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: 'Please enter the transfer amount', |
|
|
title: 'Please enter the transfer amount', |
|
|
icon: 'none', |
|
|
icon: 'none', |
|
@ -329,7 +399,7 @@ |
|
|
}) |
|
|
}) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (this.recipientAddress == '') { |
|
|
if (this.transInfoPass.toAddress == '') { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: 'Please enter the receiving address', |
|
|
title: 'Please enter the receiving address', |
|
|
icon: 'none', |
|
|
icon: 'none', |
|
@ -337,7 +407,7 @@ |
|
|
}) |
|
|
}) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (this.transAmount == '' < 0) { |
|
|
if (Number(this.transInfoPass.amount) == '' < 0) { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: 'The entered amount cannot be less than 0', |
|
|
title: 'The entered amount cannot be less than 0', |
|
|
icon: 'none', |
|
|
icon: 'none', |
|
@ -345,7 +415,7 @@ |
|
|
}) |
|
|
}) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if( this.transAmount>this.coin.balance){ |
|
|
if (Number(this.transInfoPass.amount) > this.coin.balance) { |
|
|
uni.showToast({ |
|
|
uni.showToast({ |
|
|
title: 'Sorry, your credit is running low', |
|
|
title: 'Sorry, your credit is running low', |
|
|
icon: 'none', |
|
|
icon: 'none', |
|
@ -360,7 +430,7 @@ |
|
|
printCancel() { |
|
|
printCancel() { |
|
|
this.showFinger = false; |
|
|
this.showFinger = false; |
|
|
console.log(this.showFinger, 4444) |
|
|
console.log(this.showFinger, 4444) |
|
|
plus.fingerprint.cancel(); |
|
|
//plus.fingerprint.cancel(); |
|
|
console.log(this.showFinger, 4444) |
|
|
console.log(this.showFinger, 4444) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
@ -412,126 +482,8 @@ |
|
|
// #ifdef APP-PLUS |
|
|
// #ifdef APP-PLUS |
|
|
plus.fingerprint.authenticate(function() { |
|
|
plus.fingerprint.authenticate(function() { |
|
|
plus.nativeUI.closeWaiting(); //兼容Android平台关闭等待框 |
|
|
plus.nativeUI.closeWaiting(); //兼容Android平台关闭等待框 |
|
|
console.log(that.transInfoPass,5656) |
|
|
|
|
|
console.log(that.addressInfo,56556656) |
|
|
|
|
|
if (that.addressInfo.type == 'TRX') { |
|
|
|
|
|
console.log(that.addressInfo.type,11111) |
|
|
|
|
|
console.log(that.transInfoPass,2222) |
|
|
|
|
|
// if (!this.contractAddress) { |
|
|
|
|
|
// 指纹通过转账成功 |
|
|
|
|
|
that.$TronUtil.sendTransaction(that.transInfoPass.fromAddress,that.transInfoPass.privateKey,that.transInfoPass.toAddress,that.transInfoPass.amount ) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
console.log(1212121212121212) |
|
|
|
|
|
that.showFinger = false |
|
|
|
|
|
that.showBottom = false; |
|
|
|
|
|
that.fingerSuccess = true; |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: 'Transfer succeeded', |
|
|
|
|
|
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: 'Transfer failed, please confirm the information is correct', |
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
duration: 1500 |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
// }else{ |
|
|
|
|
|
// this.$TronUtil.sendRawTransaction(this.info.address, this.info.privateKey, this.toAddress, this.toValue,'',this.contractAddress ) |
|
|
|
|
|
// .then((res) => { |
|
|
|
|
|
// uni.showToast({ |
|
|
|
|
|
// title: 'Successfully', |
|
|
|
|
|
// icon: 'success', |
|
|
|
|
|
// duration: 2000 |
|
|
|
|
|
// }) |
|
|
|
|
|
// this.show2 = false; |
|
|
|
|
|
// uni.reLaunch({ |
|
|
|
|
|
// url: '/pages/menu/wallet/index' |
|
|
|
|
|
// }) |
|
|
|
|
|
// }).catch(err => { |
|
|
|
|
|
// console.log(err) |
|
|
|
|
|
// uni.showToast({ |
|
|
|
|
|
// title: err, |
|
|
|
|
|
// icon: 'none', |
|
|
|
|
|
// duration: 2000 |
|
|
|
|
|
// }) |
|
|
|
|
|
// }) |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (that.addressInfo.type == 'ETH') { |
|
|
|
|
|
console.log(that.addressInfo.type,11111) |
|
|
|
|
|
console.log(that.transInfoPass,2222) |
|
|
|
|
|
// if (!this.contractAddress) { |
|
|
|
|
|
// 指纹通过转账成功 |
|
|
|
|
|
that.$EthUtil.transaction(that.transInfoPass.fromAddress,that.transInfoPass.privateKey,that.transInfoPass.toAddress,that.transInfoPass.amount ) |
|
|
|
|
|
.then((res) => { |
|
|
|
|
|
console.log(2222211111) |
|
|
|
|
|
that.showFinger = false |
|
|
|
|
|
that.showBottom = false; |
|
|
|
|
|
that.fingerSuccess = true; |
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
title: 'Transfer succeeded', |
|
|
|
|
|
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: 'Transfer failed, please confirm the information is correct', |
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
duration: 1500 |
|
|
|
|
|
}) |
|
|
|
|
|
}) |
|
|
|
|
|
// }else{ |
|
|
|
|
|
// this.$TronUtil.sendRawTransaction(this.info.address, this.info.privateKey, this.toAddress, this.toValue,'',this.contractAddress ) |
|
|
|
|
|
// .then((res) => { |
|
|
|
|
|
// uni.showToast({ |
|
|
|
|
|
// title: 'Successfully', |
|
|
|
|
|
// icon: 'success', |
|
|
|
|
|
// duration: 2000 |
|
|
|
|
|
// }) |
|
|
|
|
|
// this.show2 = false; |
|
|
|
|
|
// uni.reLaunch({ |
|
|
|
|
|
// url: '/pages/menu/wallet/index' |
|
|
|
|
|
// }) |
|
|
|
|
|
// }).catch(err => { |
|
|
|
|
|
// console.log(err) |
|
|
|
|
|
// uni.showToast({ |
|
|
|
|
|
// title: err, |
|
|
|
|
|
// icon: 'none', |
|
|
|
|
|
// duration: 2000 |
|
|
|
|
|
// }) |
|
|
|
|
|
// }) |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
that.transaction() |
|
|
|
|
|
|
|
|
}, function(e) { |
|
|
}, function(e) { |
|
|
switch (e.code) { |
|
|
switch (e.code) { |
|
@ -609,14 +561,16 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
onLoad() { |
|
|
onLoad() { |
|
|
// 拿从地址页面传过来的接受地址 |
|
|
|
|
|
if(uni.getStorageSync('myTransAddress')){ |
|
|
|
|
|
this.recipientAddress=uni.getStorageSync('myTransAddress').address |
|
|
|
|
|
// 拿完清掉 |
|
|
|
|
|
uni.removeStorageSync('myTransAddress') |
|
|
|
|
|
} |
|
|
|
|
|
this.coin = uni.getStorageSync('coin') |
|
|
this.coin = uni.getStorageSync('coin') |
|
|
|
|
|
|
|
|
// 每次进来拿缓存里有没有指纹 |
|
|
// 每次进来拿缓存里有没有指纹 |
|
|
|
|
|
this.transInfoPass.fromAddress=this.coin.address; |
|
|
|
|
|
this.transInfoPass.privateKey=this.coin.privateKey; |
|
|
|
|
|
this.transInfoPass.password=this.coin.password; |
|
|
|
|
|
this.transInfoPass.contractAddress=this.coin.contractAddress |
|
|
|
|
|
this.transInfoPass.type=this.coin.type; |
|
|
|
|
|
console.log(this.transInfoPass,'指纹') |
|
|
if (uni.getStorageSync('fingerPass')) { |
|
|
if (uni.getStorageSync('fingerPass')) { |
|
|
this.passShow = uni.getStorageSync('fingerPass') |
|
|
this.passShow = uni.getStorageSync('fingerPass') |
|
|
} |
|
|
} |
|
|