From 3e9e7bbaf16d42188f63815567b55d35ecff092c Mon Sep 17 00:00:00 2001 From: guowei Date: Thu, 21 Aug 2025 14:48:32 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E9=94=99=E8=AF=AF=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guowei --- .../phone/src/main/ets/pages/compatibilityAssessment.ets | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/product/phone/src/main/ets/pages/compatibilityAssessment.ets b/product/phone/src/main/ets/pages/compatibilityAssessment.ets index 1ea7e848..be70f806 100644 --- a/product/phone/src/main/ets/pages/compatibilityAssessment.ets +++ b/product/phone/src/main/ets/pages/compatibilityAssessment.ets @@ -40,6 +40,10 @@ struct compatibilityAssessment { .height($r("app.float.wh_value_64")) .width($r("app.float.wh_value_64")) .margin({top: $r("app.float.wh_value_32")}) + .onError((error)=>{ + LogUtil.info(MODULE_TAG + "load image error: " + this.assessmentImage + "code: " + error?.code + + "message: " + error?.message); + }) Text(this.assessmentResult) .fontFamily('HarmonyHeiTi') .fontSize($r("app.float.font_20")) @@ -94,6 +98,7 @@ struct compatibilityAssessment { } aboutToAppear(): void{ + LogUtil.info(MODULE_TAG + "load image path0: " + this.assessmentImage); this.assessmentIntroduction = JSON.parse(JSON.stringify($r("app.string.assessmentIntroduction"))) try { deviceAttest.getAttestStatus().then((attestResultInfo) => { @@ -107,24 +112,28 @@ struct compatibilityAssessment { this.assessmentResult =JSON.parse(JSON.stringify($r("app.string.assessmentQueryFailed"))) this.assessmentImage = '/res/image/assessmentQueryFailed-light.svg' this.assessmentResultText = JSON.parse(JSON.stringify($r("app.string.assessmentQueryFailedText"))) + LogUtil.info(MODULE_TAG + "load image path1: " + this.assessmentImage); }else{ this.assessmentResult =JSON.parse(JSON.stringify($r("app.string.assessmentPassFailed"))) this.assessmentImage = '/res/image/assessmentPassFailed-light.svg' this.assessmentResultText = JSON.parse(JSON.stringify($r("app.string.assessmentPassFailedText"))) } LogUtil.info(MODULE_TAG + "attestResultInfo success"+JSON.stringify(attestResultInfo)); + LogUtil.info(MODULE_TAG + "load image path2: " + this.assessmentImage); }) .catch((error: BusinessError) => { this.assessmentResult =JSON.parse(JSON.stringify($r("app.string.assessmentQueryFailed"))) this.assessmentImage = '/res/image/assessmentQueryFailed-light.svg' this.assessmentResultText = JSON.parse(JSON.stringify($r("app.string.assessmentQueryFailedText"))) LogUtil.info(MODULE_TAG + "assessmentQueryFailed"+error); + LogUtil.info(MODULE_TAG + "load image path3: " + this.assessmentImage); }); }catch (error){ this.assessmentResult =JSON.parse(JSON.stringify($r("app.string.assessmentQueryFailed"))) this.assessmentImage = '/res/image/assessmentQueryFailed-light.svg' this.assessmentResultText = JSON.parse(JSON.stringify($r("app.string.assessmentQueryFailedText"))) LogUtil.info(MODULE_TAG + "assessmentQueryFailed"+error); + LogUtil.info(MODULE_TAG + "load image path4: " + this.assessmentImage); } } -- Gitee From 712879b1358786b90ede8e314b18654ba8152f3a Mon Sep 17 00:00:00 2001 From: guowei Date: Thu, 21 Aug 2025 16:26:30 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guowei --- product/phone/src/main/ets/pages/compatibilityAssessment.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/phone/src/main/ets/pages/compatibilityAssessment.ets b/product/phone/src/main/ets/pages/compatibilityAssessment.ets index be70f806..c232bb20 100644 --- a/product/phone/src/main/ets/pages/compatibilityAssessment.ets +++ b/product/phone/src/main/ets/pages/compatibilityAssessment.ets @@ -98,7 +98,7 @@ struct compatibilityAssessment { } aboutToAppear(): void{ - LogUtil.info(MODULE_TAG + "load image path0: " + this.assessmentImage); + LogUtil.info(MODULE_TAG + "load image path00: " + this.assessmentImage); this.assessmentIntroduction = JSON.parse(JSON.stringify($r("app.string.assessmentIntroduction"))) try { deviceAttest.getAttestStatus().then((attestResultInfo) => { -- Gitee From c6d8bad7fc7e94525a8b26f730715527a4c6e221 Mon Sep 17 00:00:00 2001 From: guowei Date: Thu, 21 Aug 2025 18:51:52 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guowei --- product/phone/src/main/ets/pages/compatibilityAssessment.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/phone/src/main/ets/pages/compatibilityAssessment.ets b/product/phone/src/main/ets/pages/compatibilityAssessment.ets index c232bb20..c7abe66e 100644 --- a/product/phone/src/main/ets/pages/compatibilityAssessment.ets +++ b/product/phone/src/main/ets/pages/compatibilityAssessment.ets @@ -41,7 +41,7 @@ struct compatibilityAssessment { .width($r("app.float.wh_value_64")) .margin({top: $r("app.float.wh_value_32")}) .onError((error)=>{ - LogUtil.info(MODULE_TAG + "load image error: " + this.assessmentImage + "code: " + error?.code + + LogUtil.info(MODULE_TAG + "load image error: " + this.assessmentImage + "message: " + error?.message); }) Text(this.assessmentResult) -- Gitee From ed8c501685e651ce6928a0ad545e1fb2c9cdb532 Mon Sep 17 00:00:00 2001 From: guowei Date: Fri, 22 Aug 2025 08:33:25 +0800 Subject: [PATCH 4/8] =?UTF-8?q?settings=E7=89=88=E6=9C=AC=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guowei --- build-profile.json5 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build-profile.json5 b/build-profile.json5 index b58430fa..6594e58b 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -4,9 +4,9 @@ { "name": "default", "signingConfig": "release", - "compileSdkVersion": 20, - "compatibleSdkVersion": 20, - "targetSdkVersion": 20, + "compileSdkVersion": 14, + "compatibleSdkVersion": 14, + "targetSdkVersion": 14, "runtimeOS": "OpenHarmony" } ] -- Gitee From d204a05088ad9580e5f04900755042f1a94fc92d Mon Sep 17 00:00:00 2001 From: guowei Date: Fri, 22 Aug 2025 10:08:55 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guowei --- build-profile.json5 | 6 +++--- .../phone/src/main/ets/pages/compatibilityAssessment.ets | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/build-profile.json5 b/build-profile.json5 index 6594e58b..b58430fa 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -4,9 +4,9 @@ { "name": "default", "signingConfig": "release", - "compileSdkVersion": 14, - "compatibleSdkVersion": 14, - "targetSdkVersion": 14, + "compileSdkVersion": 20, + "compatibleSdkVersion": 20, + "targetSdkVersion": 20, "runtimeOS": "OpenHarmony" } ] diff --git a/product/phone/src/main/ets/pages/compatibilityAssessment.ets b/product/phone/src/main/ets/pages/compatibilityAssessment.ets index c7abe66e..78ae200f 100644 --- a/product/phone/src/main/ets/pages/compatibilityAssessment.ets +++ b/product/phone/src/main/ets/pages/compatibilityAssessment.ets @@ -98,6 +98,7 @@ struct compatibilityAssessment { } aboutToAppear(): void{ + this.assessmentImage = '/res/image/assessmentQueryFailed-light.svg' LogUtil.info(MODULE_TAG + "load image path00: " + this.assessmentImage); this.assessmentIntroduction = JSON.parse(JSON.stringify($r("app.string.assessmentIntroduction"))) try { -- Gitee From 2202732dc0b04ff4d16be2363d459377bbb03c1a Mon Sep 17 00:00:00 2001 From: guowei Date: Mon, 25 Aug 2025 09:25:30 +0800 Subject: [PATCH 6/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guowei --- build-profile.json5 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build-profile.json5 b/build-profile.json5 index b58430fa..6594e58b 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -4,9 +4,9 @@ { "name": "default", "signingConfig": "release", - "compileSdkVersion": 20, - "compatibleSdkVersion": 20, - "targetSdkVersion": 20, + "compileSdkVersion": 14, + "compatibleSdkVersion": 14, + "targetSdkVersion": 14, "runtimeOS": "OpenHarmony" } ] -- Gitee From 2f97757adf6f1c9ad8f1f6ec7c81a2b6ec1b3c6f Mon Sep 17 00:00:00 2001 From: guowei Date: Mon, 25 Aug 2025 11:47:32 +0800 Subject: [PATCH 7/8] =?UTF-8?q?=E6=B7=BB=E5=8A=A0onComplete=E5=9B=9E?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guowei --- product/phone/src/main/ets/pages/compatibilityAssessment.ets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/product/phone/src/main/ets/pages/compatibilityAssessment.ets b/product/phone/src/main/ets/pages/compatibilityAssessment.ets index 78ae200f..002d083f 100644 --- a/product/phone/src/main/ets/pages/compatibilityAssessment.ets +++ b/product/phone/src/main/ets/pages/compatibilityAssessment.ets @@ -44,6 +44,10 @@ struct compatibilityAssessment { LogUtil.info(MODULE_TAG + "load image error: " + this.assessmentImage + "message: " + error?.message); }) + .onComplete((event)=>{ + LogUtil.info(MODULE_TAG + "load image complete: width" + event?.width + + "height: " + event?.height); + }) Text(this.assessmentResult) .fontFamily('HarmonyHeiTi') .fontSize($r("app.float.font_20")) -- Gitee From b0ea0560a0d58c9cba77bfb0d360bb5280ad97c3 Mon Sep 17 00:00:00 2001 From: guowei Date: Mon, 25 Aug 2025 14:12:44 +0800 Subject: [PATCH 8/8] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: guowei --- build-profile.json5 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build-profile.json5 b/build-profile.json5 index 6594e58b..b58430fa 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -4,9 +4,9 @@ { "name": "default", "signingConfig": "release", - "compileSdkVersion": 14, - "compatibleSdkVersion": 14, - "targetSdkVersion": 14, + "compileSdkVersion": 20, + "compatibleSdkVersion": 20, + "targetSdkVersion": 20, "runtimeOS": "OpenHarmony" } ] -- Gitee