diff --git a/Ability/PageAbility/LICENSE b/Ability/PageAbility/LICENSE
new file mode 100644
index 0000000000000000000000000000000000000000..80576ef141485b36eea4aebf25af97020bc2de44
--- /dev/null
+++ b/Ability/PageAbility/LICENSE
@@ -0,0 +1,78 @@
+ Copyright (c) 2021 Huawei Device Co., Ltd. All rights reserved.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+Apache License, Version 2.0
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License.
+
+Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License.
+
+Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution.
+
+You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+1.You must give any other recipients of the Work or Derivative Works a copy of this License; and
+2.You must cause any modified files to carry prominent notices stating that You changed the files; and
+3.You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+4.If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
+
+You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions.
+
+Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks.
+
+This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty.
+
+Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability.
+
+In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability.
+
+While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
\ No newline at end of file
diff --git a/Ability/PageAbility/README.md b/Ability/PageAbility/README.md
index 1586e959ede664d5e6d51c66ca6e914593515558..6d35cf797453ec067ac8f2560f85d8c3273fa830 100644
--- a/Ability/PageAbility/README.md
+++ b/Ability/PageAbility/README.md
@@ -1,2 +1,164 @@
-tmp
+# 介绍
+## 应用场景
+
+本篇Codelab主要是介绍在OpenHarmony上如何进行Ability内部的页面跳转和Ability之间的页面跳转。本片Codelab基于eTS语言。应用场景主要分为三种:
+
+1、同一个Ability内部页面跳转;
+
+2、跳转到指定其他Ability的首页;
+
+3、跳转到指定其他Ability的指定页面(非首页);
+
+**图 1**
+
+
+# 相关概念
+
+Ability:Ability是应用所具备能力的抽象,也是应用程序的重要组成部分。
+
+[PageAbility](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/ability/page-ability.md):Page模板(以下简称“Page”)是FA唯一支持的模板,用于提供与用户交互的能力。
+
+# 搭建OpenHarmony环境
+
+完成本篇Codelab我们首先要完成开发环境的搭建,本示例以**Hi3516DV300**开发板为例,参照以下步骤进行:
+
+1. [获取OpenHarmony系统版本](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/get-code/sourcecode-acquire.md#%E8%8E%B7%E5%8F%96%E6%96%B9%E5%BC%8F3%E4%BB%8E%E9%95%9C%E5%83%8F%E7%AB%99%E7%82%B9%E8%8E%B7%E5%8F%96):标准系统解决方案(二进制)
+
+ 以3.0版本为例:
+
+ 
+
+2. 搭建烧录环境
+
+ 1. [完成DevEco Device Tool的安装](https://device.harmonyos.com/cn/docs/documentation/guide/install_windows-0000001050164976)
+
+ 2. [完成Hi3516开发板的烧录](https://device.harmonyos.com/cn/docs/documentation/guide/hi3516_upload-0000001052148681)
+
+3. 搭建开发环境
+
+ 1. 开始前请参考[下载与安装软件](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/software_install-0000001053582415)、[配置开发环境](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/configuring-openharmony-sdk.md),完成DevEco Studio的安装和开发环境配置。
+ 2. 开发环境配置完成后,请参考[使用工程向导](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/use-wizard-to-create-project.md)创建工程,使用JS或者eTS语言开发、“Application”为例,模板选择“\[Standard\]Empty Ability”。
+ 3. 工程创建完成后,可参考下面章节进行代码编写,使用真机进行调测:
+
+ - [配置OpenHarmony应用签名信息](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/configuring-openharmony-app-signature.md)
+ - [hap包安装指导](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/installing-openharmony-app.md)
+ - 工程示例:
+
+ 
+
+# 任务一:Ability内页面跳转
+
+- 新建项目时language选择eTS;
+
+- 在eTS目录如下,pages目录下有index.ets和second.ets;
+
+ 
+
+ 1. 在index.ets中引入router模块;
+
+ ```
+ import router from '@system.router';
+ ```
+
+ 2. 为按钮添加文本、样式和点击事件,点击后跳转到second页面,使用router.push实现跳转;
+
+ ```
+ Button() {
+ Text('Click to ability1 second page')
+ .fontSize(25)
+ .fontWeight(FontWeight.Medium)
+ }
+ .padding({ top: 20, left: 20, right: 20, bottom: 20 })
+ .margin({ top: 20 })
+ .onClick(() => {
+ router.push({ uri: 'pages/second' })
+ })
+ ```
+
+# 任务二:跳转到指定Ability首页
+
+- 新建Ability,名为MainAbility2,在ets目录下右键新建New-\>Ability-\>Empty Page Ability\(eTS\);
+
+
+
+- 目录结构如下:
+
+
+
+1. 在MainAbility/pages/index.ets中引入featureAbility模块;
+
+ ```
+ import featureAbility from '@ohos.ability.featureAbility';
+ ```
+
+2. 在MainAbility/pages/index.ets中添加按钮,并为按钮添加文本、样式和点击事件,点击后跳转到MainAbility2的index页面,通过featureAbility.startAbility实现,调用featureAbility.startAbility时,这里参数want里主要传递bundleName和abilityName;详情请参看[启动本地PageAbility](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/ability/page-ability.md#%E5%90%AF%E5%8A%A8%E6%9C%AC%E5%9C%B0pageability)。点击按钮触发点击事件后会默认跳转到MainAbility2的index页面。
+
+ ```
+ Button() {
+ Text('Click to ability2 index page')
+ .fontSize(25)
+ }
+ .padding({ top: 20, left: 20, right: 20, bottom: 20 })
+ .margin({ top: 20 })
+ .onClick(() => {
+ //启动Ability
+ let str = {
+ "want": {
+ "bundleName": "com.example.pageabilityopenh",
+ "abilityName": "com.example.pageabilityopenh.MainAbility2",
+ },
+ };
+ featureAbility.startAbility(str)
+ .then((data) => {
+ console.info('Operation successful. Data: ' + JSON.stringify(data))
+ }).catch((error) => {
+ console.error('Operation failed. Cause: ' + JSON.stringify(error));
+ })
+ })
+ ```
+
+# 任务三:跳转到指定Ability指定页面(非首页)
+
+要跳转到指定Ability指定页面,只需要在本文档任务二的基础上,另外在want里添加parameters参数,url设置为指定页面,如:‘pages/second’即可。
+
+```
+Button() {
+ Text('Click to ability2 second page')
+ .fontSize(25)
+ }
+ .padding({ top: 20, left: 20, right: 20, bottom: 20 })
+ .margin({ top: 20 })
+ .onClick(() => {
+ //启动ability
+ let str = {
+ "want": {
+ "bundleName": "com.example.pageabilityopenh",
+ "abilityName": "com.example.pageabilityopenh.MainAbility2",
+ "parameters": {
+ url: 'pages/second'
+ }
+ },
+ };
+ featureAbility.startAbility(str)
+ .then((data) => {
+ console.info('Operation successful. Data: ' + JSON.stringify(data))
+ }).catch((error) => {
+ console.error('Operation failed. Cause: ' + JSON.stringify(error));
+ })
+ })
+```
+
+# 恭喜你
+
+学会了如何进行Ability 内部的页面跳转和Ability之间的页面跳转。即如下三种场景:
+
+1、同一个Ability内部页面跳转;
+
+2、跳转到指定其他Ability的首页;
+
+3、跳转到指定其他Ability的指定页面(非首页);
+
+# 参考
+
+[gitee地址](https://gitee.com/openharmony/codelabs/tree/master/Ability/PageAbility)
diff --git a/Ability/PageAbility/build.gradle b/Ability/PageAbility/build.gradle
new file mode 100644
index 0000000000000000000000000000000000000000..8091e0ece10575993ba570722aadd6788144f460
--- /dev/null
+++ b/Ability/PageAbility/build.gradle
@@ -0,0 +1,34 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+apply plugin: 'com.huawei.ohos.app'
+
+//For instructions on signature configuration, see https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ide_debug_device-0000001053822404#section1112183053510
+ohos {
+ compileSdkVersion 7
+ supportSystem "standard"
+}
+
+buildscript {
+ repositories {
+ maven {
+ url 'https://repo.huaweicloud.com/repository/maven/'
+ }
+ maven {
+ url 'https://developer.huawei.com/repo/'
+ }
+ }
+ dependencies {
+ classpath 'com.huawei.ohos:hap:3.0.3.4'
+ classpath 'com.huawei.ohos:decctest:1.2.6.0'
+ }
+}
+
+allprojects {
+ repositories {
+ maven {
+ url 'https://repo.huaweicloud.com/repository/maven/'
+ }
+ maven {
+ url 'https://developer.huawei.com/repo/'
+ }
+ }
+}
diff --git a/Ability/PageAbility/entry/.gitignore b/Ability/PageAbility/entry/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..7d5b7a94f4dcf381f03ff21f28f8a2494b58023f
--- /dev/null
+++ b/Ability/PageAbility/entry/.gitignore
@@ -0,0 +1,2 @@
+/build
+/node_modules
diff --git a/Ability/PageAbility/entry/build.gradle b/Ability/PageAbility/entry/build.gradle
new file mode 100644
index 0000000000000000000000000000000000000000..1587dd1948941f3eaaf092ae6cae7969cb6895ff
--- /dev/null
+++ b/Ability/PageAbility/entry/build.gradle
@@ -0,0 +1,21 @@
+apply plugin: 'com.huawei.ohos.hap'
+//For instructions on signature configuration, see https://developer.harmonyos.com/cn/docs/documentation/doc-guides/ide_debug_device-0000001053822404#section1112183053510
+ohos {
+ compileSdkVersion 7
+ defaultConfig {
+ compatibleSdkVersion 7
+ }
+ buildTypes {
+ release {
+ proguardOpt {
+ proguardEnabled false
+ rulesFiles 'proguard-rules.pro'
+ }
+ }
+ }
+}
+
+dependencies {
+ implementation fileTree(dir: 'libs', include: ['*.jar', '*.har'])
+ testImplementation 'junit:junit:4.13.1'
+}
diff --git a/Ability/PageAbility/entry/proguard-rules.pro b/Ability/PageAbility/entry/proguard-rules.pro
new file mode 100644
index 0000000000000000000000000000000000000000..f7666e47561d514b2a76d5a7dfbb43ede86da92a
--- /dev/null
+++ b/Ability/PageAbility/entry/proguard-rules.pro
@@ -0,0 +1 @@
+# config module specific ProGuard rules here.
\ No newline at end of file
diff --git a/Ability/PageAbility/entry/src/main/config.json b/Ability/PageAbility/entry/src/main/config.json
new file mode 100644
index 0000000000000000000000000000000000000000..55adb1573389502acec92a283847fbe3ee71249c
--- /dev/null
+++ b/Ability/PageAbility/entry/src/main/config.json
@@ -0,0 +1,94 @@
+{
+ "app": {
+ "bundleName": "com.example.pageabilityopenh",
+ "vendor": "example",
+ "version": {
+ "code": 1000000,
+ "name": "1.0.0"
+ }
+ },
+ "deviceConfig": {},
+ "module": {
+ "package": "com.example.pageabilityopenh",
+ "name": ".MyApplication",
+ "mainAbility": ".MainAbility",
+ "deviceType": [
+ "phone"
+ ],
+ "distro": {
+ "deliveryWithInstall": true,
+ "moduleName": "entry",
+ "moduleType": "entry",
+ "installationFree": false
+ },
+ "abilities": [
+ {
+ "skills": [
+ {
+ "entities": [
+ "entity.system.home"
+ ],
+ "actions": [
+ "action.system.home"
+ ]
+ }
+ ],
+ "orientation": "unspecified",
+ "visible": true,
+ "srcPath": "MainAbility",
+ "name": ".MainAbility",
+ "srcLanguage": "ets",
+ "icon": "$media:icon",
+ "description": "$string:description_mainability",
+ "formsEnabled": false,
+ "label": "$string:entry_MainAbility",
+ "type": "page",
+ "launchType": "standard"
+ },
+ {
+ "orientation": "unspecified",
+ "srcPath": "MainAbility2",
+ "name": ".MainAbility2",
+ "srcLanguage": "ets",
+ "icon": "$media:icon",
+ "description": "$string:description_mainability2",
+ "formsEnabled": false,
+ "label": "$string:entry_MainAbility",
+ "type": "page",
+ "launchType": "standard"
+ }
+ ],
+ "js": [
+ {
+ "mode": {
+ "syntax": "ets",
+ "type": "pageAbility"
+ },
+ "pages": [
+ "pages/index",
+ "pages/second"
+ ],
+ "name": ".MainAbility",
+ "window": {
+ "designWidth": 720,
+ "autoDesignWidth": false
+ }
+ },
+ {
+ "mode": {
+ "syntax": "ets",
+ "type": "pageAbility"
+ },
+ "pages": [
+ "pages/index",
+ "pages/second"
+ ],
+ "name": ".MainAbility2",
+ "window": {
+ "designWidth": 720,
+ "autoDesignWidth": false
+ }
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/Ability/PageAbility/entry/src/main/ets/MainAbility/app.ets b/Ability/PageAbility/entry/src/main/ets/MainAbility/app.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b7a0995c8e441cac86e21e06e7c9071664482b1c
--- /dev/null
+++ b/Ability/PageAbility/entry/src/main/ets/MainAbility/app.ets
@@ -0,0 +1,8 @@
+export default {
+ onCreate() {
+ console.info('Application onCreate')
+ },
+ onDestroy() {
+ console.info('Application onDestroy')
+ },
+}
\ No newline at end of file
diff --git a/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/index.ets b/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/index.ets
new file mode 100644
index 0000000000000000000000000000000000000000..56c1c1f179f141cd423b032a6d1a29ef7b0fe8a2
--- /dev/null
+++ b/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/index.ets
@@ -0,0 +1,76 @@
+import router from '@system.router';
+import featureAbility from '@ohos.ability.featureAbility';
+
+@Entry
+@Component
+struct Index {
+ build() {
+ Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) {
+ Text('This is ability1 index page')
+ .fontSize(25)
+ .fontWeight(FontWeight.Medium)
+ Button() {
+ Text('Click to ability1 second page')
+ .fontSize(25)
+ .fontWeight(FontWeight.Medium)
+ .margin({left:20,right:20})
+ }
+ .padding({ top: 20, left: 20, right: 20, bottom: 20 })
+ .margin({ top: 20 })
+ .onClick(() => {
+ router.push({ uri: 'pages/second' })
+ })
+
+ Button() {
+ Text('Click to ability2 index page')
+ .fontSize(25)
+ .margin({left:20,right:20})
+ }
+ .padding({ top: 20, left: 20, right: 20, bottom: 20 })
+ .margin({ top: 20 })
+ .onClick(() => {
+ //启动ability
+ let str = {
+ "want": {
+ "bundleName": "com.example.pageabilityopenh",
+ "abilityName": "com.example.pageabilityopenh.MainAbility2",
+ },
+ };
+ featureAbility.startAbility(str)
+ .then((data) => {
+ console.info('Operation successful. Data: ' + JSON.stringify(data))
+ }).catch((error) => {
+ console.error('Operation failed. Cause: ' + JSON.stringify(error));
+ })
+ })
+
+ Button() {
+ Text('Click to ability2 second page')
+ .fontSize(25)
+ .margin({left:20,right:20})
+ }
+ .padding({ top: 20, left: 20, right: 20, bottom: 20 })
+ .margin({ top: 20 })
+ .onClick(() => {
+ //启动ability
+ let str = {
+ "want": {
+ "bundleName": "com.example.pageabilityopenh",
+ "abilityName": "com.example.pageabilityopenh.MainAbility2",
+ "parameters": {
+ url: 'pages/second'
+ }
+ },
+ };
+ featureAbility.startAbility(str)
+ .then((data) => {
+ console.info('Operation successful. Data: ' + JSON.stringify(data))
+ }).catch((error) => {
+ console.error('Operation failed. Cause: ' + JSON.stringify(error));
+ })
+ })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/second.ets b/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/second.ets
new file mode 100644
index 0000000000000000000000000000000000000000..e496b61a097a8600cb2ef6b2881cc39a8979b69e
--- /dev/null
+++ b/Ability/PageAbility/entry/src/main/ets/MainAbility/pages/second.ets
@@ -0,0 +1,17 @@
+@Entry
+@Component
+struct Second {
+ build() {
+ Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) {
+ Button() {
+ Text('This is ability1 second page')
+ .fontSize(25)
+ .fontWeight(FontWeight.Medium)
+ .margin({left:20,right:20})
+ }
+ .padding({ top: 20, left: 20, right: 20, bottom: 20 })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/Ability/PageAbility/entry/src/main/ets/MainAbility2/app.ets b/Ability/PageAbility/entry/src/main/ets/MainAbility2/app.ets
new file mode 100644
index 0000000000000000000000000000000000000000..b7a0995c8e441cac86e21e06e7c9071664482b1c
--- /dev/null
+++ b/Ability/PageAbility/entry/src/main/ets/MainAbility2/app.ets
@@ -0,0 +1,8 @@
+export default {
+ onCreate() {
+ console.info('Application onCreate')
+ },
+ onDestroy() {
+ console.info('Application onDestroy')
+ },
+}
\ No newline at end of file
diff --git a/Ability/PageAbility/entry/src/main/ets/MainAbility2/pages/index.ets b/Ability/PageAbility/entry/src/main/ets/MainAbility2/pages/index.ets
new file mode 100644
index 0000000000000000000000000000000000000000..4300ec8f16e6fe47986e99de7b7e44d050fb4178
--- /dev/null
+++ b/Ability/PageAbility/entry/src/main/ets/MainAbility2/pages/index.ets
@@ -0,0 +1,17 @@
+@Entry
+@Component
+struct Index {
+ build() {
+ Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) {
+ Button() {
+ Text('This is ability2 index page')
+ .fontSize(25)
+ .fontWeight(FontWeight.Medium)
+ .margin({left:20,right:20})
+ }
+ .padding({ top: 20, left: 20, right: 20, bottom: 20 })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/Ability/PageAbility/entry/src/main/ets/MainAbility2/pages/second.ets b/Ability/PageAbility/entry/src/main/ets/MainAbility2/pages/second.ets
new file mode 100644
index 0000000000000000000000000000000000000000..89c5915373e0314f03c6df8fd99fcb71c130d58b
--- /dev/null
+++ b/Ability/PageAbility/entry/src/main/ets/MainAbility2/pages/second.ets
@@ -0,0 +1,17 @@
+@Entry
+@Component
+struct Second {
+ build() {
+ Flex({ direction: FlexDirection.Column, alignItems: ItemAlign.Center, justifyContent: FlexAlign.Center }) {
+ Button() {
+ Text('This is ability2 second page')
+ .fontSize(25)
+ .fontWeight(FontWeight.Medium)
+ .margin({left:20,right:20})
+ }
+ .padding({ top: 20, left: 20, right: 20, bottom: 20 })
+ }
+ .width('100%')
+ .height('100%')
+ }
+}
\ No newline at end of file
diff --git a/Ability/PageAbility/entry/src/main/resources/base/element/string.json b/Ability/PageAbility/entry/src/main/resources/base/element/string.json
new file mode 100644
index 0000000000000000000000000000000000000000..edd8e4399a76d10c88dd2e9018baab8b5672d33b
--- /dev/null
+++ b/Ability/PageAbility/entry/src/main/resources/base/element/string.json
@@ -0,0 +1,20 @@
+{
+ "string": [
+ {
+ "name": "entry_MainAbility",
+ "value": "entry_MainAbility"
+ },
+ {
+ "name": "description_mainability",
+ "value": "ETS_Empty Ability"
+ },
+ {
+ "name": "description_mainability2",
+ "value": "ETS_Empty Ability"
+ },
+ {
+ "name": "entry_MainAbility2",
+ "value": "entry_MainAbility2"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/Media/VideoOpenHarmony/entry/src/main/js/default/common/images/icon.png b/Ability/PageAbility/entry/src/main/resources/base/media/icon.png
similarity index 100%
rename from Media/VideoOpenHarmony/entry/src/main/js/default/common/images/icon.png
rename to Ability/PageAbility/entry/src/main/resources/base/media/icon.png
diff --git a/Ability/PageAbility/figures/zh-cn_image_0000001188791474.png b/Ability/PageAbility/figures/zh-cn_image_0000001188791474.png
new file mode 100644
index 0000000000000000000000000000000000000000..5600b26e2f3ec00b50ef85ea2ee1b9e82e7f1133
Binary files /dev/null and b/Ability/PageAbility/figures/zh-cn_image_0000001188791474.png differ
diff --git a/Ability/PageAbility/figures/zh-cn_image_0000001189113124.png b/Ability/PageAbility/figures/zh-cn_image_0000001189113124.png
new file mode 100644
index 0000000000000000000000000000000000000000..cf1049e7bc35cbb07a38b056a42934c48299a668
Binary files /dev/null and b/Ability/PageAbility/figures/zh-cn_image_0000001189113124.png differ
diff --git a/Ability/PageAbility/figures/zh-cn_image_0000001234154343.png b/Ability/PageAbility/figures/zh-cn_image_0000001234154343.png
new file mode 100644
index 0000000000000000000000000000000000000000..8d5e7c942e75c66d39c557346bb92aa9f72228f9
Binary files /dev/null and b/Ability/PageAbility/figures/zh-cn_image_0000001234154343.png differ
diff --git a/Ability/PageAbility/figures/zh-cn_image_0000001234372249.png b/Ability/PageAbility/figures/zh-cn_image_0000001234372249.png
new file mode 100644
index 0000000000000000000000000000000000000000..84be09d22aef5ba00f9064fb6e7fddad411f8382
Binary files /dev/null and b/Ability/PageAbility/figures/zh-cn_image_0000001234372249.png differ
diff --git "a/Ability/PageAbility/figures/\345\217\226\347\211\210\346\234\254.png" "b/Ability/PageAbility/figures/\345\217\226\347\211\210\346\234\254.png"
new file mode 100644
index 0000000000000000000000000000000000000000..9a4203fdba7d630c4d6cf0b60685f27afd85d28a
Binary files /dev/null and "b/Ability/PageAbility/figures/\345\217\226\347\211\210\346\234\254.png" differ
diff --git "a/Ability/PageAbility/figures/\346\210\252\345\233\276.png" "b/Ability/PageAbility/figures/\346\210\252\345\233\276.png"
new file mode 100644
index 0000000000000000000000000000000000000000..3ce177f4d3e03464a38d31472b80e82775c68874
Binary files /dev/null and "b/Ability/PageAbility/figures/\346\210\252\345\233\276.png" differ
diff --git a/Ability/PageAbility/gradle/wrapper/gradle-wrapper.jar b/Ability/PageAbility/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000000000000000000000000000000000000..490fda8577df6c95960ba7077c43220e5bb2c0d9
Binary files /dev/null and b/Ability/PageAbility/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/Ability/PageAbility/gradle/wrapper/gradle-wrapper.properties b/Ability/PageAbility/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..f59159e865d4b59feb1b8c44b001f62fc5d58df4
--- /dev/null
+++ b/Ability/PageAbility/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://repo.huaweicloud.com/gradle/gradle-6.3-bin.zip
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/Ability/PageAbility/public_sys-resources/icon-caution.gif b/Ability/PageAbility/public_sys-resources/icon-caution.gif
new file mode 100644
index 0000000000000000000000000000000000000000..6e90d7cfc2193e39e10bb58c38d01a23f045d571
Binary files /dev/null and b/Ability/PageAbility/public_sys-resources/icon-caution.gif differ
diff --git a/Ability/PageAbility/public_sys-resources/icon-danger.gif b/Ability/PageAbility/public_sys-resources/icon-danger.gif
new file mode 100644
index 0000000000000000000000000000000000000000..6e90d7cfc2193e39e10bb58c38d01a23f045d571
Binary files /dev/null and b/Ability/PageAbility/public_sys-resources/icon-danger.gif differ
diff --git a/Ability/PageAbility/public_sys-resources/icon-note.gif b/Ability/PageAbility/public_sys-resources/icon-note.gif
new file mode 100644
index 0000000000000000000000000000000000000000..6314297e45c1de184204098efd4814d6dc8b1cda
Binary files /dev/null and b/Ability/PageAbility/public_sys-resources/icon-note.gif differ
diff --git a/Ability/PageAbility/public_sys-resources/icon-notice.gif b/Ability/PageAbility/public_sys-resources/icon-notice.gif
new file mode 100644
index 0000000000000000000000000000000000000000..86024f61b691400bea99e5b1f506d9d9aef36e27
Binary files /dev/null and b/Ability/PageAbility/public_sys-resources/icon-notice.gif differ
diff --git a/Ability/PageAbility/public_sys-resources/icon-tip.gif b/Ability/PageAbility/public_sys-resources/icon-tip.gif
new file mode 100644
index 0000000000000000000000000000000000000000..93aa72053b510e456b149f36a0972703ea9999b7
Binary files /dev/null and b/Ability/PageAbility/public_sys-resources/icon-tip.gif differ
diff --git a/Ability/PageAbility/public_sys-resources/icon-warning.gif b/Ability/PageAbility/public_sys-resources/icon-warning.gif
new file mode 100644
index 0000000000000000000000000000000000000000..6e90d7cfc2193e39e10bb58c38d01a23f045d571
Binary files /dev/null and b/Ability/PageAbility/public_sys-resources/icon-warning.gif differ
diff --git a/Ability/PageAbility/settings.gradle b/Ability/PageAbility/settings.gradle
new file mode 100644
index 0000000000000000000000000000000000000000..4773db73233a570c2d0c01a22e75321acfbf7a07
--- /dev/null
+++ b/Ability/PageAbility/settings.gradle
@@ -0,0 +1 @@
+include ':entry'
diff --git a/Data/Database/README.md b/Data/Database/README.md
index e12613c597b8ae02ff68662c00742eae4c374a43..4c78481f490197320f1ae63a636e7d971af2c54f 100644
--- a/Data/Database/README.md
+++ b/Data/Database/README.md
@@ -1,4 +1,485 @@
-#Database
+# 1.介绍
-简介 • JSUI轻量级存储为应用提供key-value键值型的文件数据处理能力,支持应用对数据进行轻量级存储及查询。数据存储形式为键值对,
-键的类型为字符串型,本示例用于展示轻量级存储的实现。
\ No newline at end of file
+OpenHarmony在数据管理模块中提供了轻量级存储的能力。轻量级存储为应用提供key-value键值型的文件数据处理能力,支持应用对数据进行轻量级存储及查询。数据存储形式为键值对,键的类型为字符串型,值的存储数据类型包括数字型、字符型、布尔型。本篇Codelab将介绍基于JS扩展的类Web开发范式的轻量级数据库的创建、数据的增加/删除/修改/查询等操作方法,让您快速了解轻量级存储能力并能够实现数据存储。效果图如下:
+
+
+
+# 2.相关概念
+
+[轻量级存储](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-data-storage.md)
+
+# 3.搭建OpenHarmony环境
+
+完成本篇Codelab我们首先要完成开发环境的搭建,本示例以**Hi3516DV300**开发板为例,参照以下步骤进行:
+
+1. [获取OpenHarmony系统版本](https://gitee.com/openharmony/docs/blob/master/zh-cn/device-dev/get-code/sourcecode-acquire.md#%E8%8E%B7%E5%8F%96%E6%96%B9%E5%BC%8F3%E4%BB%8E%E9%95%9C%E5%83%8F%E7%AB%99%E7%82%B9%E8%8E%B7%E5%8F%96):标准系统解决方案(二进制)
+
+ 以3.0版本为例:
+
+ 
+
+2. 搭建烧录环境
+
+ 1. [完成DevEco Device Tool的安装](https://device.harmonyos.com/cn/docs/documentation/guide/install_windows-0000001050164976)
+
+ 2. [完成Hi3516开发板的烧录](https://device.harmonyos.com/cn/docs/documentation/guide/hi3516_upload-0000001052148681)
+
+3. 搭建开发环境
+
+ 1. 开始前请参考[下载与安装软件](https://developer.harmonyos.com/cn/docs/documentation/doc-guides/software_install-0000001053582415)、[配置开发环境](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/configuring-openharmony-sdk.md),完成DevEco Studio的安装和开发环境配置。
+ 2. 开发环境配置完成后,请参考[使用工程向导](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/use-wizard-to-create-project.md)创建工程,使用JS或者eTS语言开发、“Application”为例,模板选择“\[Standard\]Empty Ability”。
+ 3. 工程创建完成后,可参考下面章节进行代码编写,使用真机进行调测:
+
+ - [配置OpenHarmony应用签名信息](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/configuring-openharmony-app-signature.md)
+ - [hap包安装指导](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/quick-start/installing-openharmony-app.md)
+ - 工程示例:
+
+ 
+
+
+
+# 4.任务一:完成页面布局
+
+1. 设置标题。
+
+ ```
+
+```
+
+需要注意的是detail.hml只是展示了页面的布局结构,其具体的布局样式需要参考detail.css文件。
+
+# 跳转详情页
+
+完成新闻列表页面和详情页的布局后,需要实现页面跳转的功能。新闻列表页面中绑定一个list-item的点击事件itemClick,其中传入的参数是news(新闻的详细数据)。
+
+```
+
+```
+
+在JS中页面跳转需要在JS文件的头部引入如下一行代码:
+
+```
+import router from '@system.router';
+```
+
+实现list-item的点击事件itemClick,其代码如下所示:
+
+```
+itemClick(news) {
+ // 跳转到详情页面
+ router.push({
+ uri: 'pages/detail/detail',
+ params: {
+ 'title': news.title,
+ 'type': news.type,
+ 'imgUrl': news.imgUrl,
+ 'reads': news.reads,
+ 'likes': news.likes,
+ 'content': news.content
+ }
+ });
+}
+```
+# 设备发现
+
+首先给分享按钮添加一个分享事件toShare,代码如下所示:
+
+```
+
+```
+
+然后调用getTrustedDeviceListSync\(\),获取所有可信设备的列表,代码如下所示:
+
+```
+import deviceManager from '@ohos.distributedHardware.deviceManager';
+
+toShare() {
+ // 创建设备管理实例
+ deviceManager.createDeviceManager('com.huawei.codelab', (err, data) => {
+ if (err) {
+ return;
+ }
+ this.deviceMag = data;
+ // 获取所有可信设备的列表
+ this.deviceList = this.deviceMag.getTrustedDeviceListSync();
+ });
+ // 循环遍历设备列表,获取设备名称和设备Id
+ for (let i = 0; i < this.deviceList.length; i++) {
+ this.deviceList[i] = {
+ deviceName: this.deviceList[i].deviceName,
+ deviceId: this.deviceList[i].deviceId,
+ checked: false
+ };
+ }
+ this.$element('showDialog').show();
+ }
+```
+
+最后自定义dialog弹窗显示所有可信设备,代码如下所示:
+
+```
+
+```
+
+最终实现的效果如下所示:
+
+
+
+> **说明:**
+>本工程项目包含getTrustedDeviceListSync\(\)获取所有可信设备的列表方法,请选择API 7或以上版本。
+# 分布式拉起
+
+弹出设备列表后,选择设备并点击“确定”按钮,将会分布式拉起另外一台设备,其具体实现代码如下所示:
+
+```
+chooseComform() {
+ this.$element('showDialog').close();
+ for (let i = 0; i < this.deviceList.length; i++) {
+ // 判断设备是否被选中
+ if (this.deviceList[i].checked) {
+ const params = {
+ url: 'pages/detail/detail',
+ title: this.title,
+ type: this.type,
+ imgUrl: this.imgUrl,
+ reads: this.reads,
+ likes: this.likes,
+ content: this.content,
+ };
+
+ const wantValue = {
+ bundleName: 'com.huawei.newsdemooh',
+ abilityName: 'com.huawei.newsdemooh.MainAbility',
+ deviceId: this.deviceList[i].deviceId,
+ parameters: params
+ };
+
+ featureAbility.startAbility({
+ want: wantValue
+ }).then((data) => {
+ console.info('featureAbility.startAbility finished, ' + JSON.stringify(data));
+ });
+ console.info('featureAbility.startAbility want=' + JSON.stringify(wantValue));
+ console.info('featureAbility.startAbility end');
+ }
+ }
+}
+```
+# 回顾和总结
+
+本篇Codelab中我们介绍了应用的主页面和详情页。在主页面可以切换新闻类型、滑动新闻列表、点击查看新闻详情;在新闻详情页可以上下滑动查看新闻,并且跨设备拉起。
+
+需要说明的是,本篇codelab是采用JS作为主要编程语言,其中分布式的相关实现也是用的JS提供的相关接口来实现的。
+# 恭喜你
+
+目前你已经成功完成了Codelab并且学到了:
+
+- 如何将一个JS项目部署到OpenHarmony设备上。
+
+- 如何使用list、list-item、tabs、tab-bar等组件。
+- 如何进行布局编写及页面跳转。
+- 如何进行跨设备分布式拉起。
+# 参考
+
+[gitee源码](https://gitee.com/openharmony/codelabs/tree/master/Distributed/NewsDemo)
+
+
+
+
-NewsDemoOpenHarmony
-本篇Codelab是在HarmonyOS 分布式新闻客户端(JAVA)的设计基础上,用JS编程语言重写了一个布局一模一样的新闻客户端,并对OpenHarmony开发板进行了适配。
-Java版本的新闻客户端教会了大家如何使用Java UI中的常用控件、布局编写、页面跳转以及FA的跨设备协同。
-本篇Codelab将使用JS语言进行开发,做一个功能、布局和Java版本完全一样的分布式新闻客户端,大家可以通过这两篇Codelab学习两种编程语言的编码风格和实现区别。
-案例最终效果如下图所示:
-
\ No newline at end of file
diff --git a/Distributed/NewsDemo/build.gradle b/Distributed/NewsDemo/build.gradle
index 0c34fbc0a390a81fdd7c4c98ba1fd97bef4a7fe3..100934a2cd9549dbe84b2048cf0bc72926b7406e 100644
--- a/Distributed/NewsDemo/build.gradle
+++ b/Distributed/NewsDemo/build.gradle
@@ -6,29 +6,29 @@ ohos {
compileSdkVersion 7
supportSystem "standard"
}
-
+
buildscript {
repositories {
maven {
- url 'http://repo.ark.tools.huawei.com/artifactory/maven-public/'
+ url 'https://repo.huaweicloud.com/repository/maven/'
}
maven {
- url 'http://mirrors.tools.huawei.com/maven/'
+ url 'https://developer.huawei.com/repo/'
}
}
dependencies {
- classpath 'com.huawei.ohos:hap:3.0.3.1'
+ classpath 'com.huawei.ohos:hap:3.0.3.4'
classpath 'com.huawei.ohos:decctest:1.2.6.0'
}
}
allprojects {
repositories {
- maven {
- url 'http://repo.ark.tools.huawei.com/artifactory/maven-public/'
+ maven {
+ url 'https://repo.huaweicloud.com/repository/maven/'
}
maven {
- url 'http://mirrors.tools.huawei.com/maven/'
+ url 'https://developer.huawei.com/repo/'
}
}
}
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/app.js b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/app.js
deleted file mode 100644
index f03b98f424deab9e9412e6c41863d1d90c60dfb6..0000000000000000000000000000000000000000
--- a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/app.js
+++ /dev/null
@@ -1,128 +0,0 @@
-/******/ (() => { // webpackBootstrap
-/******/ var __webpack_modules__ = ({
-
-/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=D:\\MY\\Hi3516D\\SDK\\version-Daily_Version-20210926_102043-ohos-sdk-LTS\\windows\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=D:\\MY\\Hi3516D\\SDK\\version-Daily_Version-20210926_102043-ohos-sdk-LTS\\windows\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=D:\\MY\\Hi3516D\\CodeLab\\20210929\\NewsDemo\\entry\\src\\main\\js\\MainAbility\\app.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/app.js":
-/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=D:\MY\Hi3516D\SDK\version-Daily_Version-20210926_102043-ohos-sdk-LTS\windows\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=D:\MY\Hi3516D\SDK\version-Daily_Version-20210926_102043-ohos-sdk-LTS\windows\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=D:\MY\Hi3516D\CodeLab\20210929\NewsDemo\entry\src\main\js\MainAbility\app.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/app.js ***!
- \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-module.exports = function(module, exports, $app_require$){"use strict";
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-var _default = {
- onCreate: function onCreate() {
- console.info("Application onCreate");
- },
- onDestroy: function onDestroy() {
- console.info("Application onDestroy");
- }
-};
-exports["default"] = _default;
-;
-(exports["default"] || module.exports).manifest = __webpack_require__(/*! !!../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/manifest-plugin.js!../../../../.preview/jsManifest/MainAbility/manifest.json */ "./lib/manifest-plugin.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/.preview/jsManifest/MainAbility/manifest.json");
-
-function requireModule(moduleName) {
- const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration',
- 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource']
- var target = ''
- if (systemList.includes(moduleName.replace('@', ''))) {
- target = $app_require$('@app-module/' + moduleName.substring(1));
- return target;
- }
- var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1');
- if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) {
- target = ohosplugin;
- for (let key of shortName.split('.')) {
- target = target[key];
- if(!target) {
- break;
- }
- }
- if (typeof target !== 'undefined') {
- return target;
- }
- }
- if (typeof systemplugin !== 'undefined') {
- target = systemplugin;
- for (let key of shortName.split('.')) {
- target = target[key];
- if(!target) {
- break;
- }
- }
- if (typeof target !== 'undefined') {
- return target;
- }
- }
- target = requireNapi(shortName);
- return target;
-}
-}
-/* generated by ace-loader */
-
-
-/***/ }),
-
-/***/ "./lib/manifest-plugin.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/.preview/jsManifest/MainAbility/manifest.json":
-/*!***********************************************************************************************************************************!*\
- !*** ./lib/manifest-plugin.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/.preview/jsManifest/MainAbility/manifest.json ***!
- \***********************************************************************************************************************************/
-/***/ ((module) => {
-
-"use strict";
-module.exports = JSON.parse('{"appID":"com.huawei.newsdemo","appName":"$string:entry_MainAbility","versionName":"1.0.0","versionCode":1000000,"minPlatformVersion":7,"pages":["pages/index/index","pages/second/second"],"deviceType":["phone"],"window":{"autoDesignWidth":false,"designWidth":720}}');
-
-/***/ })
-
-/******/ });
-/************************************************************************/
-/******/ // The module cache
-/******/ var __webpack_module_cache__ = {};
-/******/
-/******/ // The require function
-/******/ function __webpack_require__(moduleId) {
-/******/ // Check if module is in cache
-/******/ var cachedModule = __webpack_module_cache__[moduleId];
-/******/ if (cachedModule !== undefined) {
-/******/ return cachedModule.exports;
-/******/ }
-/******/ // Create a new module (and put it into the cache)
-/******/ var module = __webpack_module_cache__[moduleId] = {
-/******/ // no module.id needed
-/******/ // no module.loaded needed
-/******/ exports: {}
-/******/ };
-/******/
-/******/ // Execute the module function
-/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
-/******/
-/******/ // Return the exports of the module
-/******/ return module.exports;
-/******/ }
-/******/
-/************************************************************************/
-var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
-(() => {
-/*!*************************************************************************************************!*\
- !*** ../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/app.js?entry ***!
- \*************************************************************************************************/
-var $app_script$ = __webpack_require__(/*! !!../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/script.js!../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/node_modules/babel-loader?presets[]=D:\MY\Hi3516D\SDK\version-Daily_Version-20210926_102043-ohos-sdk-LTS\windows\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=D:\MY\Hi3516D\SDK\version-Daily_Version-20210926_102043-ohos-sdk-LTS\windows\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/resource-reference-script.js!../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/manifest-loader.js?path=D:\MY\Hi3516D\CodeLab\20210929\NewsDemo\entry\src\main\js\MainAbility\app.js!./app.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=D:\\MY\\Hi3516D\\SDK\\version-Daily_Version-20210926_102043-ohos-sdk-LTS\\windows\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=D:\\MY\\Hi3516D\\SDK\\version-Daily_Version-20210926_102043-ohos-sdk-LTS\\windows\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!./lib/manifest-loader.js?path=D:\\MY\\Hi3516D\\CodeLab\\20210929\\NewsDemo\\entry\\src\\main\\js\\MainAbility\\app.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/app.js")
-
- $app_define$('@app-application/app', [], function($app_require$, $app_exports$, $app_module$) {
-
- $app_script$($app_module$, $app_exports$, $app_require$)
- if ($app_exports$.__esModule && $app_exports$.default) {
- $app_module$.exports = $app_exports$.default
- }
-
- })
- $app_bootstrap$('@app-application/app',undefined,undefined)
-})();
-
-/******/ })()
-;
\ No newline at end of file
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/icon_good.png b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/icon_good.png
deleted file mode 100644
index e306e705fe96f10576fa393c3390ea63f26408dd..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/icon_good.png and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/icon_message.png b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/icon_message.png
deleted file mode 100644
index b81007d64cbe5265df414a6dab58cd103cd5a521..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/icon_message.png and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/icon_share.png b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/icon_share.png
deleted file mode 100644
index 1fb1cae93ea21b0712abc939b828ea92ffcb07f4..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/icon_share.png and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/icon_star.png b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/icon_star.png
deleted file mode 100644
index 5ace4c20d2f949b567fc960d205c345273fadee2..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/icon_star.png and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image1.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image1.jpg
deleted file mode 100644
index bfe2ae5849d6b022c2eab195f0fc0c04721db285..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image1.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image10.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image10.jpg
deleted file mode 100644
index 781936afc0354e0f22d1b77339968927c29ffb36..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image10.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image11.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image11.jpg
deleted file mode 100644
index f2862e308f284c5cc87d06c5316d5edec86028f3..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image11.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image12.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image12.jpg
deleted file mode 100644
index 0425178705c4e56888d7df2b308efdfcd7ac8640..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image12.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image13.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image13.jpg
deleted file mode 100644
index b349d81e1dce2d2a553baaf26a5b7fde58d8beac..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image13.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image14.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image14.jpg
deleted file mode 100644
index e3d1ca269b529e890a3e154ac081e93487f5743b..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image14.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image15.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image15.jpg
deleted file mode 100644
index 54775977a85c165759a22b8c8e956ecc59603ff8..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image15.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image16.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image16.jpg
deleted file mode 100644
index 17780bfc6f7f014b1920fa5159cb1a4699a5de49..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image16.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image17.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image17.jpg
deleted file mode 100644
index a34dcd88e1507fd07d509fcffe024dfe7a59ab39..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image17.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image18.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image18.jpg
deleted file mode 100644
index ad79353b9bcfb2cd5b05ef6296f29e3ac826d3ca..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image18.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image19.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image19.jpg
deleted file mode 100644
index 5e8c9267e9632b829492f6d93bfebfcb9c0dc114..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image19.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image2.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image2.jpg
deleted file mode 100644
index 2322f158e6a108b8a4f2bbcb20204bd7974c12d9..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image2.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image3.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image3.jpg
deleted file mode 100644
index 6da8be18ed043a9fc815689e7482e9fe04969f1a..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image3.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image4.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image4.jpg
deleted file mode 100644
index 78bfe6f367b9534e1236725b50a2b98934a76827..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image4.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image5.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image5.jpg
deleted file mode 100644
index bda3780f9779e2169cea6b3cd0aae77bc6e6cc95..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image5.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image6.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image6.jpg
deleted file mode 100644
index 60ebfaa4bd05ca32c40b99f247a9d2998d85dd69..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image6.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image7.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image7.jpg
deleted file mode 100644
index bfc4fb58e7a5ca3062dc775721f9106d333adaec..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image7.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image8.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image8.jpg
deleted file mode 100644
index e58a289f7d136043766f33f168a87af367c370f3..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image8.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image9.jpg b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image9.jpg
deleted file mode 100644
index e7de107a86d8a741fa4112c3df79c60a1ac086e5..0000000000000000000000000000000000000000
Binary files a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/common/images/news_image9.jpg and /dev/null differ
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/manifest.json b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/manifest.json
deleted file mode 100644
index 9c28780bfb981944bc50679f81a3279130fb3188..0000000000000000000000000000000000000000
--- a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/manifest.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "appID": "com.huawei.newsdemo",
- "appName": "$string:entry_MainAbility",
- "versionName": "1.0.0",
- "versionCode": 1000000,
- "minPlatformVersion": 7,
- "pages": [
- "pages/index/index",
- "pages/second/second"
- ],
- "deviceType": [
- "phone"
- ],
- "window": {
- "autoDesignWidth": false,
- "designWidth": 720
- }
-}
\ No newline at end of file
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/pages/index/index.js b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/pages/index/index.js
deleted file mode 100644
index 355d0ba65d983c31c0ad7fbf189c99f86088815f..0000000000000000000000000000000000000000
--- a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/pages/index/index.js
+++ /dev/null
@@ -1,711 +0,0 @@
-/******/ (() => { // webpackBootstrap
-/******/ var __webpack_modules__ = ({
-
-/***/ "./lib/json.js!./lib/style.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/index/index.css":
-/*!***************************************************************************************************************************************!*\
- !*** ./lib/json.js!./lib/style.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/index/index.css ***!
- \***************************************************************************************************************************************/
-/***/ ((module) => {
-
-module.exports = {
- ".container": {
- "flexDirection": "column",
- "justifyContent": "flex-start",
- "alignItems": "center"
- },
- ".tab-bar": {
- "height": "80px"
- },
- ".tab-text": {
- "fontSize": "46px",
- "textAlign": "center"
- },
- ".tab-content": {
- "width": "100%",
- "height": "100%",
- "justifyContent": "center"
- },
- ".item-content": {
- "height": "100%",
- "justifyContent": "center"
- },
- ".list": {
- "width": "100%",
- "paddingTop": "20px",
- "paddingRight": "20px",
- "paddingBottom": "20px",
- "paddingLeft": "20px"
- },
- ".text": {
- "fontSize": "36px",
- "marginTop": "10px",
- "marginRight": "10px",
- "marginBottom": "10px",
- "marginLeft": "10px",
- "height": "180px",
- "maxLines": "4",
- "flexWeight": 3
- },
- ".image": {
- "marginTop": "10px",
- "marginRight": "10px",
- "marginBottom": "10px",
- "marginLeft": "10px",
- "height": "180px",
- "flexWeight": 2
- }
-}
-
-/***/ }),
-
-/***/ "./lib/json.js!./lib/template.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/index/index.hml":
-/*!******************************************************************************************************************************************!*\
- !*** ./lib/json.js!./lib/template.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/index/index.hml ***!
- \******************************************************************************************************************************************/
-/***/ ((module) => {
-
-module.exports = {
- "attr": {
- "debugLine": "pages/index/index:1",
- "className": "container"
- },
- "type": "div",
- "classList": [
- "container"
- ],
- "children": [
- {
- "attr": {
- "debugLine": "pages/index/index:2",
- "index": "0",
- "vertical": "false"
- },
- "type": "tabs",
- "events": {
- "change": "changeNewsType"
- },
- "children": [
- {
- "attr": {
- "debugLine": "pages/index/index:3",
- "className": "tab-bar",
- "mode": "scrollable"
- },
- "type": "tab-bar",
- "classList": [
- "tab-bar"
- ],
- "children": [
- {
- "attr": {
- "debugLine": "pages/index/index:4",
- "className": "tab-text",
- "value": function () {return this.title.name}
- },
- "type": "text",
- "classList": [
- "tab-text"
- ],
- "repeat": {
- "exp": function () {return this.titleList},
- "value": "title"
- }
- }
- ]
- },
- {
- "attr": {
- "debugLine": "pages/index/index:7",
- "className": "tab-content",
- "scrollable": "true"
- },
- "type": "tab-content",
- "classList": [
- "tab-content"
- ],
- "children": [
- {
- "attr": {
- "debugLine": "pages/index/index:8",
- "className": "item-content"
- },
- "type": "div",
- "classList": [
- "item-content"
- ],
- "repeat": {
- "exp": function () {return this.titleList},
- "value": "title"
- },
- "children": [
- {
- "attr": {
- "debugLine": "pages/index/index:9",
- "className": "list"
- },
- "type": "list",
- "classList": [
- "list"
- ],
- "children": [
- {
- "attr": {
- "debugLine": "pages/index/index:10"
- },
- "type": "list-item",
- "repeat": {
- "exp": function () {return this.newsList},
- "value": "news"
- },
- "onBubbleEvents": {
- "click": function (evt) {this.startAbilityContinuation(this.news,evt)}
- },
- "children": [
- {
- "attr": {
- "debugLine": "pages/index/index:11"
- },
- "type": "div",
- "style": {
- "flexDirection": "column"
- },
- "children": [
- {
- "attr": {
- "debugLine": "pages/index/index:13"
- },
- "type": "div",
- "style": {
- "flexDirection": "row"
- },
- "children": [
- {
- "attr": {
- "debugLine": "pages/index/index:14",
- "className": "text",
- "value": function () {return this.news.title}
- },
- "type": "text",
- "classList": [
- "text"
- ]
- },
- {
- "attr": {
- "debugLine": "pages/index/index:17",
- "className": "image",
- "src": function () {return this.news.imgUrl}
- },
- "type": "image",
- "classList": [
- "image"
- ]
- }
- ]
- },
- {
- "attr": {
- "debugLine": "pages/index/index:21"
- },
- "type": "div",
- "style": {
- "height": "2px",
- "width": "100%",
- "backgroundColor": "#97d2d4d4"
- }
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- ]
- }
- ]
-}
-
-/***/ }),
-
-/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
-/*!**********************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
- \**********************************************************************/
-/***/ ((module) => {
-
-"use strict";
-
-
-function _interopRequireDefault(obj) {
- return obj && obj.__esModule ? obj : {
- "default": obj
- };
-}
-
-module.exports = _interopRequireDefault;
-module.exports["default"] = module.exports, module.exports.__esModule = true;
-
-function requireModule(moduleName) {
- const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration',
- 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource']
- var target = ''
- if (systemList.includes(moduleName.replace('@', ''))) {
- target = $app_require$('@app-module/' + moduleName.substring(1));
- return target;
- }
- var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1');
- if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) {
- target = ohosplugin;
- for (let key of shortName.split('.')) {
- target = target[key];
- if(!target) {
- break;
- }
- }
- if (typeof target !== 'undefined') {
- return target;
- }
- }
- if (typeof systemplugin !== 'undefined') {
- target = systemplugin;
- for (let key of shortName.split('.')) {
- target = target[key];
- if(!target) {
- break;
- }
- }
- if (typeof target !== 'undefined') {
- return target;
- }
- }
- target = requireNapi(shortName);
- return target;
-}
-
-
-/***/ }),
-
-/***/ "./node_modules/@babel/runtime/helpers/newArrowCheck.js":
-/*!**************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/newArrowCheck.js ***!
- \**************************************************************/
-/***/ ((module) => {
-
-"use strict";
-
-
-function _newArrowCheck(innerThis, boundThis) {
- if (innerThis !== boundThis) {
- throw new TypeError("Cannot instantiate an arrow function");
- }
-}
-
-module.exports = _newArrowCheck;
-module.exports["default"] = module.exports, module.exports.__esModule = true;
-
-function requireModule(moduleName) {
- const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration',
- 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource']
- var target = ''
- if (systemList.includes(moduleName.replace('@', ''))) {
- target = $app_require$('@app-module/' + moduleName.substring(1));
- return target;
- }
- var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1');
- if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) {
- target = ohosplugin;
- for (let key of shortName.split('.')) {
- target = target[key];
- if(!target) {
- break;
- }
- }
- if (typeof target !== 'undefined') {
- return target;
- }
- }
- if (typeof systemplugin !== 'undefined') {
- target = systemplugin;
- for (let key of shortName.split('.')) {
- target = target[key];
- if(!target) {
- break;
- }
- }
- if (typeof target !== 'undefined') {
- return target;
- }
- }
- target = requireNapi(shortName);
- return target;
-}
-
-
-/***/ }),
-
-/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=D:\\MY\\Hi3516D\\SDK\\version-Daily_Version-20210926_102043-ohos-sdk-LTS\\windows\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=D:\\MY\\Hi3516D\\SDK\\version-Daily_Version-20210926_102043-ohos-sdk-LTS\\windows\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/index/index.js":
-/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=D:\MY\Hi3516D\SDK\version-Daily_Version-20210926_102043-ohos-sdk-LTS\windows\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=D:\MY\Hi3516D\SDK\version-Daily_Version-20210926_102043-ohos-sdk-LTS\windows\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/index/index.js ***!
- \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-module.exports = function(module, exports, $app_require$){"use strict";
-
-var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-
-var _newArrowCheck2 = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/helpers/newArrowCheck */ "./node_modules/@babel/runtime/helpers/newArrowCheck.js"));
-
-var _ohosAbility = _interopRequireDefault(requireModule("@ohos.ability.featureAbility"));
-
-function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
-
-function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
-
-function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
-
-var titles = [{
- "name": "All"
-}, {
- "name": "Health"
-}, {
- "name": "Finance"
-}, {
- "name": "Technology"
-}, {
- "name": "Sport"
-}, {
- "name": "Internet"
-}, {
- "name": "Game"
-}];
-var newsData = [{
- "title": "Best Enterprise Wi-Fi Network Award of the Wireless Broadband Alliance 2020",
- "type": "Health",
- "imgUrl": "/common/images/news_image1.jpg",
- "reads": "54",
- "likes": "81",
- "content": "Recently, at the Wireless Broadband Alliance (WBA), an international industry organization, Huawei's AirEngine Wi-Fi 6 Solution Helps Factory Digital Transformation WBA 2020 Wi-Fi Industry Best Enterprise Wi-Fi Network Award. This is the first time that a Chinese Wi-Fi 6 vendor has won this award, which reflects the full recognition of Huawei AirEngine Wi-Fi 6 by global enterprise users."
-}, {
- "title": "Latest technology and industry weather vane",
- "type": "Health",
- "imgUrl": "/common/images/news_image2.jpg",
- "reads": "100",
- "likes": "354",
- "content": "With the large-scale commercial use of new technologies such as 5G, IoT, cloud computing, and AI, industry digital transformation has entered deep water. In addition, the sudden epidemic and carbon-neutral targets accelerate the transformation of society towards intelligence. When energy technologies are combined with power electronics and digital technologies, what direction will site energy develop?"
-}, {
- "title": "Openness and Cooperation Facilitate Industry Upgrade",
- "type": "Finance",
- "imgUrl": "/common/images/news_image3.jpg",
- "reads": "74",
- "likes": "91",
- "content": "Under the background of new infrastructure construction, digital transformation will face great pressure in power consumption. According to analysis data, it is estimated that the number of communication sites will increase to 70 million by 2025, and the annual power consumption will exceed 660 billion kWh. The data center will increase to 24 million racks, and the annual power consumption will exceed 950 billion kWh. In pan-industrial scenarios, the annual power consumption of rail transportation and industrial manufacturing alone will exceed 16 trillion kWh There are 40 billion smart terminals, and the annual power consumption will reach 210 billion kWh. The 40 billion mobile terminals under the 21 billion kWh power are driven by the transformation of social media and digital life."
-}, {
- "title": "High-voltage super-fast charging is an inevitable trend",
- "type": "Finance",
- "imgUrl": "/common/images/news_image4.jpg",
- "reads": "44",
- "likes": "82",
- "content": "Consumers have a lot of doubts about buying electric cars, compared to fuel cars. Wang Chao pointed out that among the factors affecting the purchase of electric vehicles, charging problems account for 80 percent, with a small number of charging piles (currently, the ratio of piles is 3.2:1) and a long charging time being the first to bear the brunt. As a result, many players in the charging infrastructure sector are looking for a break. To alleviate consumers' pain points of poor charging experience, we need to improve the pile ratio and shorten the charging time to meet consumers' requirements for fast charging."
-}, {
- "title": "Huawei Releases the New Trend of Modular Power Supply, Facilitating Industry Upgrade Through Open Cooperation",
- "type": "Technology",
- "imgUrl": "/common/images/news_image5.jpg",
- "reads": "73",
- "likes": "888",
- "content": "Under the background of new infrastructure construction, digital transformation will face great pressure in power consumption. According to analysis data, it is estimated that the number of communication sites will increase to 70 million by 2025, and the annual power consumption will exceed 660 billion kWh. The data center will increase to 24 million racks, and the annual power consumption will exceed 950 billion kWh. In pan-industrial scenarios, the annual power consumption of rail transportation and industrial manufacturing alone will exceed 16 trillion kWh. There are 40 billion smart terminals, and the annual power consumption will reach 210 billion kWh. The 40 billion mobile terminals under the 21 billion kWh power are driven by the transformation of social media and digital life."
-}, {
- "title": "Ten Future Trends of Digital Energy",
- "type": "Technology",
- "imgUrl": "/common/images/news_image6.jpg",
- "reads": "100",
- "likes": "354",
- "content": "Energy digitalization is an inevitable trend. Innovative integration of digital and energy technologies enables end-to-end visual, manageable, and controllable intelligent management of energy infrastructure, improving energy efficiency.\nGreen power will benefit thousands of industries and households in the future. Green power, represented by PV, will become the main energy source. The era of price-effective PV is coming, and the integration of distributed power generation and solar storage will become an inevitable trend. Green Power will also help the ICT industry reduce its carbon footprint. In the future, we will build a \"zero-carbon network\" and \"zero-carbon\" data center. In addition, Huawei proposed the trend of full-link efficiency for the first time and implemented global optimization in terms of architecture and system."
-}, {
- "title": "Ascend Helps Industry, Learning, and Research Promote AI Industry Development in the National AI Contest",
- "type": "Sport",
- "imgUrl": "/common/images/news_image7.jpg",
- "reads": "123",
- "likes": "911",
- "content": "The holding of the National AI Contest further fulfilled the requirements of the Ministry of Science and Technology and the Ministry of Industry and Information Technology for Shenzhen to build the national new-generation AI innovation and development trial zone and the AI innovation and application pilot zone. It also promoted the integration and development of innovation elements such as industry, academia, capital, and talent, create an AI innovation atmosphere. Huawei has co-hosted two National AI Competitions in a row, aiming to promote technological progress, industrial upgrade, economic transformation, and social progress, and jointly promote the implementation of AI technologies. This is the most practical point for Huawei and the National AI Competition."
-}, {
- "title": "Enterprise data centers are moving towards autonomous driving network",
- "type": "Sport",
- "imgUrl": "/common/images/news_image8.jpg",
- "reads": "754",
- "likes": "149",
- "content": "More than 90% of enterprises say that fully autonomous driving data center network is their goal to achieve business agility, flexibility, and cost-effectiveness. This is a key research result in the data center network Autonomous Driving Index Report released by Huawei and IDC. Autonomous driving data center network helps enterprises restructure network architectures and operation models and enhance business resilience and continuity. In addition, regardless of the current level of data center network automation, IDC offers some guidance on how enterprises can move forward and move towards full automation."
-}, {
- "title": "One optical fiber lights up a green smart room",
- "type": "Internet",
- "imgUrl": "/common/images/news_image9.jpg",
- "reads": "631",
- "likes": "714",
- "content": "At the 2020 China Real Estate Development Summit held in Guangzhou, Jin Yuzhi, President of Huawei's Transmission and Access Product Line, delivered a keynote speech entitled \"One Fiber Lights Green Smart Rooms\" to discuss the convergence development trend of optical networks and real estate industries, proposes that optical fibers are the standard configuration of F5G smart real estate, and shares seven reasons for choosing Fiber to the Room (FTTR) all-optical home networking, we call on industry partners to work together to build an F5G real gigabit all-optical room ecosystem."
-}, {
- "title": "BWS2020: Accelerate Network Autonomy and Enable Agile Business",
- "type": "Internet",
- "imgUrl": "/common/images/news_image10.jpg",
- "reads": "53",
- "likes": "824",
- "content": "Currently, millions of enterprises embrace changes and accelerate their cloudification. SaaS traffic surges. Enterprise cloudification and multi-cloud collaboration become the new focus of cloud-network synergy . To address this challenge, Guo Dazheng, president of Huawei's data communications field, said: \"In cloud-network scenarios, iMaster NCE implements network as a service to help carriers provide cloud-network integration services and meet enterprise cloud access requirements.\" In 5G transport scenarios, improve the automation capability of the entire process of planning, construction, maintenance, and optimization to meet the requirements of large-scale 5G network construction and cloud network cost reduction and efficiency improvement."
-}, {
- "title": "Trust technology, embrace openness, and share the world prosperity brought by technology",
- "type": "Game",
- "imgUrl": "/common/images/news_image11.jpg",
- "reads": "1500",
- "likes": "3542",
- "content": "Huawei successfully held the TrustInTech 2020 online summit today. Ryan Ding, Executive Director of Huawei, President of the Carrier BG, and Jim Rogers, a senior Wall Street investor, GSMA Chief Marketing Officer Stephanie Lynch-Habib and other ICT industry experts and economists from around the world attended the summit. The summit pointed out that ICT has become a digital foundation for economic development and people's livelihood. In an era of accelerated commercial use of 5G, the world needs to embrace openness and cooperation to eliminate unnecessary resistance and fears about new technologies and transnational cooperation, thereby sharing the world prosperity brought by technology."
-}, {
- "title": "Intelligent Twins Won the Leading Technology Achievement Award at the 7th World Internet Conference",
- "type": "Game",
- "imgUrl": "/common/images/news_image12.jpg",
- "reads": "7451",
- "likes": "9511",
- "content": "Today, the Leading Technology Award was unveiled at the 7th World Internet Conference. As the industry's first systematic technical reference architecture for government and enterprise intelligence upgrade, intelligent virtual appliances have been recognized by experts and judges and won the Leading Scientific Achievement Award for their exploration and practice in various industries. This is the fifth time Huawei has won this award since 2016. The World Internet Leading Science and Technology Award showcases the latest technologies in the global ICT field and focuses on the best practices of innovative technologies in the fields of science and technology fight against epidemics, recovery of work, and promotion of digital economic development and cooperation."
-}, {
- "title": "4G/5G FWA, New Engine for Revenue Growth",
- "type": "Health",
- "imgUrl": "/common/images/news_image13.jpg",
- "reads": "445",
- "likes": "872",
- "content": "The reason why FWA is growing so fast is that it provides new opportunities for carriers in the consumer market. For example, a Philippine operator used 4G FWA to rapidly develop home broadband users. According to its third quarter financial report, the operator has successfully developed 2.78 million new users this year, accounting for 80% of the total broadband users. The percentage of broadband revenue increased from 12.3% in 2017 to 17.9%. With the development of wireless technologies, 5G FWA can provide gigabit home access experience similar to that of optical fibers, meeting services such as 4K/8K HD video and AR/VR interactive experience."
-}, {
- "title": "Down! CPI released in November! These things are cheap",
- "type": "Finance",
- "imgUrl": "/common/images/news_image14.jpg",
- "reads": "734",
- "likes": "8788",
- "content": "Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap."
-}, {
- "title": "Comedy movie \"Big Red Envelope\" is set to celebrate the New Year",
- "type": "Technology",
- "imgUrl": "/common/images/news_image15.jpg",
- "reads": "1010",
- "likes": "3534",
- "content": "Comedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New Year"
-}, {
- "title": "Three living things are smart",
- "type": "Sport",
- "imgUrl": "/common/images/news_image16.jpg",
- "reads": "1243",
- "likes": "9141",
- "content": "Lifan said at the press conference: \"Retrospective on the journey, we have always adhered to the spirit of initiative, innovation and science. Build core capabilities in terms of networks, technologies, and platforms, and deliver excellent services, technologies, and quality. Internal maintenance, optimization, and sharing are in place. Carriers, equipment vendors, and partners are working together to build an end-to-end network capability and win-win ecosystem to provide users with the best 5G experience and services.\""
-}, {
- "title": "Maximizing the Value of Wireless Networks and Ushering in the Golden Decade of 5G",
- "type": "Internet",
- "imgUrl": "/common/images/news_image17.jpg",
- "reads": "7574",
- "likes": "1439",
- "content": "The 5G industry is developing faster than the previous standards. Currently, there are more than 100 5G commercial networks around the world, and the price of entry-level 5G mobile phones has fallen to CNY1,000, which has led to the rapid growth of 5G users worldwide. Thanks to this, leading operators have enjoyed the data dividend brought by 5G. The multi-dimensional package design and 5G message and 5G new communication services are upgraded to increase the ARPU of 5G users to different degrees.\nTo promote the further development of 5G networks and encourage more users to choose and prefer 5G networks, operators need to build 5G top-quality networks for individual users to achieve full-scenario coverage in densely populated urban areas, suburban areas, and indoor areas, allowing mobile phone users to access 5G services anytime, anywhere. In addition, 5G connection experience is optimized to ensure consistent user experience."
-}, {
- "title": "Technology Helps Art, Leads a New Era",
- "type": "Game",
- "imgUrl": "/common/images/news_image18.jpg",
- "reads": "6311",
- "likes": "7114",
- "content": "Zhang Wenlin spoke highly of the \"Dance Storm\". He believes that since the second season's premiere, the show has brought the contestants' exquisite dance moves, the wonderful host of Mr Ho Kung, the excellent comments of the judges' tutors, and the exquisite design of the staff to the audience, dedicate a beautiful visual feast! To help achieve fantastic visual effects, Hunan Radio and TV set up a joint team with Huawei to develop a spatio-temporal condensation system for Dance Storm 2. The system supports AI algorithms such as intelligent fast focusing, butterfly shooting, zoom-in, and multi-focus, with the help of the video 3.0+ platform of device-cloud synergy, the program team has made several industry-leading achievements, such as the three-dimensional storm moment with fantastic visual changes, free-view Dance Storm program with interactive control and rotation, and dance Storm with 360-degree panoramic view. VR programs."
-}, {
- "title": "Open Intelligent Twin Ecosystem Is the Key to All-Scenario Intelligence",
- "type": "Health",
- "imgUrl": "/common/images/news_image19.jpg",
- "reads": "6341",
- "likes": "7164",
- "content": "Intelligent upgrade will build core competitiveness in various industries. Huawei works with partners to integrate 5G, cloud, AI, intelligent edge, and industry applications to form an integrated intelligent system and create industry-leading smart experience. In the transportation industry, the abolition of highway toll stations at the provincial boundary enables fast and insensitive traffic, greatly improving traffic efficiency and reducing logistics transportation costs. Intelligent cameras are deployed on highway portals to collect vehicle traffic data 24 hours a day and send the data to the cloud in real time over the high-speed network for real-time charging. In addition, AI models trained on the cloud can be pushed to the edge so that cameras can have capabilities such as license plate recognition and vehicle feature extraction, and the capabilities can be continuously evolved. For example, in extreme weather conditions such as rain and snow, one-click upgrade can be performed on the cloud."
-}];
-var _default = {
- data: function data() {
- return {
- titleList: titles,
- newsList: newsData
- };
- },
- onInit: function onInit() {
- console.log("onInit::" + titles);
- },
- changeNewsType: function changeNewsType(e) {
- var type = titles[e.index].name;
- this.newsList = [];
-
- if (type === "All") {
- this.newsList = newsData;
- } else {
- var newsArray = [];
-
- var _iterator = _createForOfIteratorHelper(newsData),
- _step;
-
- try {
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
- var news = _step.value;
-
- if (news.type === type) {
- newsArray.push(news);
- }
- }
- } catch (err) {
- _iterator.e(err);
- } finally {
- _iterator.f();
- }
-
- this.newsList = newsArray;
- }
- },
- startAbilityContinuation: function startAbilityContinuation(news) {
- var _this = this;
-
- var params;
- params = {
- title: news.title,
- type: news.type,
- imgUrl: news.imgUrl,
- reads: news.reads,
- likes: news.likes,
- content: news.content
- };
- var wantValue = {
- bundleName: 'com.example.newsclientopenharmony',
- abilityName: 'com.example.newsclientopenharmony.MainAbility2',
- deviceId: '',
- parameters: params
- };
-
- _ohosAbility["default"].startAbility({
- want: wantValue
- }).then(function (data) {
- (0, _newArrowCheck2["default"])(this, _this);
- console.info('featureAbility.startAbility finished, ' + JSON.stringify(data));
- }.bind(this));
-
- console.info('featureAbility.startAbility want=' + JSON.stringify(wantValue));
- console.info('featureAbility.startAbility end');
- }
-};
-exports["default"] = _default;
-
-function requireModule(moduleName) {
- const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration',
- 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource']
- var target = ''
- if (systemList.includes(moduleName.replace('@', ''))) {
- target = $app_require$('@app-module/' + moduleName.substring(1));
- return target;
- }
- var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1');
- if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) {
- target = ohosplugin;
- for (let key of shortName.split('.')) {
- target = target[key];
- if(!target) {
- break;
- }
- }
- if (typeof target !== 'undefined') {
- return target;
- }
- }
- if (typeof systemplugin !== 'undefined') {
- target = systemplugin;
- for (let key of shortName.split('.')) {
- target = target[key];
- if(!target) {
- break;
- }
- }
- if (typeof target !== 'undefined') {
- return target;
- }
- }
- target = requireNapi(shortName);
- return target;
-}
-
-var moduleOwn = exports.default || module.exports;
-var accessors = ['public', 'protected', 'private'];
-if (moduleOwn.data && accessors.some(function (acc) {
- return moduleOwn[acc];
- })) {
- throw new Error('For VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.');
-} else if (!moduleOwn.data) {
- moduleOwn.data = {};
- moduleOwn._descriptor = {};
- accessors.forEach(function(acc) {
- var accType = typeof moduleOwn[acc];
- if (accType === 'object') {
- moduleOwn.data = Object.assign(moduleOwn.data, moduleOwn[acc]);
- for (var name in moduleOwn[acc]) {
- moduleOwn._descriptor[name] = {access : acc};
- }
- } else if (accType === 'function') {
- console.warn('For VM objects, attribute ' + acc + ' value must not be a function. Change the value to an object.');
- }
- });
-}}
-/* generated by ace-loader */
-
-
-/***/ })
-
-/******/ });
-/************************************************************************/
-/******/ // The module cache
-/******/ var __webpack_module_cache__ = {};
-/******/
-/******/ // The require function
-/******/ function __webpack_require__(moduleId) {
-/******/ // Check if module is in cache
-/******/ var cachedModule = __webpack_module_cache__[moduleId];
-/******/ if (cachedModule !== undefined) {
-/******/ return cachedModule.exports;
-/******/ }
-/******/ // Create a new module (and put it into the cache)
-/******/ var module = __webpack_module_cache__[moduleId] = {
-/******/ // no module.id needed
-/******/ // no module.loaded needed
-/******/ exports: {}
-/******/ };
-/******/
-/******/ // Execute the module function
-/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
-/******/
-/******/ // Return the exports of the module
-/******/ return module.exports;
-/******/ }
-/******/
-/************************************************************************/
-var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
-(() => {
-/*!****************************************************************************************************************!*\
- !*** ../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/index/index.hml?entry ***!
- \****************************************************************************************************************/
-var $app_template$ = __webpack_require__(/*! !!../../../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/json.js!../../../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/template.js!./index.hml */ "./lib/json.js!./lib/template.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/index/index.hml")
-var $app_style$ = __webpack_require__(/*! !!../../../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/json.js!../../../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/style.js!./index.css */ "./lib/json.js!./lib/style.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/index/index.css")
-var $app_script$ = __webpack_require__(/*! !!../../../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/script.js!../../../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/node_modules/babel-loader?presets[]=D:\MY\Hi3516D\SDK\version-Daily_Version-20210926_102043-ohos-sdk-LTS\windows\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=D:\MY\Hi3516D\SDK\version-Daily_Version-20210926_102043-ohos-sdk-LTS\windows\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!../../../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/resource-reference-script.js!./index.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=D:\\MY\\Hi3516D\\SDK\\version-Daily_Version-20210926_102043-ohos-sdk-LTS\\windows\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=D:\\MY\\Hi3516D\\SDK\\version-Daily_Version-20210926_102043-ohos-sdk-LTS\\windows\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/index/index.js")
-
-$app_define$('@app-component/index', [], function($app_require$, $app_exports$, $app_module$) {
-
-$app_script$($app_module$, $app_exports$, $app_require$)
-if ($app_exports$.__esModule && $app_exports$.default) {
-$app_module$.exports = $app_exports$.default
-}
-
-$app_module$.exports.template = $app_template$
-
-$app_module$.exports.style = $app_style$
-
-})
-$app_bootstrap$('@app-component/index',undefined,undefined)
-})();
-
-/******/ })()
-;
\ No newline at end of file
diff --git a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/pages/second/second.js b/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/pages/second/second.js
deleted file mode 100644
index 518590594b4152231782bc5a83b5841131470c4a..0000000000000000000000000000000000000000
--- a/Distributed/NewsDemo/entry/.preview/intermediates/res/debug/rich/assets/js/MainAbility/pages/second/second.js
+++ /dev/null
@@ -1,290 +0,0 @@
-/******/ (() => { // webpackBootstrap
-/******/ var __webpack_modules__ = ({
-
-/***/ "./lib/json.js!./lib/style.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/second/second.css":
-/*!*****************************************************************************************************************************************!*\
- !*** ./lib/json.js!./lib/style.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/second/second.css ***!
- \*****************************************************************************************************************************************/
-/***/ ((module) => {
-
-module.exports = {
- ".container": {
- "display": "flex",
- "flexDirection": "column",
- "justifyContent": "center",
- "alignItems": "center",
- "left": "0px",
- "top": "0px",
- "width": "100%",
- "height": "100%"
- },
- ".title": {
- "fontSize": "60px",
- "textAlign": "center",
- "width": "100%",
- "height": "40%",
- "marginTop": "10px",
- "marginRight": "10px",
- "marginBottom": "10px",
- "marginLeft": "10px"
- },
- ".btn": {
- "width": "50%",
- "height": "100px",
- "fontSize": "40px"
- }
-}
-
-/***/ }),
-
-/***/ "./lib/json.js!./lib/template.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/second/second.hml":
-/*!********************************************************************************************************************************************!*\
- !*** ./lib/json.js!./lib/template.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/second/second.hml ***!
- \********************************************************************************************************************************************/
-/***/ ((module) => {
-
-module.exports = {
- "attr": {
- "debugLine": "pages/second/second:1",
- "className": "container"
- },
- "type": "div",
- "classList": [
- "container"
- ],
- "children": [
- {
- "attr": {
- "debugLine": "pages/second/second:2",
- "className": "title",
- "value": function () {return this.$t('strings.page')}
- },
- "type": "text",
- "classList": [
- "title"
- ]
- },
- {
- "attr": {
- "debugLine": "pages/second/second:5",
- "className": "btn",
- "type": "button",
- "value": function () {return this.$t('strings.back')}
- },
- "type": "input",
- "classList": [
- "btn"
- ],
- "onBubbleEvents": {
- "click": "onclick"
- }
- }
- ]
-}
-
-/***/ }),
-
-/***/ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js":
-/*!**********************************************************************!*\
- !*** ./node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
- \**********************************************************************/
-/***/ ((module) => {
-
-"use strict";
-
-
-function _interopRequireDefault(obj) {
- return obj && obj.__esModule ? obj : {
- "default": obj
- };
-}
-
-module.exports = _interopRequireDefault;
-module.exports["default"] = module.exports, module.exports.__esModule = true;
-
-function requireModule(moduleName) {
- const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration',
- 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource']
- var target = ''
- if (systemList.includes(moduleName.replace('@', ''))) {
- target = $app_require$('@app-module/' + moduleName.substring(1));
- return target;
- }
- var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1');
- if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) {
- target = ohosplugin;
- for (let key of shortName.split('.')) {
- target = target[key];
- if(!target) {
- break;
- }
- }
- if (typeof target !== 'undefined') {
- return target;
- }
- }
- if (typeof systemplugin !== 'undefined') {
- target = systemplugin;
- for (let key of shortName.split('.')) {
- target = target[key];
- if(!target) {
- break;
- }
- }
- if (typeof target !== 'undefined') {
- return target;
- }
- }
- target = requireNapi(shortName);
- return target;
-}
-
-
-/***/ }),
-
-/***/ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=D:\\MY\\Hi3516D\\SDK\\version-Daily_Version-20210926_102043-ohos-sdk-LTS\\windows\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=D:\\MY\\Hi3516D\\SDK\\version-Daily_Version-20210926_102043-ohos-sdk-LTS\\windows\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/second/second.js":
-/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
- !*** ./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=D:\MY\Hi3516D\SDK\version-Daily_Version-20210926_102043-ohos-sdk-LTS\windows\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=D:\MY\Hi3516D\SDK\version-Daily_Version-20210926_102043-ohos-sdk-LTS\windows\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/second/second.js ***!
- \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
-/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
-
-module.exports = function(module, exports, $app_require$){"use strict";
-
-var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/@babel/runtime/helpers/interopRequireDefault.js");
-
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-exports["default"] = void 0;
-
-var _system = _interopRequireDefault(requireModule("@system.router"));
-
-var _default = {
- data: {
- title: 'World'
- },
- onclick: function onclick() {
- _system["default"].replace({
- uri: "pages/index/index"
- });
- }
-};
-exports["default"] = _default;
-
-function requireModule(moduleName) {
- const systemList = ['system.router', 'system.app', 'system.prompt', 'system.configuration',
- 'system.image', 'system.device', 'system.mediaquery', 'ohos.animator', 'system.grid', 'system.resource']
- var target = ''
- if (systemList.includes(moduleName.replace('@', ''))) {
- target = $app_require$('@app-module/' + moduleName.substring(1));
- return target;
- }
- var shortName = moduleName.replace(/@[^.]+.([^.]+)/, '$1');
- if (typeof ohosplugin !== 'undefined' && /@ohos/.test(moduleName)) {
- target = ohosplugin;
- for (let key of shortName.split('.')) {
- target = target[key];
- if(!target) {
- break;
- }
- }
- if (typeof target !== 'undefined') {
- return target;
- }
- }
- if (typeof systemplugin !== 'undefined') {
- target = systemplugin;
- for (let key of shortName.split('.')) {
- target = target[key];
- if(!target) {
- break;
- }
- }
- if (typeof target !== 'undefined') {
- return target;
- }
- }
- target = requireNapi(shortName);
- return target;
-}
-
-var moduleOwn = exports.default || module.exports;
-var accessors = ['public', 'protected', 'private'];
-if (moduleOwn.data && accessors.some(function (acc) {
- return moduleOwn[acc];
- })) {
- throw new Error('For VM objects, attribute data must not coexist with public, protected, or private. Please replace data with public.');
-} else if (!moduleOwn.data) {
- moduleOwn.data = {};
- moduleOwn._descriptor = {};
- accessors.forEach(function(acc) {
- var accType = typeof moduleOwn[acc];
- if (accType === 'object') {
- moduleOwn.data = Object.assign(moduleOwn.data, moduleOwn[acc]);
- for (var name in moduleOwn[acc]) {
- moduleOwn._descriptor[name] = {access : acc};
- }
- } else if (accType === 'function') {
- console.warn('For VM objects, attribute ' + acc + ' value must not be a function. Change the value to an object.');
- }
- });
-}}
-/* generated by ace-loader */
-
-
-/***/ })
-
-/******/ });
-/************************************************************************/
-/******/ // The module cache
-/******/ var __webpack_module_cache__ = {};
-/******/
-/******/ // The require function
-/******/ function __webpack_require__(moduleId) {
-/******/ // Check if module is in cache
-/******/ var cachedModule = __webpack_module_cache__[moduleId];
-/******/ if (cachedModule !== undefined) {
-/******/ return cachedModule.exports;
-/******/ }
-/******/ // Create a new module (and put it into the cache)
-/******/ var module = __webpack_module_cache__[moduleId] = {
-/******/ // no module.id needed
-/******/ // no module.loaded needed
-/******/ exports: {}
-/******/ };
-/******/
-/******/ // Execute the module function
-/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
-/******/
-/******/ // Return the exports of the module
-/******/ return module.exports;
-/******/ }
-/******/
-/************************************************************************/
-var __webpack_exports__ = {};
-// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
-(() => {
-/*!******************************************************************************************************************!*\
- !*** ../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/second/second.hml?entry ***!
- \******************************************************************************************************************/
-var $app_template$ = __webpack_require__(/*! !!../../../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/json.js!../../../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/template.js!./second.hml */ "./lib/json.js!./lib/template.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/second/second.hml")
-var $app_style$ = __webpack_require__(/*! !!../../../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/json.js!../../../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/style.js!./second.css */ "./lib/json.js!./lib/style.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/second/second.css")
-var $app_script$ = __webpack_require__(/*! !!../../../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/script.js!../../../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/node_modules/babel-loader?presets[]=D:\MY\Hi3516D\SDK\version-Daily_Version-20210926_102043-ohos-sdk-LTS\windows\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\preset-env&plugins[]=D:\MY\Hi3516D\SDK\version-Daily_Version-20210926_102043-ohos-sdk-LTS\windows\js\3.0.0.0\build-tools\ace-loader\node_modules\@babel\plugin-transform-modules-commonjs&comments=false!../../../../../../../../../../SDK/version-Daily_Version-20210926_102043-ohos-sdk-LTS/windows/js/3.0.0.0/build-tools/ace-loader/lib/resource-reference-script.js!./second.js */ "./lib/script.js!./node_modules/babel-loader/lib/index.js?presets[]=D:\\MY\\Hi3516D\\SDK\\version-Daily_Version-20210926_102043-ohos-sdk-LTS\\windows\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\preset-env&plugins[]=D:\\MY\\Hi3516D\\SDK\\version-Daily_Version-20210926_102043-ohos-sdk-LTS\\windows\\js\\3.0.0.0\\build-tools\\ace-loader\\node_modules\\@babel\\plugin-transform-modules-commonjs&comments=false!./lib/resource-reference-script.js!../../../../../../../CodeLab/20210929/NewsDemo/entry/src/main/js/MainAbility/pages/second/second.js")
-
-$app_define$('@app-component/second', [], function($app_require$, $app_exports$, $app_module$) {
-
-$app_script$($app_module$, $app_exports$, $app_require$)
-if ($app_exports$.__esModule && $app_exports$.default) {
-$app_module$.exports = $app_exports$.default
-}
-
-$app_module$.exports.template = $app_template$
-
-$app_module$.exports.style = $app_style$
-
-})
-$app_bootstrap$('@app-component/second',undefined,undefined)
-})();
-
-/******/ })()
-;
\ No newline at end of file
diff --git a/Distributed/NewsDemo/entry/.preview/jsManifest/MainAbility/manifest.json b/Distributed/NewsDemo/entry/.preview/jsManifest/MainAbility/manifest.json
deleted file mode 100644
index 9c28780bfb981944bc50679f81a3279130fb3188..0000000000000000000000000000000000000000
--- a/Distributed/NewsDemo/entry/.preview/jsManifest/MainAbility/manifest.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "appID": "com.huawei.newsdemo",
- "appName": "$string:entry_MainAbility",
- "versionName": "1.0.0",
- "versionCode": 1000000,
- "minPlatformVersion": 7,
- "pages": [
- "pages/index/index",
- "pages/second/second"
- ],
- "deviceType": [
- "phone"
- ],
- "window": {
- "autoDesignWidth": false,
- "designWidth": 720
- }
-}
\ No newline at end of file
diff --git a/Distributed/NewsDemo/entry/.preview/merge_js_src/liteWearable/default/pages/index/index.js b/Distributed/NewsDemo/entry/.preview/merge_js_src/liteWearable/default/pages/index/index.js
deleted file mode 100644
index 4a9d8d96cdc0c51dedc0d6d5f530c7b2a8716a0d..0000000000000000000000000000000000000000
--- a/Distributed/NewsDemo/entry/.preview/merge_js_src/liteWearable/default/pages/index/index.js
+++ /dev/null
@@ -1,264 +0,0 @@
-//import {titles, newsData} from '../../../MainAbility/common/data/data.js';
-
-import featureAbility from '@ohos.ability.featureAbility';
-
- const titles= [
- {
- "name": "All"
- },
- {
- "name": "Health"
- },
- {
- "name": "Finance"
- },
- {
- "name": "Technology"
- },
- {
- "name": "Sport"
- },
- {
- "name": "Internet"
- },
- {
- "name": "Game"
- }
-]
-
- const newsData = [
- {
- "title": "Best Enterprise Wi-Fi Network Award of the Wireless Broadband Alliance 2020",
- "type": "Health",
- "imgUrl": "/common/images/news_image1.jpg",
- "reads": "54",
- "likes": "81",
- "content": "Recently, at the Wireless Broadband Alliance (WBA), an international industry organization, Huawei's AirEngine Wi-Fi 6 Solution Helps Factory Digital Transformation WBA 2020 Wi-Fi Industry Best Enterprise Wi-Fi Network Award. This is the first time that a Chinese Wi-Fi 6 vendor has won this award, which reflects the full recognition of Huawei AirEngine Wi-Fi 6 by global enterprise users."
- },
- {
- "title": "Latest technology and industry weather vane",
- "type": "Health",
- "imgUrl": "/common/images/news_image2.jpg",
- "reads": "100",
- "likes": "354",
- "content": "With the large-scale commercial use of new technologies such as 5G, IoT, cloud computing, and AI, industry digital transformation has entered deep water. In addition, the sudden epidemic and carbon-neutral targets accelerate the transformation of society towards intelligence. When energy technologies are combined with power electronics and digital technologies, what direction will site energy develop?"
- },
- {
- "title": "Openness and Cooperation Facilitate Industry Upgrade",
- "type": "Finance",
- "imgUrl": "/common/images/news_image3.jpg",
- "reads": "74",
- "likes": "91",
- "content": "Under the background of new infrastructure construction, digital transformation will face great pressure in power consumption. According to analysis data, it is estimated that the number of communication sites will increase to 70 million by 2025, and the annual power consumption will exceed 660 billion kWh. The data center will increase to 24 million racks, and the annual power consumption will exceed 950 billion kWh. In pan-industrial scenarios, the annual power consumption of rail transportation and industrial manufacturing alone will exceed 16 trillion kWh There are 40 billion smart terminals, and the annual power consumption will reach 210 billion kWh. The 40 billion mobile terminals under the 21 billion kWh power are driven by the transformation of social media and digital life."
- },
- {
- "title": "High-voltage super-fast charging is an inevitable trend",
- "type": "Finance",
- "imgUrl": "/common/images/news_image4.jpg",
- "reads": "44",
- "likes": "82",
- "content": "Consumers have a lot of doubts about buying electric cars, compared to fuel cars. Wang Chao pointed out that among the factors affecting the purchase of electric vehicles, charging problems account for 80 percent, with a small number of charging piles (currently, the ratio of piles is 3.2:1) and a long charging time being the first to bear the brunt. As a result, many players in the charging infrastructure sector are looking for a break. To alleviate consumers' pain points of poor charging experience, we need to improve the pile ratio and shorten the charging time to meet consumers' requirements for fast charging."
- },
- {
- "title": "Huawei Releases the New Trend of Modular Power Supply, Facilitating Industry Upgrade Through Open Cooperation",
- "type": "Technology",
- "imgUrl": "/common/images/news_image5.jpg",
- "reads": "73",
- "likes": "888",
- "content": "Under the background of new infrastructure construction, digital transformation will face great pressure in power consumption. According to analysis data, it is estimated that the number of communication sites will increase to 70 million by 2025, and the annual power consumption will exceed 660 billion kWh. The data center will increase to 24 million racks, and the annual power consumption will exceed 950 billion kWh. In pan-industrial scenarios, the annual power consumption of rail transportation and industrial manufacturing alone will exceed 16 trillion kWh. There are 40 billion smart terminals, and the annual power consumption will reach 210 billion kWh. The 40 billion mobile terminals under the 21 billion kWh power are driven by the transformation of social media and digital life."
- },
- {
- "title": "Ten Future Trends of Digital Energy",
- "type": "Technology",
- "imgUrl": "/common/images/news_image6.jpg",
- "reads": "100",
- "likes": "354",
- "content": "Energy digitalization is an inevitable trend. Innovative integration of digital and energy technologies enables end-to-end visual, manageable, and controllable intelligent management of energy infrastructure, improving energy efficiency.\nGreen power will benefit thousands of industries and households in the future. Green power, represented by PV, will become the main energy source. The era of price-effective PV is coming, and the integration of distributed power generation and solar storage will become an inevitable trend. Green Power will also help the ICT industry reduce its carbon footprint. In the future, we will build a \"zero-carbon network\" and \"zero-carbon\" data center. In addition, Huawei proposed the trend of full-link efficiency for the first time and implemented global optimization in terms of architecture and system."
- },
- {
- "title": "Ascend Helps Industry, Learning, and Research Promote AI Industry Development in the National AI Contest",
- "type": "Sport",
- "imgUrl": "/common/images/news_image7.jpg",
- "reads": "123",
- "likes": "911",
- "content": "The holding of the National AI Contest further fulfilled the requirements of the Ministry of Science and Technology and the Ministry of Industry and Information Technology for Shenzhen to build the national new-generation AI innovation and development trial zone and the AI innovation and application pilot zone. It also promoted the integration and development of innovation elements such as industry, academia, capital, and talent, create an AI innovation atmosphere. Huawei has co-hosted two National AI Competitions in a row, aiming to promote technological progress, industrial upgrade, economic transformation, and social progress, and jointly promote the implementation of AI technologies. This is the most practical point for Huawei and the National AI Competition."
- },
- {
- "title": "Enterprise data centers are moving towards autonomous driving network",
- "type": "Sport",
- "imgUrl": "/common/images/news_image8.jpg",
- "reads": "754",
- "likes": "149",
- "content": "More than 90% of enterprises say that fully autonomous driving data center network is their goal to achieve business agility, flexibility, and cost-effectiveness. This is a key research result in the data center network Autonomous Driving Index Report released by Huawei and IDC. Autonomous driving data center network helps enterprises restructure network architectures and operation models and enhance business resilience and continuity. In addition, regardless of the current level of data center network automation, IDC offers some guidance on how enterprises can move forward and move towards full automation."
- },
- {
- "title": "One optical fiber lights up a green smart room",
- "type": "Internet",
- "imgUrl": "/common/images/news_image9.jpg",
- "reads": "631",
- "likes": "714",
- "content": "At the 2020 China Real Estate Development Summit held in Guangzhou, Jin Yuzhi, President of Huawei's Transmission and Access Product Line, delivered a keynote speech entitled \"One Fiber Lights Green Smart Rooms\" to discuss the convergence development trend of optical networks and real estate industries, proposes that optical fibers are the standard configuration of F5G smart real estate, and shares seven reasons for choosing Fiber to the Room (FTTR) all-optical home networking, we call on industry partners to work together to build an F5G real gigabit all-optical room ecosystem."
- },
- {
- "title": "BWS2020: Accelerate Network Autonomy and Enable Agile Business",
- "type": "Internet",
- "imgUrl": "/common/images/news_image10.jpg",
- "reads": "53",
- "likes": "824",
- "content": "Currently, millions of enterprises embrace changes and accelerate their cloudification. SaaS traffic surges. Enterprise cloudification and multi-cloud collaboration become the new focus of cloud-network synergy . To address this challenge, Guo Dazheng, president of Huawei's data communications field, said: \"In cloud-network scenarios, iMaster NCE implements network as a service to help carriers provide cloud-network integration services and meet enterprise cloud access requirements.\" In 5G transport scenarios, improve the automation capability of the entire process of planning, construction, maintenance, and optimization to meet the requirements of large-scale 5G network construction and cloud network cost reduction and efficiency improvement."
- },
- {
- "title": "Trust technology, embrace openness, and share the world prosperity brought by technology",
- "type": "Game",
- "imgUrl": "/common/images/news_image11.jpg",
- "reads": "1500",
- "likes": "3542",
- "content": "Huawei successfully held the TrustInTech 2020 online summit today. Ryan Ding, Executive Director of Huawei, President of the Carrier BG, and Jim Rogers, a senior Wall Street investor, GSMA Chief Marketing Officer Stephanie Lynch-Habib and other ICT industry experts and economists from around the world attended the summit. The summit pointed out that ICT has become a digital foundation for economic development and people's livelihood. In an era of accelerated commercial use of 5G, the world needs to embrace openness and cooperation to eliminate unnecessary resistance and fears about new technologies and transnational cooperation, thereby sharing the world prosperity brought by technology."
- },
- {
- "title": "Intelligent Twins Won the Leading Technology Achievement Award at the 7th World Internet Conference",
- "type": "Game",
- "imgUrl": "/common/images/news_image12.jpg",
- "reads": "7451",
- "likes": "9511",
- "content": "Today, the Leading Technology Award was unveiled at the 7th World Internet Conference. As the industry's first systematic technical reference architecture for government and enterprise intelligence upgrade, intelligent virtual appliances have been recognized by experts and judges and won the Leading Scientific Achievement Award for their exploration and practice in various industries. This is the fifth time Huawei has won this award since 2016. The World Internet Leading Science and Technology Award showcases the latest technologies in the global ICT field and focuses on the best practices of innovative technologies in the fields of science and technology fight against epidemics, recovery of work, and promotion of digital economic development and cooperation."
- },
- {
- "title": "4G/5G FWA, New Engine for Revenue Growth",
- "type": "Health",
- "imgUrl": "/common/images/news_image13.jpg",
- "reads": "445",
- "likes": "872",
- "content": "The reason why FWA is growing so fast is that it provides new opportunities for carriers in the consumer market. For example, a Philippine operator used 4G FWA to rapidly develop home broadband users. According to its third quarter financial report, the operator has successfully developed 2.78 million new users this year, accounting for 80% of the total broadband users. The percentage of broadband revenue increased from 12.3% in 2017 to 17.9%. With the development of wireless technologies, 5G FWA can provide gigabit home access experience similar to that of optical fibers, meeting services such as 4K/8K HD video and AR/VR interactive experience."
- },
- {
- "title": "Down! CPI released in November! These things are cheap",
- "type": "Finance",
- "imgUrl": "/common/images/news_image14.jpg",
- "reads": "734",
- "likes": "8788",
- "content": "Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap."
- },
- {
- "title": "Comedy movie \"Big Red Envelope\" is set to celebrate the New Year",
- "type": "Technology",
- "imgUrl": "/common/images/news_image15.jpg",
- "reads": "1010",
- "likes": "3534",
- "content": "Comedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New Year"
- },
- {
- "title": "Three living things are smart",
- "type": "Sport",
- "imgUrl": "/common/images/news_image16.jpg",
- "reads": "1243",
- "likes": "9141",
- "content": "Lifan said at the press conference: \"Retrospective on the journey, we have always adhered to the spirit of initiative, innovation and science. Build core capabilities in terms of networks, technologies, and platforms, and deliver excellent services, technologies, and quality. Internal maintenance, optimization, and sharing are in place. Carriers, equipment vendors, and partners are working together to build an end-to-end network capability and win-win ecosystem to provide users with the best 5G experience and services.\""
- },
- {
- "title": "Maximizing the Value of Wireless Networks and Ushering in the Golden Decade of 5G",
- "type": "Internet",
- "imgUrl": "/common/images/news_image17.jpg",
- "reads": "7574",
- "likes": "1439",
- "content": "The 5G industry is developing faster than the previous standards. Currently, there are more than 100 5G commercial networks around the world, and the price of entry-level 5G mobile phones has fallen to CNY1,000, which has led to the rapid growth of 5G users worldwide. Thanks to this, leading operators have enjoyed the data dividend brought by 5G. The multi-dimensional package design and 5G message and 5G new communication services are upgraded to increase the ARPU of 5G users to different degrees.\nTo promote the further development of 5G networks and encourage more users to choose and prefer 5G networks, operators need to build 5G top-quality networks for individual users to achieve full-scenario coverage in densely populated urban areas, suburban areas, and indoor areas, allowing mobile phone users to access 5G services anytime, anywhere. In addition, 5G connection experience is optimized to ensure consistent user experience."
- },
- {
- "title": "Technology Helps Art, Leads a New Era",
- "type": "Game",
- "imgUrl": "/common/images/news_image18.jpg",
- "reads": "6311",
- "likes": "7114",
- "content": "Zhang Wenlin spoke highly of the \"Dance Storm\". He believes that since the second season's premiere, the show has brought the contestants' exquisite dance moves, the wonderful host of Mr Ho Kung, the excellent comments of the judges' tutors, and the exquisite design of the staff to the audience, dedicate a beautiful visual feast! To help achieve fantastic visual effects, Hunan Radio and TV set up a joint team with Huawei to develop a spatio-temporal condensation system for Dance Storm 2. The system supports AI algorithms such as intelligent fast focusing, butterfly shooting, zoom-in, and multi-focus, with the help of the video 3.0+ platform of device-cloud synergy, the program team has made several industry-leading achievements, such as the three-dimensional storm moment with fantastic visual changes, free-view Dance Storm program with interactive control and rotation, and dance Storm with 360-degree panoramic view. VR programs."
- },
- {
- "title": "Open Intelligent Twin Ecosystem Is the Key to All-Scenario Intelligence",
- "type": "Health",
- "imgUrl": "/common/images/news_image19.jpg",
- "reads": "6341",
- "likes": "7164",
- "content": "Intelligent upgrade will build core competitiveness in various industries. Huawei works with partners to integrate 5G, cloud, AI, intelligent edge, and industry applications to form an integrated intelligent system and create industry-leading smart experience. In the transportation industry, the abolition of highway toll stations at the provincial boundary enables fast and insensitive traffic, greatly improving traffic efficiency and reducing logistics transportation costs. Intelligent cameras are deployed on highway portals to collect vehicle traffic data 24 hours a day and send the data to the cloud in real time over the high-speed network for real-time charging. In addition, AI models trained on the cloud can be pushed to the edge so that cameras can have capabilities such as license plate recognition and vehicle feature extraction, and the capabilities can be continuously evolved. For example, in extreme weather conditions such as rain and snow, one-click upgrade can be performed on the cloud."
- }
-]
-
-
-
-
-export default {
- data() {
- return {
- titleList: titles,
- newsList: newsData
- }
- },
- onInit() {
- console.log("onInit::" + titles)
- },
- changeNewsType: function (e) {
- var type = titles[e.index].name;
- this.newsList = [];
- if (type === "All") {
- this.newsList = newsData;
- } else {
- var newsArray = [];
- for (var news of newsData) {
- if (news.type === type) {
- newsArray.push(news);
- }
- }
- this.newsList = newsArray;
- }
- },
- startAbilityContinuation(news) {
- // this.$element('continueAbilityDialog').close();
-
- // console.info('featureAbility.startAbility deviceId=' + deviceId
- // + ' deviceName=' + deviceName);
- var params;
- params = {
- title: news.title,
- type: news.type,
- imgUrl: news.imgUrl,
- reads: news.reads,
- likes: news.likes,
- content: news.content,
- };
- var wantValue = {
- bundleName: 'com.example.newsclientopenharmony',
- abilityName: 'com.example.newsclientopenharmony.MainAbility2',
- deviceId: '',
- parameters: params
- // //params: {
- // "title": news.title,
- // "type": news.type,
- // "imgUrl": news.imgUrl,
- // "reads": news.reads,
- // "likes": news.likes,
- // "content": news.content,
- // //}
- };
-
- featureAbility.startAbility({
- want: wantValue
- }).then((data) => {
- console.info('featureAbility.startAbility finished, ' + JSON.stringify(data));
- });
- console.info('featureAbility.startAbility want=' + JSON.stringify(wantValue));
- console.info('featureAbility.startAbility end');
- },
-
- // itemClick(news) {
- // router.push({
- // uri: "MainAbility2/pages/index/index",
- // params: {
- // "title": news.title,
- // "type": news.type,
- // "imgUrl": news.imgUrl,
- // "reads": news.reads,
- // "likes": news.likes,
- // "content": news.content,
- // }
- // });
- //
- // }
-}
diff --git a/Distributed/NewsDemo/entry/.preview/merge_js_src/wearable/default/pages/index/index.js b/Distributed/NewsDemo/entry/.preview/merge_js_src/wearable/default/pages/index/index.js
deleted file mode 100644
index 4a9d8d96cdc0c51dedc0d6d5f530c7b2a8716a0d..0000000000000000000000000000000000000000
--- a/Distributed/NewsDemo/entry/.preview/merge_js_src/wearable/default/pages/index/index.js
+++ /dev/null
@@ -1,264 +0,0 @@
-//import {titles, newsData} from '../../../MainAbility/common/data/data.js';
-
-import featureAbility from '@ohos.ability.featureAbility';
-
- const titles= [
- {
- "name": "All"
- },
- {
- "name": "Health"
- },
- {
- "name": "Finance"
- },
- {
- "name": "Technology"
- },
- {
- "name": "Sport"
- },
- {
- "name": "Internet"
- },
- {
- "name": "Game"
- }
-]
-
- const newsData = [
- {
- "title": "Best Enterprise Wi-Fi Network Award of the Wireless Broadband Alliance 2020",
- "type": "Health",
- "imgUrl": "/common/images/news_image1.jpg",
- "reads": "54",
- "likes": "81",
- "content": "Recently, at the Wireless Broadband Alliance (WBA), an international industry organization, Huawei's AirEngine Wi-Fi 6 Solution Helps Factory Digital Transformation WBA 2020 Wi-Fi Industry Best Enterprise Wi-Fi Network Award. This is the first time that a Chinese Wi-Fi 6 vendor has won this award, which reflects the full recognition of Huawei AirEngine Wi-Fi 6 by global enterprise users."
- },
- {
- "title": "Latest technology and industry weather vane",
- "type": "Health",
- "imgUrl": "/common/images/news_image2.jpg",
- "reads": "100",
- "likes": "354",
- "content": "With the large-scale commercial use of new technologies such as 5G, IoT, cloud computing, and AI, industry digital transformation has entered deep water. In addition, the sudden epidemic and carbon-neutral targets accelerate the transformation of society towards intelligence. When energy technologies are combined with power electronics and digital technologies, what direction will site energy develop?"
- },
- {
- "title": "Openness and Cooperation Facilitate Industry Upgrade",
- "type": "Finance",
- "imgUrl": "/common/images/news_image3.jpg",
- "reads": "74",
- "likes": "91",
- "content": "Under the background of new infrastructure construction, digital transformation will face great pressure in power consumption. According to analysis data, it is estimated that the number of communication sites will increase to 70 million by 2025, and the annual power consumption will exceed 660 billion kWh. The data center will increase to 24 million racks, and the annual power consumption will exceed 950 billion kWh. In pan-industrial scenarios, the annual power consumption of rail transportation and industrial manufacturing alone will exceed 16 trillion kWh There are 40 billion smart terminals, and the annual power consumption will reach 210 billion kWh. The 40 billion mobile terminals under the 21 billion kWh power are driven by the transformation of social media and digital life."
- },
- {
- "title": "High-voltage super-fast charging is an inevitable trend",
- "type": "Finance",
- "imgUrl": "/common/images/news_image4.jpg",
- "reads": "44",
- "likes": "82",
- "content": "Consumers have a lot of doubts about buying electric cars, compared to fuel cars. Wang Chao pointed out that among the factors affecting the purchase of electric vehicles, charging problems account for 80 percent, with a small number of charging piles (currently, the ratio of piles is 3.2:1) and a long charging time being the first to bear the brunt. As a result, many players in the charging infrastructure sector are looking for a break. To alleviate consumers' pain points of poor charging experience, we need to improve the pile ratio and shorten the charging time to meet consumers' requirements for fast charging."
- },
- {
- "title": "Huawei Releases the New Trend of Modular Power Supply, Facilitating Industry Upgrade Through Open Cooperation",
- "type": "Technology",
- "imgUrl": "/common/images/news_image5.jpg",
- "reads": "73",
- "likes": "888",
- "content": "Under the background of new infrastructure construction, digital transformation will face great pressure in power consumption. According to analysis data, it is estimated that the number of communication sites will increase to 70 million by 2025, and the annual power consumption will exceed 660 billion kWh. The data center will increase to 24 million racks, and the annual power consumption will exceed 950 billion kWh. In pan-industrial scenarios, the annual power consumption of rail transportation and industrial manufacturing alone will exceed 16 trillion kWh. There are 40 billion smart terminals, and the annual power consumption will reach 210 billion kWh. The 40 billion mobile terminals under the 21 billion kWh power are driven by the transformation of social media and digital life."
- },
- {
- "title": "Ten Future Trends of Digital Energy",
- "type": "Technology",
- "imgUrl": "/common/images/news_image6.jpg",
- "reads": "100",
- "likes": "354",
- "content": "Energy digitalization is an inevitable trend. Innovative integration of digital and energy technologies enables end-to-end visual, manageable, and controllable intelligent management of energy infrastructure, improving energy efficiency.\nGreen power will benefit thousands of industries and households in the future. Green power, represented by PV, will become the main energy source. The era of price-effective PV is coming, and the integration of distributed power generation and solar storage will become an inevitable trend. Green Power will also help the ICT industry reduce its carbon footprint. In the future, we will build a \"zero-carbon network\" and \"zero-carbon\" data center. In addition, Huawei proposed the trend of full-link efficiency for the first time and implemented global optimization in terms of architecture and system."
- },
- {
- "title": "Ascend Helps Industry, Learning, and Research Promote AI Industry Development in the National AI Contest",
- "type": "Sport",
- "imgUrl": "/common/images/news_image7.jpg",
- "reads": "123",
- "likes": "911",
- "content": "The holding of the National AI Contest further fulfilled the requirements of the Ministry of Science and Technology and the Ministry of Industry and Information Technology for Shenzhen to build the national new-generation AI innovation and development trial zone and the AI innovation and application pilot zone. It also promoted the integration and development of innovation elements such as industry, academia, capital, and talent, create an AI innovation atmosphere. Huawei has co-hosted two National AI Competitions in a row, aiming to promote technological progress, industrial upgrade, economic transformation, and social progress, and jointly promote the implementation of AI technologies. This is the most practical point for Huawei and the National AI Competition."
- },
- {
- "title": "Enterprise data centers are moving towards autonomous driving network",
- "type": "Sport",
- "imgUrl": "/common/images/news_image8.jpg",
- "reads": "754",
- "likes": "149",
- "content": "More than 90% of enterprises say that fully autonomous driving data center network is their goal to achieve business agility, flexibility, and cost-effectiveness. This is a key research result in the data center network Autonomous Driving Index Report released by Huawei and IDC. Autonomous driving data center network helps enterprises restructure network architectures and operation models and enhance business resilience and continuity. In addition, regardless of the current level of data center network automation, IDC offers some guidance on how enterprises can move forward and move towards full automation."
- },
- {
- "title": "One optical fiber lights up a green smart room",
- "type": "Internet",
- "imgUrl": "/common/images/news_image9.jpg",
- "reads": "631",
- "likes": "714",
- "content": "At the 2020 China Real Estate Development Summit held in Guangzhou, Jin Yuzhi, President of Huawei's Transmission and Access Product Line, delivered a keynote speech entitled \"One Fiber Lights Green Smart Rooms\" to discuss the convergence development trend of optical networks and real estate industries, proposes that optical fibers are the standard configuration of F5G smart real estate, and shares seven reasons for choosing Fiber to the Room (FTTR) all-optical home networking, we call on industry partners to work together to build an F5G real gigabit all-optical room ecosystem."
- },
- {
- "title": "BWS2020: Accelerate Network Autonomy and Enable Agile Business",
- "type": "Internet",
- "imgUrl": "/common/images/news_image10.jpg",
- "reads": "53",
- "likes": "824",
- "content": "Currently, millions of enterprises embrace changes and accelerate their cloudification. SaaS traffic surges. Enterprise cloudification and multi-cloud collaboration become the new focus of cloud-network synergy . To address this challenge, Guo Dazheng, president of Huawei's data communications field, said: \"In cloud-network scenarios, iMaster NCE implements network as a service to help carriers provide cloud-network integration services and meet enterprise cloud access requirements.\" In 5G transport scenarios, improve the automation capability of the entire process of planning, construction, maintenance, and optimization to meet the requirements of large-scale 5G network construction and cloud network cost reduction and efficiency improvement."
- },
- {
- "title": "Trust technology, embrace openness, and share the world prosperity brought by technology",
- "type": "Game",
- "imgUrl": "/common/images/news_image11.jpg",
- "reads": "1500",
- "likes": "3542",
- "content": "Huawei successfully held the TrustInTech 2020 online summit today. Ryan Ding, Executive Director of Huawei, President of the Carrier BG, and Jim Rogers, a senior Wall Street investor, GSMA Chief Marketing Officer Stephanie Lynch-Habib and other ICT industry experts and economists from around the world attended the summit. The summit pointed out that ICT has become a digital foundation for economic development and people's livelihood. In an era of accelerated commercial use of 5G, the world needs to embrace openness and cooperation to eliminate unnecessary resistance and fears about new technologies and transnational cooperation, thereby sharing the world prosperity brought by technology."
- },
- {
- "title": "Intelligent Twins Won the Leading Technology Achievement Award at the 7th World Internet Conference",
- "type": "Game",
- "imgUrl": "/common/images/news_image12.jpg",
- "reads": "7451",
- "likes": "9511",
- "content": "Today, the Leading Technology Award was unveiled at the 7th World Internet Conference. As the industry's first systematic technical reference architecture for government and enterprise intelligence upgrade, intelligent virtual appliances have been recognized by experts and judges and won the Leading Scientific Achievement Award for their exploration and practice in various industries. This is the fifth time Huawei has won this award since 2016. The World Internet Leading Science and Technology Award showcases the latest technologies in the global ICT field and focuses on the best practices of innovative technologies in the fields of science and technology fight against epidemics, recovery of work, and promotion of digital economic development and cooperation."
- },
- {
- "title": "4G/5G FWA, New Engine for Revenue Growth",
- "type": "Health",
- "imgUrl": "/common/images/news_image13.jpg",
- "reads": "445",
- "likes": "872",
- "content": "The reason why FWA is growing so fast is that it provides new opportunities for carriers in the consumer market. For example, a Philippine operator used 4G FWA to rapidly develop home broadband users. According to its third quarter financial report, the operator has successfully developed 2.78 million new users this year, accounting for 80% of the total broadband users. The percentage of broadband revenue increased from 12.3% in 2017 to 17.9%. With the development of wireless technologies, 5G FWA can provide gigabit home access experience similar to that of optical fibers, meeting services such as 4K/8K HD video and AR/VR interactive experience."
- },
- {
- "title": "Down! CPI released in November! These things are cheap",
- "type": "Finance",
- "imgUrl": "/common/images/news_image14.jpg",
- "reads": "734",
- "likes": "8788",
- "content": "Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap."
- },
- {
- "title": "Comedy movie \"Big Red Envelope\" is set to celebrate the New Year",
- "type": "Technology",
- "imgUrl": "/common/images/news_image15.jpg",
- "reads": "1010",
- "likes": "3534",
- "content": "Comedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New Year"
- },
- {
- "title": "Three living things are smart",
- "type": "Sport",
- "imgUrl": "/common/images/news_image16.jpg",
- "reads": "1243",
- "likes": "9141",
- "content": "Lifan said at the press conference: \"Retrospective on the journey, we have always adhered to the spirit of initiative, innovation and science. Build core capabilities in terms of networks, technologies, and platforms, and deliver excellent services, technologies, and quality. Internal maintenance, optimization, and sharing are in place. Carriers, equipment vendors, and partners are working together to build an end-to-end network capability and win-win ecosystem to provide users with the best 5G experience and services.\""
- },
- {
- "title": "Maximizing the Value of Wireless Networks and Ushering in the Golden Decade of 5G",
- "type": "Internet",
- "imgUrl": "/common/images/news_image17.jpg",
- "reads": "7574",
- "likes": "1439",
- "content": "The 5G industry is developing faster than the previous standards. Currently, there are more than 100 5G commercial networks around the world, and the price of entry-level 5G mobile phones has fallen to CNY1,000, which has led to the rapid growth of 5G users worldwide. Thanks to this, leading operators have enjoyed the data dividend brought by 5G. The multi-dimensional package design and 5G message and 5G new communication services are upgraded to increase the ARPU of 5G users to different degrees.\nTo promote the further development of 5G networks and encourage more users to choose and prefer 5G networks, operators need to build 5G top-quality networks for individual users to achieve full-scenario coverage in densely populated urban areas, suburban areas, and indoor areas, allowing mobile phone users to access 5G services anytime, anywhere. In addition, 5G connection experience is optimized to ensure consistent user experience."
- },
- {
- "title": "Technology Helps Art, Leads a New Era",
- "type": "Game",
- "imgUrl": "/common/images/news_image18.jpg",
- "reads": "6311",
- "likes": "7114",
- "content": "Zhang Wenlin spoke highly of the \"Dance Storm\". He believes that since the second season's premiere, the show has brought the contestants' exquisite dance moves, the wonderful host of Mr Ho Kung, the excellent comments of the judges' tutors, and the exquisite design of the staff to the audience, dedicate a beautiful visual feast! To help achieve fantastic visual effects, Hunan Radio and TV set up a joint team with Huawei to develop a spatio-temporal condensation system for Dance Storm 2. The system supports AI algorithms such as intelligent fast focusing, butterfly shooting, zoom-in, and multi-focus, with the help of the video 3.0+ platform of device-cloud synergy, the program team has made several industry-leading achievements, such as the three-dimensional storm moment with fantastic visual changes, free-view Dance Storm program with interactive control and rotation, and dance Storm with 360-degree panoramic view. VR programs."
- },
- {
- "title": "Open Intelligent Twin Ecosystem Is the Key to All-Scenario Intelligence",
- "type": "Health",
- "imgUrl": "/common/images/news_image19.jpg",
- "reads": "6341",
- "likes": "7164",
- "content": "Intelligent upgrade will build core competitiveness in various industries. Huawei works with partners to integrate 5G, cloud, AI, intelligent edge, and industry applications to form an integrated intelligent system and create industry-leading smart experience. In the transportation industry, the abolition of highway toll stations at the provincial boundary enables fast and insensitive traffic, greatly improving traffic efficiency and reducing logistics transportation costs. Intelligent cameras are deployed on highway portals to collect vehicle traffic data 24 hours a day and send the data to the cloud in real time over the high-speed network for real-time charging. In addition, AI models trained on the cloud can be pushed to the edge so that cameras can have capabilities such as license plate recognition and vehicle feature extraction, and the capabilities can be continuously evolved. For example, in extreme weather conditions such as rain and snow, one-click upgrade can be performed on the cloud."
- }
-]
-
-
-
-
-export default {
- data() {
- return {
- titleList: titles,
- newsList: newsData
- }
- },
- onInit() {
- console.log("onInit::" + titles)
- },
- changeNewsType: function (e) {
- var type = titles[e.index].name;
- this.newsList = [];
- if (type === "All") {
- this.newsList = newsData;
- } else {
- var newsArray = [];
- for (var news of newsData) {
- if (news.type === type) {
- newsArray.push(news);
- }
- }
- this.newsList = newsArray;
- }
- },
- startAbilityContinuation(news) {
- // this.$element('continueAbilityDialog').close();
-
- // console.info('featureAbility.startAbility deviceId=' + deviceId
- // + ' deviceName=' + deviceName);
- var params;
- params = {
- title: news.title,
- type: news.type,
- imgUrl: news.imgUrl,
- reads: news.reads,
- likes: news.likes,
- content: news.content,
- };
- var wantValue = {
- bundleName: 'com.example.newsclientopenharmony',
- abilityName: 'com.example.newsclientopenharmony.MainAbility2',
- deviceId: '',
- parameters: params
- // //params: {
- // "title": news.title,
- // "type": news.type,
- // "imgUrl": news.imgUrl,
- // "reads": news.reads,
- // "likes": news.likes,
- // "content": news.content,
- // //}
- };
-
- featureAbility.startAbility({
- want: wantValue
- }).then((data) => {
- console.info('featureAbility.startAbility finished, ' + JSON.stringify(data));
- });
- console.info('featureAbility.startAbility want=' + JSON.stringify(wantValue));
- console.info('featureAbility.startAbility end');
- },
-
- // itemClick(news) {
- // router.push({
- // uri: "MainAbility2/pages/index/index",
- // params: {
- // "title": news.title,
- // "type": news.type,
- // "imgUrl": news.imgUrl,
- // "reads": news.reads,
- // "likes": news.likes,
- // "content": news.content,
- // }
- // });
- //
- // }
-}
diff --git a/Distributed/NewsDemo/entry/src/main/config.json b/Distributed/NewsDemo/entry/src/main/config.json
index d3ed04fb3427352b7c7938ee91f6389a1ab2190e..9821fe1a32651f101ae72ebe3ac6f4ad0c35e384 100644
--- a/Distributed/NewsDemo/entry/src/main/config.json
+++ b/Distributed/NewsDemo/entry/src/main/config.json
@@ -41,20 +41,7 @@
"icon": "$media:icon",
"description": "$string:mainability_description",
"formsEnabled": false,
- "label": "$string:entry_MainAbility",
- "type": "page",
- "launchType": "standard"
- },
- {
- "orientation": "unspecified",
- "visible": true,
- "srcPath": "MainAbility2",
- "name": ".MainAbility2",
- "srcLanguage": "js",
- "icon": "$media:icon",
- "description": "$string:mainability2_description",
- "formsEnabled": false,
- "label": "$string:entry_MainAbility",
+ "label": "$string:NewsClient",
"type": "page",
"launchType": "standard"
}
@@ -62,23 +49,14 @@
"js": [
{
"pages": [
- "pages/index/index"
+ "pages/index/index",
+ "pages/detail/detail"
],
"name": ".MainAbility",
"window": {
"designWidth": 720,
"autoDesignWidth": false
}
- },
- {
- "pages": [
- "pages/index/index"
- ],
- "name": ".MainAbility2",
- "window": {
- "designWidth": 720,
- "autoDesignWidth": false
- }
}
]
}
diff --git a/Distributed/NewsDemo/entry/src/main/js/MainAbility/app.js b/Distributed/NewsDemo/entry/src/main/js/MainAbility/app.js
index 6d060ffe5682c19fc83e2274a9e62cbc40a655f8..0f1892c02dda471104a94d8f12105df9aa34b558 100644
--- a/Distributed/NewsDemo/entry/src/main/js/MainAbility/app.js
+++ b/Distributed/NewsDemo/entry/src/main/js/MainAbility/app.js
@@ -1,8 +1,8 @@
export default {
- onCreate() {
- console.info("Application onCreate");
- },
- onDestroy() {
- console.info("Application onDestroy");
- }
+ onCreate() {
+ console.info("Application onCreate");
+ },
+ onDestroy() {
+ console.info("Application onDestroy");
+ }
};
diff --git a/Distributed/NewsDemo/entry/src/main/js/MainAbility/common/data/data.js b/Distributed/NewsDemo/entry/src/main/js/MainAbility/common/data/data.js
deleted file mode 100644
index f76137341d300fd7566c565a5190f2f7ed39d4ab..0000000000000000000000000000000000000000
--- a/Distributed/NewsDemo/entry/src/main/js/MainAbility/common/data/data.js
+++ /dev/null
@@ -1,184 +0,0 @@
-
-const titles= [
- {
- "name": "All"
- },
- {
- "name": "Health"
- },
- {
- "name": "Finance"
- },
- {
- "name": "Technology"
- },
- {
- "name": "Sport"
- },
- {
- "name": "Internet"
- },
- {
- "name": "Game"
- }
-]
-
-const newsData = [
- {
- "title": "Best Enterprise Wi-Fi Network Award of the Wireless Broadband Alliance 2020",
- "type": "Health",
- "imgUrl": "/common/images/news_image1.jpg",
- "reads": "54",
- "likes": "81",
- "content": "Recently, at the Wireless Broadband Alliance (WBA), an international industry organization, Huawei's AirEngine Wi-Fi 6 Solution Helps Factory Digital Transformation WBA 2020 Wi-Fi Industry Best Enterprise Wi-Fi Network Award. This is the first time that a Chinese Wi-Fi 6 vendor has won this award, which reflects the full recognition of Huawei AirEngine Wi-Fi 6 by global enterprise users."
- },
- {
- "title": "Latest technology and industry weather vane",
- "type": "Health",
- "imgUrl": "/common/images/news_image2.jpg",
- "reads": "100",
- "likes": "354",
- "content": "With the large-scale commercial use of new technologies such as 5G, IoT, cloud computing, and AI, industry digital transformation has entered deep water. In addition, the sudden epidemic and carbon-neutral targets accelerate the transformation of society towards intelligence. When energy technologies are combined with power electronics and digital technologies, what direction will site energy develop?"
- },
- {
- "title": "Openness and Cooperation Facilitate Industry Upgrade",
- "type": "Finance",
- "imgUrl": "/common/images/news_image3.jpg",
- "reads": "74",
- "likes": "91",
- "content": "Under the background of new infrastructure construction, digital transformation will face great pressure in power consumption. According to analysis data, it is estimated that the number of communication sites will increase to 70 million by 2025, and the annual power consumption will exceed 660 billion kWh. The data center will increase to 24 million racks, and the annual power consumption will exceed 950 billion kWh. In pan-industrial scenarios, the annual power consumption of rail transportation and industrial manufacturing alone will exceed 16 trillion kWh There are 40 billion smart terminals, and the annual power consumption will reach 210 billion kWh. The 40 billion mobile terminals under the 21 billion kWh power are driven by the transformation of social media and digital life."
- },
- {
- "title": "High-voltage super-fast charging is an inevitable trend",
- "type": "Finance",
- "imgUrl": "/common/images/news_image4.jpg",
- "reads": "44",
- "likes": "82",
- "content": "Consumers have a lot of doubts about buying electric cars, compared to fuel cars. Wang Chao pointed out that among the factors affecting the purchase of electric vehicles, charging problems account for 80 percent, with a small number of charging piles (currently, the ratio of piles is 3.2:1) and a long charging time being the first to bear the brunt. As a result, many players in the charging infrastructure sector are looking for a break. To alleviate consumers' pain points of poor charging experience, we need to improve the pile ratio and shorten the charging time to meet consumers' requirements for fast charging."
- },
- {
- "title": "Huawei Releases the New Trend of Modular Power Supply, Facilitating Industry Upgrade Through Open Cooperation",
- "type": "Technology",
- "imgUrl": "/common/images/news_image5.jpg",
- "reads": "73",
- "likes": "888",
- "content": "Under the background of new infrastructure construction, digital transformation will face great pressure in power consumption. According to analysis data, it is estimated that the number of communication sites will increase to 70 million by 2025, and the annual power consumption will exceed 660 billion kWh. The data center will increase to 24 million racks, and the annual power consumption will exceed 950 billion kWh. In pan-industrial scenarios, the annual power consumption of rail transportation and industrial manufacturing alone will exceed 16 trillion kWh. There are 40 billion smart terminals, and the annual power consumption will reach 210 billion kWh. The 40 billion mobile terminals under the 21 billion kWh power are driven by the transformation of social media and digital life."
- },
- {
- "title": "Ten Future Trends of Digital Energy",
- "type": "Technology",
- "imgUrl": "/common/images/news_image6.jpg",
- "reads": "100",
- "likes": "354",
- "content": "Energy digitalization is an inevitable trend. Innovative integration of digital and energy technologies enables end-to-end visual, manageable, and controllable intelligent management of energy infrastructure, improving energy efficiency.\nGreen power will benefit thousands of industries and households in the future. Green power, represented by PV, will become the main energy source. The era of price-effective PV is coming, and the integration of distributed power generation and solar storage will become an inevitable trend. Green Power will also help the ICT industry reduce its carbon footprint. In the future, we will build a \"zero-carbon network\" and \"zero-carbon\" data center. In addition, Huawei proposed the trend of full-link efficiency for the first time and implemented global optimization in terms of architecture and system."
- },
- {
- "title": "Ascend Helps Industry, Learning, and Research Promote AI Industry Development in the National AI Contest",
- "type": "Sport",
- "imgUrl": "/common/images/news_image7.jpg",
- "reads": "123",
- "likes": "911",
- "content": "The holding of the National AI Contest further fulfilled the requirements of the Ministry of Science and Technology and the Ministry of Industry and Information Technology for Shenzhen to build the national new-generation AI innovation and development trial zone and the AI innovation and application pilot zone. It also promoted the integration and development of innovation elements such as industry, academia, capital, and talent, create an AI innovation atmosphere. Huawei has co-hosted two National AI Competitions in a row, aiming to promote technological progress, industrial upgrade, economic transformation, and social progress, and jointly promote the implementation of AI technologies. This is the most practical point for Huawei and the National AI Competition."
- },
- {
- "title": "Enterprise data centers are moving towards autonomous driving network",
- "type": "Sport",
- "imgUrl": "/common/images/news_image8.jpg",
- "reads": "754",
- "likes": "149",
- "content": "More than 90% of enterprises say that fully autonomous driving data center network is their goal to achieve business agility, flexibility, and cost-effectiveness. This is a key research result in the data center network Autonomous Driving Index Report released by Huawei and IDC. Autonomous driving data center network helps enterprises restructure network architectures and operation models and enhance business resilience and continuity. In addition, regardless of the current level of data center network automation, IDC offers some guidance on how enterprises can move forward and move towards full automation."
- },
- {
- "title": "One optical fiber lights up a green smart room",
- "type": "Internet",
- "imgUrl": "/common/images/news_image9.jpg",
- "reads": "631",
- "likes": "714",
- "content": "At the 2020 China Real Estate Development Summit held in Guangzhou, Jin Yuzhi, President of Huawei's Transmission and Access Product Line, delivered a keynote speech entitled \"One Fiber Lights Green Smart Rooms\" to discuss the convergence development trend of optical networks and real estate industries, proposes that optical fibers are the standard configuration of F5G smart real estate, and shares seven reasons for choosing Fiber to the Room (FTTR) all-optical home networking, we call on industry partners to work together to build an F5G real gigabit all-optical room ecosystem."
- },
- {
- "title": "BWS2020: Accelerate Network Autonomy and Enable Agile Business",
- "type": "Internet",
- "imgUrl": "/common/images/news_image10.jpg",
- "reads": "53",
- "likes": "824",
- "content": "Currently, millions of enterprises embrace changes and accelerate their cloudification. SaaS traffic surges. Enterprise cloudification and multi-cloud collaboration become the new focus of cloud-network synergy . To address this challenge, Guo Dazheng, president of Huawei's data communications field, said: \"In cloud-network scenarios, iMaster NCE implements network as a service to help carriers provide cloud-network integration services and meet enterprise cloud access requirements.\" In 5G transport scenarios, improve the automation capability of the entire process of planning, construction, maintenance, and optimization to meet the requirements of large-scale 5G network construction and cloud network cost reduction and efficiency improvement."
- },
- {
- "title": "Trust technology, embrace openness, and share the world prosperity brought by technology",
- "type": "Game",
- "imgUrl": "/common/images/news_image11.jpg",
- "reads": "1500",
- "likes": "3542",
- "content": "Huawei successfully held the TrustInTech 2020 online summit today. Ryan Ding, Executive Director of Huawei, President of the Carrier BG, and Jim Rogers, a senior Wall Street investor, GSMA Chief Marketing Officer Stephanie Lynch-Habib and other ICT industry experts and economists from around the world attended the summit. The summit pointed out that ICT has become a digital foundation for economic development and people's livelihood. In an era of accelerated commercial use of 5G, the world needs to embrace openness and cooperation to eliminate unnecessary resistance and fears about new technologies and transnational cooperation, thereby sharing the world prosperity brought by technology."
- },
- {
- "title": "Intelligent Twins Won the Leading Technology Achievement Award at the 7th World Internet Conference",
- "type": "Game",
- "imgUrl": "/common/images/news_image12.jpg",
- "reads": "7451",
- "likes": "9511",
- "content": "Today, the Leading Technology Award was unveiled at the 7th World Internet Conference. As the industry's first systematic technical reference architecture for government and enterprise intelligence upgrade, intelligent virtual appliances have been recognized by experts and judges and won the Leading Scientific Achievement Award for their exploration and practice in various industries. This is the fifth time Huawei has won this award since 2016. The World Internet Leading Science and Technology Award showcases the latest technologies in the global ICT field and focuses on the best practices of innovative technologies in the fields of science and technology fight against epidemics, recovery of work, and promotion of digital economic development and cooperation."
- },
- {
- "title": "4G/5G FWA, New Engine for Revenue Growth",
- "type": "Health",
- "imgUrl": "/common/images/news_image13.jpg",
- "reads": "445",
- "likes": "872",
- "content": "The reason why FWA is growing so fast is that it provides new opportunities for carriers in the consumer market. For example, a Philippine operator used 4G FWA to rapidly develop home broadband users. According to its third quarter financial report, the operator has successfully developed 2.78 million new users this year, accounting for 80% of the total broadband users. The percentage of broadband revenue increased from 12.3% in 2017 to 17.9%. With the development of wireless technologies, 5G FWA can provide gigabit home access experience similar to that of optical fibers, meeting services such as 4K/8K HD video and AR/VR interactive experience."
- },
- {
- "title": "Down! CPI released in November! These things are cheap",
- "type": "Finance",
- "imgUrl": "/common/images/news_image14.jpg",
- "reads": "734",
- "likes": "8788",
- "content": "Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap.Down! CPI released in November! These things are cheap."
- },
- {
- "title": "Comedy movie \"Big Red Envelope\" is set to celebrate the New Year",
- "type": "Technology",
- "imgUrl": "/common/images/news_image15.jpg",
- "reads": "1010",
- "likes": "3534",
- "content": "Comedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New YearComedy movie \"Big Red Envelope\" is set to celebrate the New Year"
- },
- {
- "title": "Three living things are smart",
- "type": "Sport",
- "imgUrl": "/common/images/news_image16.jpg",
- "reads": "1243",
- "likes": "9141",
- "content": "Lifan said at the press conference: \"Retrospective on the journey, we have always adhered to the spirit of initiative, innovation and science. Build core capabilities in terms of networks, technologies, and platforms, and deliver excellent services, technologies, and quality. Internal maintenance, optimization, and sharing are in place. Carriers, equipment vendors, and partners are working together to build an end-to-end network capability and win-win ecosystem to provide users with the best 5G experience and services.\""
- },
- {
- "title": "Maximizing the Value of Wireless Networks and Ushering in the Golden Decade of 5G",
- "type": "Internet",
- "imgUrl": "/common/images/news_image17.jpg",
- "reads": "7574",
- "likes": "1439",
- "content": "The 5G industry is developing faster than the previous standards. Currently, there are more than 100 5G commercial networks around the world, and the price of entry-level 5G mobile phones has fallen to CNY1,000, which has led to the rapid growth of 5G users worldwide. Thanks to this, leading operators have enjoyed the data dividend brought by 5G. The multi-dimensional package design and 5G message and 5G new communication services are upgraded to increase the ARPU of 5G users to different degrees.\nTo promote the further development of 5G networks and encourage more users to choose and prefer 5G networks, operators need to build 5G top-quality networks for individual users to achieve full-scenario coverage in densely populated urban areas, suburban areas, and indoor areas, allowing mobile phone users to access 5G services anytime, anywhere. In addition, 5G connection experience is optimized to ensure consistent user experience."
- },
- {
- "title": "Technology Helps Art, Leads a New Era",
- "type": "Game",
- "imgUrl": "/common/images/news_image18.jpg",
- "reads": "6311",
- "likes": "7114",
- "content": "Zhang Wenlin spoke highly of the \"Dance Storm\". He believes that since the second season's premiere, the show has brought the contestants' exquisite dance moves, the wonderful host of Mr Ho Kung, the excellent comments of the judges' tutors, and the exquisite design of the staff to the audience, dedicate a beautiful visual feast! To help achieve fantastic visual effects, Hunan Radio and TV set up a joint team with Huawei to develop a spatio-temporal condensation system for Dance Storm 2. The system supports AI algorithms such as intelligent fast focusing, butterfly shooting, zoom-in, and multi-focus, with the help of the video 3.0+ platform of device-cloud synergy, the program team has made several industry-leading achievements, such as the three-dimensional storm moment with fantastic visual changes, free-view Dance Storm program with interactive control and rotation, and dance Storm with 360-degree panoramic view. VR programs."
- },
- {
- "title": "Open Intelligent Twin Ecosystem Is the Key to All-Scenario Intelligence",
- "type": "Health",
- "imgUrl": "/common/images/news_image19.jpg",
- "reads": "6341",
- "likes": "7164",
- "content": "Intelligent upgrade will build core competitiveness in various industries. Huawei works with partners to integrate 5G, cloud, AI, intelligent edge, and industry applications to form an integrated intelligent system and create industry-leading smart experience. In the transportation industry, the abolition of highway toll stations at the provincial boundary enables fast and insensitive traffic, greatly improving traffic efficiency and reducing logistics transportation costs. Intelligent cameras are deployed on highway portals to collect vehicle traffic data 24 hours a day and send the data to the cloud in real time over the high-speed network for real-time charging. In addition, AI models trained on the cloud can be pushed to the edge so that cameras can have capabilities such as license plate recognition and vehicle feature extraction, and the capabilities can be continuously evolved. For example, in extreme weather conditions such as rain and snow, one-click upgrade can be performed on the cloud."
- }
-]
-
-export {titles, newsData}
-
-
-
diff --git a/Distributed/NewsDemo/entry/src/main/js/MainAbility/i18n/en-US.json b/Distributed/NewsDemo/entry/src/main/js/MainAbility/i18n/en-US.json
index 547e7e13afae9b28f836a4d857e576413ea82bc5..02536fd164b9f0b11aab483ab81ed82ae4ae9c59 100644
--- a/Distributed/NewsDemo/entry/src/main/js/MainAbility/i18n/en-US.json
+++ b/Distributed/NewsDemo/entry/src/main/js/MainAbility/i18n/en-US.json
@@ -1,7 +1,7 @@
{
"strings": {
- "hello": "Hello",
- "world": "World",
+ "hello": "shizhe",
+ "world": "Hello",
"page": "Second Page",
"next": "Next Page",
"back": "Back",
diff --git a/Distributed/NewsDemo/entry/src/main/js/MainAbility/i18n/zh-CN.json b/Distributed/NewsDemo/entry/src/main/js/MainAbility/i18n/zh-CN.json
index 38de361bd7bac39682ded8a4839f9cf7822fbdf0..d80a8bb61500ee734a54b5c4002f15ed38654308 100644
--- a/Distributed/NewsDemo/entry/src/main/js/MainAbility/i18n/zh-CN.json
+++ b/Distributed/NewsDemo/entry/src/main/js/MainAbility/i18n/zh-CN.json
@@ -1,6 +1,6 @@
{
"strings": {
- "hello": "您好",
+ "hello": "SHIZHE",
"world": "世界",
"page": "第二页",
"next": "下一页",
diff --git a/Distributed/NewsDemo/entry/src/main/js/MainAbility2/pages/index/index.css b/Distributed/NewsDemo/entry/src/main/js/MainAbility/pages/detail/detail.css
similarity index 95%
rename from Distributed/NewsDemo/entry/src/main/js/MainAbility2/pages/index/index.css
rename to Distributed/NewsDemo/entry/src/main/js/MainAbility/pages/detail/detail.css
index afa1298e53d0db8458cd7856a575e68417b3e4d7..f3e430a9b7a5c04340a29c85e7a34335b6311a64 100644
--- a/Distributed/NewsDemo/entry/src/main/js/MainAbility2/pages/index/index.css
+++ b/Distributed/NewsDemo/entry/src/main/js/MainAbility/pages/detail/detail.css
@@ -20,18 +20,25 @@
}
.text-title {
- margin: 20px;
- font-size: 50px;
+ height: 200px;
+ word-break:normal;
+ max-lines:2;
+ text-overflow:ellipsis;
+ margin: 10px;
+ font-size: 45px;
}
.text-reads {
+ height: 60px;
font-size: 32px;
text-color: #666666;
- margin: 20px;
+ margin: 10px;
}
.image {
margin: 20px;
+ height: 450px;
+ object-fit: cover;
}
.text-content {
@@ -293,4 +300,4 @@
@media screen and (device-type: phone) and (orientation: landscape) {
-}
+}
\ No newline at end of file
diff --git a/Distributed/NewsDemo/entry/src/main/js/MainAbility2/pages/index/index.hml b/Distributed/NewsDemo/entry/src/main/js/MainAbility/pages/detail/detail.hml
similarity index 56%
rename from Distributed/NewsDemo/entry/src/main/js/MainAbility2/pages/index/index.hml
rename to Distributed/NewsDemo/entry/src/main/js/MainAbility/pages/detail/detail.hml
index d0992c27de16cf83cc5163fe665c179a90149f50..604bc6ac332c034af73366ffb689bc99a7ce56e8 100644
--- a/Distributed/NewsDemo/entry/src/main/js/MainAbility2/pages/index/index.hml
+++ b/Distributed/NewsDemo/entry/src/main/js/MainAbility/pages/detail/detail.hml
@@ -14,9 +14,8 @@ limitations under the License.
-->