From c80ab32e5d31ba800d749257f907ea977ffb36de Mon Sep 17 00:00:00 2001 From: wangzhongjie Date: Tue, 12 Aug 2025 10:25:29 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E7=95=8C=E9=9D=A2=E8=AF=BB=E5=8F=96=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=94=9F=E5=91=BD=E5=91=A8=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/UserInfo.ets | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/entry/src/main/ets/pages/UserInfo.ets b/entry/src/main/ets/pages/UserInfo.ets index 4ecfba3..e4f7313 100644 --- a/entry/src/main/ets/pages/UserInfo.ets +++ b/entry/src/main/ets/pages/UserInfo.ets @@ -208,11 +208,8 @@ struct UserInfoPage { } - aboutToAppear() { + async aboutToAppear() { this.avPlayer = new VoiceAnnounce(this.context); - } - - async onPageShow() { this.isExamStart = false this.startExam = false this.updateTimeLimit = false @@ -303,8 +300,9 @@ struct UserInfoPage { } - async onPageHide(): Promise { + async aboutToDisappear(): Promise { CenterUDPBusinessInstance.offMsg(this.onCenterMsg) + this.outClick() } //身份证读卡器初始化 @@ -952,10 +950,6 @@ struct UserInfoPage { } } - aboutToDisappear() { - this.outClick() - } - outClick() { clearInterval(this.interval) this.stopDeviceById()