From 5b344699c964b40d9d6c86ea749d190744886c20 Mon Sep 17 00:00:00 2001 From: yan-shuifeng Date: Fri, 3 Jan 2025 16:34:59 +0800 Subject: [PATCH] upload lazyForEach demo Signed-off-by: yan-shuifeng --- arkoala-arkts/shopping/src/ets/pages/homePage/goodsList.ets | 6 +++--- arkoala-arkts/shopping/src/ets/pages/homePage/main.ets | 6 +++--- interop/src/cpp/vmloader.cc | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arkoala-arkts/shopping/src/ets/pages/homePage/goodsList.ets b/arkoala-arkts/shopping/src/ets/pages/homePage/goodsList.ets index 4822107b8..552da5617 100644 --- a/arkoala-arkts/shopping/src/ets/pages/homePage/goodsList.ets +++ b/arkoala-arkts/shopping/src/ets/pages/homePage/goodsList.ets @@ -69,12 +69,12 @@ export struct GoodsList { .objectFit(ImageFit.Contain) .margin({ bottom: 40 } as Margin) Text(this.productData[item.valueOf() % 14].title) - .fontSize(16 * this.ratio) + .fontSize(16 * 1) .fontWeight(600) .margin({ bottom: 10, left: 10 } as Margin) Row() { Text(this.productData[item.valueOf() % 14].labels) - .fontSize(10 * this.ratio) + .fontSize(10 * 1) .border({ width: 1, color: '#FA808080' } as BorderOptions) .margin({ bottom: 2, left: 10 } as Margin) .padding(2) @@ -82,7 +82,7 @@ export struct GoodsList { .margin({ bottom: 2 } as Margin) Text(`¥${item.valueOf() + 1}`) - .fontSize(16 * this.ratio) + .fontSize(16 * 1) .fontColor(Color.Red) .margin({ left: 10 } as Margin) } diff --git a/arkoala-arkts/shopping/src/ets/pages/homePage/main.ets b/arkoala-arkts/shopping/src/ets/pages/homePage/main.ets index b5c430cbe..e8253af74 100644 --- a/arkoala-arkts/shopping/src/ets/pages/homePage/main.ets +++ b/arkoala-arkts/shopping/src/ets/pages/homePage/main.ets @@ -184,15 +184,15 @@ export struct MainPage { }.tabBar('全部') TabContent() { - GoodsList({ ListIndex: $ListIndex, ratio: $ratio }) + // GoodsList({ ListIndex: $ListIndex, ratio: $ratio }) }.tabBar('直播') TabContent() { - GoodsList({ ListIndex: $ListIndex, ratio: $ratio }) + // GoodsList({ ListIndex: $ListIndex, ratio: $ratio }) }.tabBar('便宜好货') TabContent() { - GoodsList({ ListIndex: $ListIndex, ratio: $ratio }) + // GoodsList({ ListIndex: $ListIndex, ratio: $ratio }) }.tabBar('洋淘') } .barWidth(0) diff --git a/interop/src/cpp/vmloader.cc b/interop/src/cpp/vmloader.cc index 13c7c193f..2510ba235 100644 --- a/interop/src/cpp/vmloader.cc +++ b/interop/src/cpp/vmloader.cc @@ -232,7 +232,7 @@ extern "C" DLL_EXPORT KInt LoadVirtualMachine(KInt vmKind, const char* appClassP etsVMOptions = { #if defined(KOALA_LINUX) {EtsOptionType::ETS_BOOT_FILE, (char*)strdup((std::string(thisVM->sdkPath) + "/ets/etsstdlib.abc").c_str())}, -#elif defined(KOALA_OHOS_ARM32) +#elif defined(KOALA_OHOS_ARM32) || defined(KOALA_OHOS_ARM64) {EtsOptionType::ETS_BOOT_FILE, "/system/etc/etsstdlib.abc"}, #endif }; -- Gitee