TASK: #120449 修改需求-图形和数字分别输入错误5次,锁定,并在120秒内记录错误次数。

This commit is contained in:
duanzhijiang 2022-11-17 17:22:06 +08:00
parent 0833a8b7d4
commit b2cffb9364
2 changed files with 2 additions and 4 deletions

View File

@ -130,7 +130,6 @@ export class StarLockNumber extends StarBaseElement {
this.errors = event.detail.value
//当密码失败5次后
if (this.errors == 5) {
console.log('进入已锁定页面')
this.dispatchEvent(
new CustomEvent('star-digicipher-passcode-error-fifth', {
detail: {

View File

@ -134,11 +134,10 @@ export class StarPatternView extends StarBaseElement {
this.changeText = '绘制图案错误'
//当密码失败三次后
this.errors = event.detail.value
if (this.errors == 3) {
console.log('进入已锁定页面')
if (this.errors == 5) {
this.initialState()
this.dispatchEvent(
new CustomEvent('star-pattern-view-passwd-error-third', {
new CustomEvent('star-pattern-view-passwd-error-fifth', {
detail: {
value: true,
},