|
@ -208,48 +208,45 @@ |
|
|
that.fingerSuccess = true; |
|
|
that.fingerSuccess = true; |
|
|
that.show = false; |
|
|
that.show = false; |
|
|
}, function(e) { |
|
|
}, function(e) { |
|
|
switch (e.code) { |
|
|
// 指纹识别失败后的各种情况 |
|
|
case e.AUTHENTICATE_MISMATCH: |
|
|
switch (e.code) { |
|
|
plus.nativeUI.toast(that.$t('index').Fingerprintmatchingfailed); |
|
|
case e.AUTHENTICATE_MISMATCH: |
|
|
uni.setStorageSync('fingerPass', false) |
|
|
plus.nativeUI.toast(that.$t('index').Fingerprintmatchingfailed); |
|
|
that.showFinger = false; |
|
|
uni.setStorageSync('fingerPass',false) |
|
|
that.fingerFail = true; |
|
|
that.showFinger=false; |
|
|
that.checked = false |
|
|
that.fingerFail=true; |
|
|
break; |
|
|
that.checked=false |
|
|
case e.AUTHENTICATE_OVERLIMIT: |
|
|
that.show=false; |
|
|
plus.nativeUI.closeWaiting(); //兼容Android平台关闭等待框 |
|
|
break; |
|
|
plus.nativeUI.alert( |
|
|
case e.AUTHENTICATE_OVERLIMIT: |
|
|
'The number of fingerprint identification failures exceeds the limit. Please use other methods for authentication' |
|
|
plus.nativeUI.closeWaiting(); //兼容Android平台关闭等待框 |
|
|
); |
|
|
plus.nativeUI.alert(that.$t('index').Thenumberoffingerprint); |
|
|
uni.setStorageSync('fingerPass', false) |
|
|
uni.setStorageSync('fingerPass',false) |
|
|
console.log(that.showFinger, 454545) |
|
|
that.showFinger=false; |
|
|
that.showFinger = false; |
|
|
that.fingerFail=true; |
|
|
that.fingerFail = true; |
|
|
that.checked=false |
|
|
that.checked = false |
|
|
that.show=false; |
|
|
console.log(that.fingerFail, 454545) |
|
|
break; |
|
|
break; |
|
|
case e.CANCEL: |
|
|
case e.CANCEL: |
|
|
plus.nativeUI.toast(that.$t('index').Recognitioncancelled); |
|
|
plus.nativeUI.toast(that.$t('index').Recognitioncancelled); |
|
|
uni.setStorageSync('fingerPass',false) |
|
|
uni.setStorageSync('fingerPass', false) |
|
|
that.showFinger=false; |
|
|
console.log(that.showFinger, 454545) |
|
|
that.checked=false |
|
|
that.showFinger = false; |
|
|
that.fingerFail=true; |
|
|
that.checked = false |
|
|
that.show=false; |
|
|
that.fingerFail = true; |
|
|
break; |
|
|
that.show = false; |
|
|
default: |
|
|
console.log(that.fingerFail, 454545) |
|
|
plus.nativeUI.closeWaiting(); //兼容Android平台关闭等待框 |
|
|
break; |
|
|
uni.setStorageSync('fingerPass',false) |
|
|
default: |
|
|
console.log(that.showFinger,454545) |
|
|
plus.nativeUI.closeWaiting(); //兼容Android平台关闭等待框 |
|
|
that.showFinger=false; |
|
|
uni.setStorageSync('fingerPass', false) |
|
|
that.checked=false |
|
|
console.log(that.showFinger, 454545) |
|
|
that.show=false; |
|
|
that.showFinger = false; |
|
|
that.fingerFail=true; |
|
|
that.checked = false |
|
|
plus.nativeUI.alert(that.$t('index').Fingerprintidentificationfailed); |
|
|
that.fingerFail = true; |
|
|
break; |
|
|
console.log(that.fingerFail, 454545) |
|
|
} |
|
|
plus.nativeUI.alert(that.$t('index').Fingerprintidentificationfailed); |
|
|
}); |
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
|
|
|
// Android平台手动弹出等待提示框 |
|
|
// Android平台手动弹出等待提示框 |
|
|
if ('Android' == plus.os.name) { |
|
|
if ('Android' == plus.os.name) { |
|
|
this.show = true; |
|
|
this.show = true; |
|
|