From 295c8c10cff2bee9206db45a777e373db3f690f8 Mon Sep 17 00:00:00 2001 From: lvyuankang <1344032923@qq.com> Date: Thu, 15 Aug 2024 17:55:47 +0800 Subject: [PATCH] =?UTF-8?q?userinfo=E5=96=AE=E6=A9=9F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/common/utils/TcpClient.ts | 2 +- entry/src/main/ets/pages/UserInfo.ets | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/entry/src/main/ets/common/utils/TcpClient.ts b/entry/src/main/ets/common/utils/TcpClient.ts index 4639c7d0..679c9d76 100644 --- a/entry/src/main/ets/common/utils/TcpClient.ts +++ b/entry/src/main/ets/common/utils/TcpClient.ts @@ -185,7 +185,6 @@ export default class TcpClient { globalThis.tcpUdpError = true; }, 2000) },3000) - // callback(value.message) }); } @@ -193,6 +192,7 @@ export default class TcpClient { offTcp(callback) { console.log(TAG, 'tcpofff') + this.tcp.off('testTagofmessg', callback); } diff --git a/entry/src/main/ets/pages/UserInfo.ets b/entry/src/main/ets/pages/UserInfo.ets index fb618dc9..3b50ab07 100644 --- a/entry/src/main/ets/pages/UserInfo.ets +++ b/entry/src/main/ets/pages/UserInfo.ets @@ -743,7 +743,7 @@ struct UserInfo { .backgroundImage(item.sfzmhm != this.currentUser.sfzmhm ? $r('app.media.userbox2') : $r('app.media.userboxbg')) .backgroundImageSize({ width: '100%', height: '100%' }) .onClick(() => { - if (this.isExamStart) { + if (this.isExamStart&&!globalThis.singlePlay) { return } this.currentUser = item @@ -997,9 +997,9 @@ struct LabelBlock { build() { Row() { - Text(this.label).fontSize(16 * this.ratio).fontColor('#99948A') + Text(this.label).fontSize(20 * this.ratio).fontColor('#99948A') Row() { - Text(decodeURIComponent(this.value)).fontColor('#fff').textAlign(TextAlign.Center).width('100%') + Text(decodeURIComponent(this.value)).fontColor('#fff').textAlign(TextAlign.Center).width('100%').fontSize(18 * this.ratio) } .commLabelStyle() }.margin({ bottom: 10 * this.ratio }) -- 2.43.0.windows.1