From 19fbf85b694ca1279fd61527f55022935aa7863d Mon Sep 17 00:00:00 2001 From: lloyd <353627866@qq.com> Date: Mon, 18 Aug 2025 11:55:53 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AE=9E=E7=8E=B0List=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=B5=8C=E5=A5=97=E6=BB=91=E5=8A=A8=E7=9A=84=E6=95=88?= =?UTF-8?q?=E6=9E=9C=E3=80=91=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build-profile.json5 | 3 +- entry/obfuscation-rules.txt | 0 entry/src/main/ets/pages/Index.ets | 6 +- entry/src/main/module.json5 | 4 +- .../main/resources/base/element/string.json | 80 +++++++++---------- 5 files changed, 46 insertions(+), 47 deletions(-) create mode 100644 entry/obfuscation-rules.txt diff --git a/build-profile.json5 b/build-profile.json5 index 5916880..9e8e391 100644 --- a/build-profile.json5 +++ b/build-profile.json5 @@ -6,7 +6,8 @@ "name": "default", "signingConfig": "default", "compatibleSdkVersion": "5.0.5(17)", - "runtimeOS": "HarmonyOS", + "targetSdkVersion": "5.0.5(17)", + "runtimeOS": "HarmonyOS" } ], "buildModeSet": [ diff --git a/entry/obfuscation-rules.txt b/entry/obfuscation-rules.txt new file mode 100644 index 0000000..e69de29 diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 11c37c8..3a99b19 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -13,7 +13,7 @@ * limitations under the License. */ -import { router, window } from '@kit.ArkUI'; +import { window } from '@kit.ArkUI'; import { CommonConstants } from '../constants/CommonConstants'; import { CardItem } from '../viewmodel/CardItem'; import { CardItemComponent } from '../view/CardItemComponent'; @@ -154,7 +154,7 @@ struct Index { .onClick(() => { this.classifyChangeAction(index, true); }) - }, (item: ClassifyModel, index: number) => JSON.stringify(item.classifyName)) + }, (item: ClassifyModel, _index: number) => JSON.stringify(item.classifyName)) } .height($r('app.float.top_height')) .listDirection(Axis.Horizontal) @@ -176,7 +176,7 @@ struct Index { .height(CommonConstants.FULL_PERCENT) } } - }, (item: ClassifyModel, index: number) => JSON.stringify(item.classifyName)) + }, (item: ClassifyModel, _index: number) => JSON.stringify(item.classifyName)) } .nestedScroll({ scrollForward: NestedScrollMode.PARENT_FIRST, diff --git a/entry/src/main/module.json5 b/entry/src/main/module.json5 index de78b5c..5f6f8e1 100644 --- a/entry/src/main/module.json5 +++ b/entry/src/main/module.json5 @@ -5,9 +5,7 @@ "description": "$string:module_desc", "mainElement": "EntryAbility", "deviceTypes": [ - "phone", - "tablet", - "2in1" + "phone" ], "deliveryWithInstall": true, "installationFree": false, diff --git a/entry/src/main/resources/base/element/string.json b/entry/src/main/resources/base/element/string.json index e21d168..93a16be 100644 --- a/entry/src/main/resources/base/element/string.json +++ b/entry/src/main/resources/base/element/string.json @@ -14,11 +14,11 @@ }, { "name": "common_service", - "value": "common service" + "value": "Common service" }, { "name": "title", - "value": "my services" + "value": "My services" }, { "name": "common_font_family", @@ -26,155 +26,155 @@ }, { "name": "check_in", - "value": "值机&选座" + "value": "Check-in & Seat selection" }, { "name": "refund", - "value": "自助退票" + "value": "Self-service refund" }, { "name": "food", - "value": "美食预定" + "value": "Food reservation" }, { "name": "ticket", - "value": "机票兑换" + "value": "Air ticket redemption" }, { "name": "Travel", - "value": "航旅商城" + "value": "Travel mall" }, { "name": "itinerary", - "value": "我的行程" + "value": "My itinerary" }, { "name": "order", - "value": "我的订单" + "value": "My order" }, { "name": "reservation", - "value": "机票预订" + "value": "Air ticket reservation" }, { "name": "Retrofit", - "value": "退改服务" + "value": "Retrofit service" }, { "name": "purchase", - "value": "行李购买" + "value": "Luggage purchase" }, { "name": "light", - "value": "轻装出行" + "value": "Travel light" }, { "name": "lounge", - "value": "贵宾休息室" + "value": "VIP lounge" }, { "name": "running", - "value": "地面畅行" + "value": "Ground running" }, { "name": "gift", - "value": "礼品卡" + "value": "Gift card" }, { "name": "fund", - "value": "自助退票" + "value": "Self-service refund" }, { "name": "invoice", - "value": "电子发票" + "value": "Electronic invoice" }, { "name": "pass", - "value": "登机牌" + "value": "Boarding pass" }, { "name": "Baggage", - "value": "行李查询" + "value": "Baggage inquiry" }, { "name": "feed", - "value": "美食预定" + "value": "Food reservation" }, { "name": "Subway", - "value": "地铁出行" + "value": "Subway travel" }, { "name": "transfer", - "value": "机场接送" + "value": "Airport transfer" }, { "name": "tourism", - "value": "中转旅游" + "value": "Transit tourism" }, { "name": "family", - "value": "我的家庭" + "value": "My family" }, { "name": "redemption", - "value": "机票兑换" + "value": "Air ticket redemption" }, { "name": "complement", - "value": "积分补登" + "value": "Integral complement" }, { "name": "paradise", - "value": "积分乐园" + "value": "Integral paradise" }, { "name": "Points", - "value": "积分商城" + "value": "Points mall" }, { "name": "calculator", - "value": "积分计算器" + "value": "Integrating calculator" }, { "name": "network", - "value": "服务网点" + "value": "Service network" }, { "name": "Corporate", - "value": "企业商旅" + "value": "Corporate travel" }, { "name": "guide", - "value": "出行指南" + "value": "Travel guide" }, { "name": "ride", - "value": "首次乘车指引" + "value": "First ride guide" }, { "name": "more", - "value": "更多发现" + "value": "More discoveries" }, { "name": "account", - "value": "绿色账户" + "value": "Green account" }, { "name": "trip", - "value": "预定行程" + "value": "Schedule a trip" }, { "name": "Tourism", - "value": "旅游服务" + "value": "Tourism service" }, { "name": "entertainment", - "value": "轻松娱乐" + "value": "Light entertain" }, { "name": "assistant", - "value": "出行助手" + "value": "Travel assistant" } ] } \ No newline at end of file -- Gitee