|
|
@ -26,7 +26,7 @@ |
|
|
|
</view> |
|
|
|
<view class="inputcon"> |
|
|
|
<input type="text" value="" placeholder-style="font-size: 30rpx; color: #D0D0D2;" |
|
|
|
placeholder="Please enter the recipient address" class="input1" |
|
|
|
:placeholder="teee" class="input1" |
|
|
|
v-model="transInfoPass.toAddress" /> |
|
|
|
<image src="../../../../static/tongyonh/Frame330.png" mode="aspectFit" class="img1" @click="scanCode"></image> |
|
|
|
</view> |
|
|
@ -75,7 +75,7 @@ |
|
|
|
</view> |
|
|
|
<view class="inputcon"> |
|
|
|
<input type="text" value="" placeholder-style="font-size: 30rpx; color: #D0D0D2;" |
|
|
|
placeholder="Please enter a note (off-chain)" v-model="transInfoPass.remark" |
|
|
|
:placeholder="teee2" v-model="transInfoPass.remark" |
|
|
|
class="input1" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -269,7 +269,9 @@ |
|
|
|
balancePrice: 0, |
|
|
|
fee: 0 |
|
|
|
}, |
|
|
|
transaction: {} |
|
|
|
transaction: {}, |
|
|
|
teee:this.$t('index').Pleaserecipientaddress, |
|
|
|
teee2:this.$t('index').offchain, |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
@ -290,7 +292,7 @@ |
|
|
|
that.showBottom = false; |
|
|
|
that.fingerSuccess = true; |
|
|
|
uni.showToast({ |
|
|
|
title: 'Transfer succeeded', |
|
|
|
title: this.$t('index').Transfersucceeded, |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
@ -306,7 +308,7 @@ |
|
|
|
that.showFinger = false; |
|
|
|
that.showBottom = true; |
|
|
|
uni.showToast({ |
|
|
|
title: 'Transfer failed, please confirm the information is correct', |
|
|
|
title: this.$t('index').Transferfailedconfirm, |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
@ -321,7 +323,7 @@ |
|
|
|
that.showBottom = false; |
|
|
|
that.fingerSuccess = true; |
|
|
|
uni.showToast({ |
|
|
|
title: 'Transfer succeeded', |
|
|
|
title: this.$t('index').Transfersucceeded, |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
@ -336,7 +338,7 @@ |
|
|
|
that.showFinger = false; |
|
|
|
that.showBottom = true; |
|
|
|
uni.showToast({ |
|
|
|
title: 'Transfer failed, please confirm the information is correct', |
|
|
|
title: this.$t('index').Transferfailedconfirm, |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
@ -428,7 +430,7 @@ |
|
|
|
} |
|
|
|
if (Number(this.transInfoPass.amount) > this.coin.balance) { |
|
|
|
uni.showToast({ |
|
|
|
title: 'Sorry, your credit is running low', |
|
|
|
title: this.$t('index').yourcredit, |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
@ -463,7 +465,7 @@ |
|
|
|
that.showFinger = false; |
|
|
|
that.showBottom = true; |
|
|
|
uni.showToast({ |
|
|
|
title: 'address error', |
|
|
|
title: this.$t('index').addresserror, |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
@ -544,39 +546,44 @@ |
|
|
|
|
|
|
|
}, function(e) { |
|
|
|
switch (e.code) { |
|
|
|
// 指纹识别失败后的各种情况 |
|
|
|
case e.AUTHENTICATE_MISMATCH: |
|
|
|
// plus.nativeUI.toast('Fingerprint matching failed, please re-enter'); |
|
|
|
plus.nativeUI.toast(that.$t('index').Fingerprintmatchingfailed); |
|
|
|
// uni.setStorageSync('fingerPass',false) |
|
|
|
console.log(that.showFinger, 454545) |
|
|
|
that.showBottom = false; |
|
|
|
that.fingerFail = true; |
|
|
|
that.show=false; |
|
|
|
console.log(that.fingerFail, 454545) |
|
|
|
break; |
|
|
|
case e.AUTHENTICATE_OVERLIMIT: |
|
|
|
plus.nativeUI.closeWaiting(); //兼容Android平台关闭等待框 |
|
|
|
// plus.nativeUI.alert('The number of fingerprint identification failures exceeds the limit. Please use other methods for authentication'); |
|
|
|
plus.nativeUI.alert(that.$t('index').Thenumberoffingerprint); |
|
|
|
// uni.setStorageSync('fingerPass',false) |
|
|
|
console.log(that.showFinger, 454545) |
|
|
|
that.showBottom = false; |
|
|
|
that.fingerFail = true; |
|
|
|
that.show=false; |
|
|
|
console.log(that.fingerFail, 454545) |
|
|
|
break; |
|
|
|
case e.CANCEL: |
|
|
|
plus.nativeUI.toast('Recognition has been cancelled'); |
|
|
|
plus.nativeUI.toast(that.$t('index').Recognitioncancelled); |
|
|
|
// uni.setStorageSync('fingerPass',false) |
|
|
|
console.log(that.showFinger, 454545) |
|
|
|
that.showBottom = false; |
|
|
|
that.fingerFail = true; |
|
|
|
that.show=false; |
|
|
|
console.log(that.fingerFail, 454545) |
|
|
|
break; |
|
|
|
default: |
|
|
|
plus.nativeUI.closeWaiting(); //兼容Android平台关闭等待框 |
|
|
|
uni.setStorageSync('fingerPass', false) |
|
|
|
// uni.setStorageSync('fingerPass', false) |
|
|
|
console.log(that.showFinger, 454545) |
|
|
|
that.showBottom = false; |
|
|
|
that.fingerFail = true; |
|
|
|
that.show=false; |
|
|
|
console.log(that.fingerFail, 454545) |
|
|
|
plus.nativeUI.alert('Fingerprint identification failed, please try again'); |
|
|
|
plus.nativeUI.alert(that.$t('index').Fingerprintidentificationfailed); |
|
|
|
break; |
|
|
|
} |
|
|
|
}); |
|
|
@ -588,21 +595,7 @@ |
|
|
|
} */ |
|
|
|
} |
|
|
|
// #endif |
|
|
|
// 微信平台禁用 |
|
|
|
// #ifdef MP-WEIXIN |
|
|
|
// wx.startSoterAuthentication({ |
|
|
|
// requestAuthModes: ['fingerPrint'], |
|
|
|
// challenge: '123456', |
|
|
|
// authContent: '请用指纹解锁', |
|
|
|
// success(res) { |
|
|
|
// uni.showToast({ |
|
|
|
// title: '识别成功', |
|
|
|
// mask: false, |
|
|
|
// duration: 1500 |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// #endif |
|
|
|
|
|
|
|
} |
|
|
|
// #endif |
|
|
|
|
|
|
|