This commit is contained in:
fangzheng24 2023-01-28 16:59:43 +08:00
commit 624ffe90be
3 changed files with 8 additions and 3 deletions

View File

@ -103,6 +103,7 @@ export default struct SearchHeader {
});
}
}
.hitTestBehavior(HitTestMode.Transparent)
}
.width('100%')
}

View File

@ -77,7 +77,7 @@ struct DeviceName {
prompt.showToast({
message: value,
duration: 2000,
bottom: 1000
bottom: 100
})
})
}

View File

@ -47,6 +47,7 @@ struct PasswordCheck {
private prevPageUri: string = undefined;
private pinChallenge: string = undefined;
private timerId: number = -1;
private freezingTimeFlag = undefined;
@State private passwordType: number = -1;
@State private promptMessage: any = '';
@ -303,6 +304,9 @@ struct PasswordCheck {
this.freezingTimeForView = this.freezingTime / 1000;
LogUtil.info(this.TAG_PAGE + `freezeView freezingTimeForView = ${this.freezingTimeForView}`);
this.freezingTimeFlag = setTimeout(() => {
this.freezingTimeForView = 0;
}, this.freezingTime);
this.timerId = setInterval(() => {
if (this.freezingTimeForView <= 0) {
this.stopCountDown();
@ -323,8 +327,8 @@ struct PasswordCheck {
stopCountDown() {
// for freezing view
if (this.timerId > 0) {
clearTimeout(this.timerId);
clearInterval(this.freezingTimeForView);
clearTimeout(this.freezingTimeFlag);
clearInterval(this.timerId);
}
}
}