From 8da6ee3f26a03ee6744265d25ed223b93aa402ec Mon Sep 17 00:00:00 2001 From: lloyd <353627866@qq.com> Date: Wed, 22 Oct 2025 15:59:25 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=A1=B5=E9=9D=A2=E4=B8=8E=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E3=80=91=E6=9B=B4=E6=96=B0API=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PageAndData01/01_Complete/build-profile.json5 | 2 +- PageAndData01/01_Complete/hvigor/hvigor-config.json5 | 2 +- PageAndData01/01_Complete/oh-package.json5 | 2 +- PageAndData02/02_Complete/build-profile.json5 | 2 +- PageAndData02/02_Complete/hvigor/hvigor-config.json5 | 2 +- PageAndData02/02_Complete/oh-package.json5 | 2 +- PageAndData02/02_StartingPoint/build-profile.json5 | 2 +- .../02_StartingPoint/hvigor/hvigor-config.json5 | 2 +- PageAndData02/02_StartingPoint/oh-package.json5 | 2 +- PageAndData03/03_Complete/build-profile.json5 | 2 +- PageAndData03/03_Complete/hvigor/hvigor-config.json5 | 2 +- PageAndData03/03_Complete/oh-package.json5 | 2 +- PageAndData03/03_StartingPoint/build-profile.json5 | 2 +- .../03_StartingPoint/hvigor/hvigor-config.json5 | 2 +- PageAndData03/03_StartingPoint/oh-package.json5 | 2 +- PageAndData04/04_Complete/build-profile.json5 | 2 +- PageAndData04/04_Complete/hvigor/hvigor-config.json5 | 2 +- PageAndData04/04_Complete/oh-package.json5 | 2 +- PageAndData04/04_StartingPoint/build-profile.json5 | 2 +- .../04_StartingPoint/hvigor/hvigor-config.json5 | 2 +- PageAndData04/04_StartingPoint/oh-package.json5 | 2 +- README.md | 12 ++++++++---- 22 files changed, 29 insertions(+), 25 deletions(-) diff --git a/PageAndData01/01_Complete/build-profile.json5 b/PageAndData01/01_Complete/build-profile.json5 index 7efdeb1..c93b405 100644 --- a/PageAndData01/01_Complete/build-profile.json5 +++ b/PageAndData01/01_Complete/build-profile.json5 @@ -8,7 +8,7 @@ "name": "default", "signingConfig": "default", "compatibleSdkVersion": "5.0.5(17)", - "targetSdkVersion": "5.0.5(17)", + "targetSdkVersion": "6.0.0(20)", "runtimeOS": "HarmonyOS" } ] diff --git a/PageAndData01/01_Complete/hvigor/hvigor-config.json5 b/PageAndData01/01_Complete/hvigor/hvigor-config.json5 index 0c81a69..c2e4bf9 100644 --- a/PageAndData01/01_Complete/hvigor/hvigor-config.json5 +++ b/PageAndData01/01_Complete/hvigor/hvigor-config.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.5", + "modelVersion": "6.0.0", "dependencies": { }, "execution": { diff --git a/PageAndData01/01_Complete/oh-package.json5 b/PageAndData01/01_Complete/oh-package.json5 index ccfb3c1..f5ffda2 100644 --- a/PageAndData01/01_Complete/oh-package.json5 +++ b/PageAndData01/01_Complete/oh-package.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.5", + "modelVersion": "6.0.0", "license": "", "devDependencies": { }, diff --git a/PageAndData02/02_Complete/build-profile.json5 b/PageAndData02/02_Complete/build-profile.json5 index 866ea43..730c830 100644 --- a/PageAndData02/02_Complete/build-profile.json5 +++ b/PageAndData02/02_Complete/build-profile.json5 @@ -8,7 +8,7 @@ "name": "default", "signingConfig": "default", "compatibleSdkVersion": "5.0.5(17)", - "targetSdkVersion": "5.0.5(17)", + "targetSdkVersion": "6.0.0(20)", "runtimeOS": "HarmonyOS" } ] diff --git a/PageAndData02/02_Complete/hvigor/hvigor-config.json5 b/PageAndData02/02_Complete/hvigor/hvigor-config.json5 index 0c81a69..c2e4bf9 100644 --- a/PageAndData02/02_Complete/hvigor/hvigor-config.json5 +++ b/PageAndData02/02_Complete/hvigor/hvigor-config.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.5", + "modelVersion": "6.0.0", "dependencies": { }, "execution": { diff --git a/PageAndData02/02_Complete/oh-package.json5 b/PageAndData02/02_Complete/oh-package.json5 index ccfb3c1..f5ffda2 100644 --- a/PageAndData02/02_Complete/oh-package.json5 +++ b/PageAndData02/02_Complete/oh-package.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.5", + "modelVersion": "6.0.0", "license": "", "devDependencies": { }, diff --git a/PageAndData02/02_StartingPoint/build-profile.json5 b/PageAndData02/02_StartingPoint/build-profile.json5 index 7efdeb1..c93b405 100644 --- a/PageAndData02/02_StartingPoint/build-profile.json5 +++ b/PageAndData02/02_StartingPoint/build-profile.json5 @@ -8,7 +8,7 @@ "name": "default", "signingConfig": "default", "compatibleSdkVersion": "5.0.5(17)", - "targetSdkVersion": "5.0.5(17)", + "targetSdkVersion": "6.0.0(20)", "runtimeOS": "HarmonyOS" } ] diff --git a/PageAndData02/02_StartingPoint/hvigor/hvigor-config.json5 b/PageAndData02/02_StartingPoint/hvigor/hvigor-config.json5 index 0c81a69..c2e4bf9 100644 --- a/PageAndData02/02_StartingPoint/hvigor/hvigor-config.json5 +++ b/PageAndData02/02_StartingPoint/hvigor/hvigor-config.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.5", + "modelVersion": "6.0.0", "dependencies": { }, "execution": { diff --git a/PageAndData02/02_StartingPoint/oh-package.json5 b/PageAndData02/02_StartingPoint/oh-package.json5 index ccfb3c1..f5ffda2 100644 --- a/PageAndData02/02_StartingPoint/oh-package.json5 +++ b/PageAndData02/02_StartingPoint/oh-package.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.5", + "modelVersion": "6.0.0", "license": "", "devDependencies": { }, diff --git a/PageAndData03/03_Complete/build-profile.json5 b/PageAndData03/03_Complete/build-profile.json5 index 0f0c092..4e34a0f 100644 --- a/PageAndData03/03_Complete/build-profile.json5 +++ b/PageAndData03/03_Complete/build-profile.json5 @@ -8,7 +8,7 @@ "name": "default", "signingConfig": "default", "compatibleSdkVersion": "5.0.5(17)", - "targetSdkVersion": "5.0.5(17)", + "targetSdkVersion": "6.0.0(20)", "runtimeOS": "HarmonyOS" } ] diff --git a/PageAndData03/03_Complete/hvigor/hvigor-config.json5 b/PageAndData03/03_Complete/hvigor/hvigor-config.json5 index 0c81a69..c2e4bf9 100644 --- a/PageAndData03/03_Complete/hvigor/hvigor-config.json5 +++ b/PageAndData03/03_Complete/hvigor/hvigor-config.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.5", + "modelVersion": "6.0.0", "dependencies": { }, "execution": { diff --git a/PageAndData03/03_Complete/oh-package.json5 b/PageAndData03/03_Complete/oh-package.json5 index ccfb3c1..f5ffda2 100644 --- a/PageAndData03/03_Complete/oh-package.json5 +++ b/PageAndData03/03_Complete/oh-package.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.5", + "modelVersion": "6.0.0", "license": "", "devDependencies": { }, diff --git a/PageAndData03/03_StartingPoint/build-profile.json5 b/PageAndData03/03_StartingPoint/build-profile.json5 index 866ea43..730c830 100644 --- a/PageAndData03/03_StartingPoint/build-profile.json5 +++ b/PageAndData03/03_StartingPoint/build-profile.json5 @@ -8,7 +8,7 @@ "name": "default", "signingConfig": "default", "compatibleSdkVersion": "5.0.5(17)", - "targetSdkVersion": "5.0.5(17)", + "targetSdkVersion": "6.0.0(20)", "runtimeOS": "HarmonyOS" } ] diff --git a/PageAndData03/03_StartingPoint/hvigor/hvigor-config.json5 b/PageAndData03/03_StartingPoint/hvigor/hvigor-config.json5 index 0c81a69..c2e4bf9 100644 --- a/PageAndData03/03_StartingPoint/hvigor/hvigor-config.json5 +++ b/PageAndData03/03_StartingPoint/hvigor/hvigor-config.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.5", + "modelVersion": "6.0.0", "dependencies": { }, "execution": { diff --git a/PageAndData03/03_StartingPoint/oh-package.json5 b/PageAndData03/03_StartingPoint/oh-package.json5 index ccfb3c1..f5ffda2 100644 --- a/PageAndData03/03_StartingPoint/oh-package.json5 +++ b/PageAndData03/03_StartingPoint/oh-package.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.5", + "modelVersion": "6.0.0", "license": "", "devDependencies": { }, diff --git a/PageAndData04/04_Complete/build-profile.json5 b/PageAndData04/04_Complete/build-profile.json5 index 0f0c092..4e34a0f 100644 --- a/PageAndData04/04_Complete/build-profile.json5 +++ b/PageAndData04/04_Complete/build-profile.json5 @@ -8,7 +8,7 @@ "name": "default", "signingConfig": "default", "compatibleSdkVersion": "5.0.5(17)", - "targetSdkVersion": "5.0.5(17)", + "targetSdkVersion": "6.0.0(20)", "runtimeOS": "HarmonyOS" } ] diff --git a/PageAndData04/04_Complete/hvigor/hvigor-config.json5 b/PageAndData04/04_Complete/hvigor/hvigor-config.json5 index 0c81a69..c2e4bf9 100644 --- a/PageAndData04/04_Complete/hvigor/hvigor-config.json5 +++ b/PageAndData04/04_Complete/hvigor/hvigor-config.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.5", + "modelVersion": "6.0.0", "dependencies": { }, "execution": { diff --git a/PageAndData04/04_Complete/oh-package.json5 b/PageAndData04/04_Complete/oh-package.json5 index ccfb3c1..f5ffda2 100644 --- a/PageAndData04/04_Complete/oh-package.json5 +++ b/PageAndData04/04_Complete/oh-package.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.5", + "modelVersion": "6.0.0", "license": "", "devDependencies": { }, diff --git a/PageAndData04/04_StartingPoint/build-profile.json5 b/PageAndData04/04_StartingPoint/build-profile.json5 index 0f0c092..4e34a0f 100644 --- a/PageAndData04/04_StartingPoint/build-profile.json5 +++ b/PageAndData04/04_StartingPoint/build-profile.json5 @@ -8,7 +8,7 @@ "name": "default", "signingConfig": "default", "compatibleSdkVersion": "5.0.5(17)", - "targetSdkVersion": "5.0.5(17)", + "targetSdkVersion": "6.0.0(20)", "runtimeOS": "HarmonyOS" } ] diff --git a/PageAndData04/04_StartingPoint/hvigor/hvigor-config.json5 b/PageAndData04/04_StartingPoint/hvigor/hvigor-config.json5 index 0c81a69..c2e4bf9 100644 --- a/PageAndData04/04_StartingPoint/hvigor/hvigor-config.json5 +++ b/PageAndData04/04_StartingPoint/hvigor/hvigor-config.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.5", + "modelVersion": "6.0.0", "dependencies": { }, "execution": { diff --git a/PageAndData04/04_StartingPoint/oh-package.json5 b/PageAndData04/04_StartingPoint/oh-package.json5 index ccfb3c1..f5ffda2 100644 --- a/PageAndData04/04_StartingPoint/oh-package.json5 +++ b/PageAndData04/04_StartingPoint/oh-package.json5 @@ -1,5 +1,5 @@ { - "modelVersion": "5.0.5", + "modelVersion": "6.0.0", "license": "", "devDependencies": { }, diff --git a/README.md b/README.md index f6b497e..8cd6e0c 100644 --- a/README.md +++ b/README.md @@ -5,12 +5,14 @@ 本实例通过使用ArkUI、ArkWeb、ArkData的一些基础能力,逐步完成了一个简单的工程,内容包括登录页面、应用页面,功能包括从网络获取资源、使用数据库保存资源等。 ### 工程介绍 + 该工程配套鸿蒙第一课初级课程,PageAndData01配套鸿蒙第一课初级课程《从简单页面开始》,PageAndData02配套鸿蒙第一课初级课程《构建更加丰富的页面》,PageAndData03配套鸿蒙第一课初级课程《从网络获取数据》,PageAndData04配套鸿蒙第一课初级课程《保存应用数据》。 上述文件夹包含如下三部分,以PageAndData02为例,02_StartingPoint文件夹为截止到本节内容之前不包括本节内容的所有代码,用于跟随文档逐步完成。02_Resources文件夹为本节内容中需要用到的图片、文本等资源文件。02_Complete文件夹为根据本节内容逐步操作后,得到的包括之前章节内容及本节内容的代码包,便于开发者直接查看完整工程的源码。 + ### 效果预览 | 登录页 | 首页 | 设置页 | 目标页 | -|---------------------------------|---------------------------------|-----------------------------------|--------------------------------| +| ------------------------------- | ------------------------------- | --------------------------------- | ------------------------------ | | ![image](screenshots/login.png) | ![image](screenshots/index.png) | ![image](screenshots/setting.png) | ![image](screenshots/goal.png) | ### 使用说明: @@ -21,14 +23,16 @@ 保存应用数据涉及数据库内容,模拟器当前支持,若使用模拟器测试,由于网络章节内容模拟器不支持,首页部分内容显示不全为正常现象,但依旧建议开发者使用真机进行测试。 ### 相关权限 + 不涉及 ### 依赖 + 不涉及 ### 约束与限制 + 1. 本示例仅支持标准系统上运行,支持设备:华为手机。 2. HarmonyOS系统:HarmonyOS 5.0.5 Release及以上。 -3. DevEco Studio版本:DevEco Studio 5.0.5 Release及以上。 -4. HarmonyOS SDK版本:HarmonyOS 5.0.5 Release SDK及以上。 - +3. DevEco Studio版本:DevEco Studio 6.0.0 Release及以上。 +4. HarmonyOS SDK版本:HarmonyOS 6.0.0 Release SDK及以上。 -- Gitee