From 2a6da33aa4ef151a92466527bb8d1fb8230f84a1 Mon Sep 17 00:00:00 2001 From: lvyuanyuan Date: Tue, 25 Mar 2025 10:57:32 +0800 Subject: [PATCH 1/8] =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LiteWearable/build-profile.json5 | 41 ++++++++++++++++++ LiteWearable/entry/build-profile.json5 | 10 +++++ LiteWearable/entry/hvigorfile.ts | 6 +++ LiteWearable/entry/oh-package.json5 | 10 +++++ LiteWearable/entry/src/main/config.json | 40 +++++++++++++++++ .../entry/src/main/js/MainAbility/app.js | 8 ++++ .../src/main/js/MainAbility/i18n/en-US.json | 6 +++ .../src/main/js/MainAbility/i18n/zh-CN.json | 6 +++ .../main/js/MainAbility/pages/index/index.css | 11 +++++ .../main/js/MainAbility/pages/index/index.hml | 5 +++ .../main/js/MainAbility/pages/index/index.js | 8 ++++ .../main/resources/base/element/string.json | 16 +++++++ .../src/main/resources/base/media/icon.png | Bin 0 -> 14248 bytes .../main/resources/base/media/icon_small.png | Bin 0 -> 2777 bytes LiteWearable/hvigor/hvigor-config.json5 | 22 ++++++++++ LiteWearable/hvigorfile.ts | 6 +++ LiteWearable/oh-package.json5 | 9 ++++ 17 files changed, 204 insertions(+) create mode 100644 LiteWearable/build-profile.json5 create mode 100644 LiteWearable/entry/build-profile.json5 create mode 100644 LiteWearable/entry/hvigorfile.ts create mode 100644 LiteWearable/entry/oh-package.json5 create mode 100644 LiteWearable/entry/src/main/config.json create mode 100644 LiteWearable/entry/src/main/js/MainAbility/app.js create mode 100644 LiteWearable/entry/src/main/js/MainAbility/i18n/en-US.json create mode 100644 LiteWearable/entry/src/main/js/MainAbility/i18n/zh-CN.json create mode 100644 LiteWearable/entry/src/main/js/MainAbility/pages/index/index.css create mode 100644 LiteWearable/entry/src/main/js/MainAbility/pages/index/index.hml create mode 100644 LiteWearable/entry/src/main/js/MainAbility/pages/index/index.js create mode 100644 LiteWearable/entry/src/main/resources/base/element/string.json create mode 100644 LiteWearable/entry/src/main/resources/base/media/icon.png create mode 100644 LiteWearable/entry/src/main/resources/base/media/icon_small.png create mode 100644 LiteWearable/hvigor/hvigor-config.json5 create mode 100644 LiteWearable/hvigorfile.ts create mode 100644 LiteWearable/oh-package.json5 diff --git a/LiteWearable/build-profile.json5 b/LiteWearable/build-profile.json5 new file mode 100644 index 00000000..9952ea80 --- /dev/null +++ b/LiteWearable/build-profile.json5 @@ -0,0 +1,41 @@ +{ + "app": { + "signingConfigs": [], + "products": [ + { + "name": "default", + "signingConfig": "default", + "compatibleSdkVersion": "4.0.0(10)", + "runtimeOS": "HarmonyOS", + "buildOption": { + "strictMode": { + "caseSensitiveCheck": true, + "useNormalizedOHMUrl": false + } + } + } + ], + "buildModeSet": [ + { + "name": "debug", + }, + { + "name": "release" + } + ] + }, + "modules": [ + { + "name": "entry", + "srcPath": "./entry", + "targets": [ + { + "name": "default", + "applyToProducts": [ + "default" + ] + } + ] + } + ] +} \ No newline at end of file diff --git a/LiteWearable/entry/build-profile.json5 b/LiteWearable/entry/build-profile.json5 new file mode 100644 index 00000000..da8e97d0 --- /dev/null +++ b/LiteWearable/entry/build-profile.json5 @@ -0,0 +1,10 @@ +{ + "apiType": "faMode", + "buildOption": { + }, + "targets": [ + { + "name": "default" + } + ] +} \ No newline at end of file diff --git a/LiteWearable/entry/hvigorfile.ts b/LiteWearable/entry/hvigorfile.ts new file mode 100644 index 00000000..f5d6dbc4 --- /dev/null +++ b/LiteWearable/entry/hvigorfile.ts @@ -0,0 +1,6 @@ +import { legacyHapTasks } from '@ohos/hvigor-ohos-plugin'; + +export default { + system: legacyHapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ + plugins:[] /* Custom plugin to extend the functionality of Hvigor. */ +} diff --git a/LiteWearable/entry/oh-package.json5 b/LiteWearable/entry/oh-package.json5 new file mode 100644 index 00000000..248c3b75 --- /dev/null +++ b/LiteWearable/entry/oh-package.json5 @@ -0,0 +1,10 @@ +{ + "name": "entry", + "version": "1.0.0", + "description": "Please describe the basic information.", + "main": "", + "author": "", + "license": "", + "dependencies": {} +} + diff --git a/LiteWearable/entry/src/main/config.json b/LiteWearable/entry/src/main/config.json new file mode 100644 index 00000000..4c00c027 --- /dev/null +++ b/LiteWearable/entry/src/main/config.json @@ -0,0 +1,40 @@ +{ + "app": { + "bundleName": "com.example.litewearable", + "vendor": "example", + "version": { + "code": 1000000, + "name": "1.0.0" + } + }, + "deviceConfig": {}, + "module": { + "deviceType": [ + "liteWearable" + ], + "distro": { + "deliveryWithInstall": true, + "moduleName": "entry", + "moduleType": "entry" + }, + "abilities": [ + { + "name": ".MainAbility", + "srcLanguage": "js", + "srcPath": "MainAbility", + "icon": "$media:icon", + "description": "$string:MainAbility_desc", + "label": "$string:MainAbility_label", + "type": "page" + } + ], + "js": [ + { + "pages": [ + "pages/index/index" + ], + "name": ".MainAbility" + } + ] + } +} \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/app.js b/LiteWearable/entry/src/main/js/MainAbility/app.js new file mode 100644 index 00000000..326063fc --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/app.js @@ -0,0 +1,8 @@ +export default { + onCreate() { + console.info('Application onCreate'); + }, + onDestroy() { + console.info('Application onDestroy'); + } +}; diff --git a/LiteWearable/entry/src/main/js/MainAbility/i18n/en-US.json b/LiteWearable/entry/src/main/js/MainAbility/i18n/en-US.json new file mode 100644 index 00000000..e63c70d9 --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/i18n/en-US.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "Hello", + "world": "World" + } +} \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/i18n/zh-CN.json b/LiteWearable/entry/src/main/js/MainAbility/i18n/zh-CN.json new file mode 100644 index 00000000..de6ee574 --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/i18n/zh-CN.json @@ -0,0 +1,6 @@ +{ + "strings": { + "hello": "您好", + "world": "世界" + } +} \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.css b/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.css new file mode 100644 index 00000000..a5344c8d --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.css @@ -0,0 +1,11 @@ +.container { + width: 100%; + height: 100%; + justify-content: center; + align-items: center; +} +.title { + width: 200px; + font-size: 30px; + text-align: center; +} diff --git a/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.hml b/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.hml new file mode 100644 index 00000000..f64b040a --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.hml @@ -0,0 +1,5 @@ +
+ + {{ $t('strings.hello') }} {{ title }} + +
diff --git a/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.js b/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.js new file mode 100644 index 00000000..ab75d2c9 --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.js @@ -0,0 +1,8 @@ +export default { + data: { + title: '' + }, + onInit() { + this.title = this.$t('strings.world'); + } +}; diff --git a/LiteWearable/entry/src/main/resources/base/element/string.json b/LiteWearable/entry/src/main/resources/base/element/string.json new file mode 100644 index 00000000..ab343832 --- /dev/null +++ b/LiteWearable/entry/src/main/resources/base/element/string.json @@ -0,0 +1,16 @@ +{ + "string": [ + { + "name": "module_desc", + "value": "module description" + }, + { + "name": "MainAbility_desc", + "value": "description" + }, + { + "name": "MainAbility_label", + "value": "label" + } + ] +} \ No newline at end of file diff --git a/LiteWearable/entry/src/main/resources/base/media/icon.png b/LiteWearable/entry/src/main/resources/base/media/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..514fd9577eff00bd72c2a6a0fab27064feb94f3b GIT binary patch literal 14248 zcmV;ZH&@7sP)S==k}BCrUhx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rm)ZxK` z?xP*oyo#tO%D?w3RiU=|%yG@ye3m(_=h{V_+^e? z#hbPVV0G{P@9sFd;`jv*{KU0)#D9Oj#1&bvkIC`)@ZyWLx`Tu&XrF~ZI&n%@_R7FT z0PlYQ%Li*@B=d!Xg%zrb3)BXH8-HLhi4&6#rL$hXIYA5qqhVVVi8J)8KRv1EO!fpo z4~7;Mx49HQ34rrsfMYAycAxx9Z~lga!%N%~ciG*sJ9F^j%QX=n@_y9OSLU0v!{?DJ z4f54MG%;BACZ-I=B|yO|tHKeE^`)`k3YDv_RwG@ zz&*!DvqjR1Y%zezYf^QZqbZ{#4No4E_a1iluHy?wU-7^jE`24&_p(=HKwO!J*Ix4_ zO6<+!tYk;7cM3YqasvHdBIdV{3ZL?{!#OcCzewu zPRHMD&l;(Gq_J{MBaLf{Vwbs! zRSa{b%N>BBG9fS=)N`cxf#JjmXXJrf$wY&;#_X4dkH7(G-p64YX-&9&QITG+-+#UQ zw4W3AvHR;a%YDmZSU=&V=f6$*ISLXig@}>&isDT-cBf_+W zx#H5NIfAR8>1G;-@2c}k%fhl+2NA-xYO6`X@6R*t67s!D@pby&oqg{^({C{@fqhi< zRE0;yJ~}|3G`Qh$=e|^bKl>t;@r6qC`Eue9gqJ=_o#sq1i^iVt-$$KT^M7D_r((QSIsWpw3s?Orzu7;5`Xm+G z-F%WHmvmEOue^Qzp&oTP+>`w289^I+?=Iw{e;caIxT=~9FW#gR5bohUC!{7z8Ue(?J0000< KMNUMnLSTZd^ve_g literal 0 HcmV?d00001 diff --git a/LiteWearable/entry/src/main/resources/base/media/icon_small.png b/LiteWearable/entry/src/main/resources/base/media/icon_small.png new file mode 100644 index 0000000000000000000000000000000000000000..a39445dc87828b76fed6d2ec470dd455c45319e3 GIT binary patch literal 2777 zcmV;~3MTc5P)9*YHQQH znh@I(s7WDIN`nJ+5@|<)iZcg=qN74U#DNnD1Se7u4fs(|1ivr?9ayP|B3iYCD$mfQ zCQ{S1n2)}^yxe#1J=_0pt-a1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json5 new file mode 100644 index 00000000..fe83c3e8 --- /dev/null +++ b/LiteWearable/hvigor/hvigor-config.json5 @@ -0,0 +1,22 @@ +{ + "modelVersion": "5.0.2", + "dependencies": { + }, + "execution": { + // "analyze": "normal", /* Define the build analyze mode. Value: [ "normal" | "advanced" | false ]. Default: "normal" */ + // "daemon": true, /* Enable daemon compilation. Value: [ true | false ]. Default: true */ + // "incremental": true, /* Enable incremental compilation. Value: [ true | false ]. Default: true */ + // "parallel": true, /* Enable parallel compilation. Value: [ true | false ]. Default: true */ + // "typeCheck": false, /* Enable typeCheck. Value: [ true | false ]. Default: false */ + }, + "logging": { + // "level": "info" /* Define the log level. Value: [ "debug" | "info" | "warn" | "error" ]. Default: "info" */ + }, + "debugging": { + // "stacktrace": false /* Disable stacktrace compilation. Value: [ true | false ]. Default: false */ + }, + "nodeOptions": { + // "maxOldSpaceSize": 8192 /* Enable nodeOptions maxOldSpaceSize compilation. Unit M. Used for the daemon process. Default: 8192*/ + // "exposeGC": true /* Enable to trigger garbage collection explicitly. Default: true*/ + } +} diff --git a/LiteWearable/hvigorfile.ts b/LiteWearable/hvigorfile.ts new file mode 100644 index 00000000..152cd64b --- /dev/null +++ b/LiteWearable/hvigorfile.ts @@ -0,0 +1,6 @@ +import { legacyAppTasks } from '@ohos/hvigor-ohos-plugin'; + +export default { + system: legacyAppTasks, /* Built-in plugin of Hvigor. It cannot be modified. */ + plugins:[] /* Custom plugin to extend the functionality of Hvigor. */ +} diff --git a/LiteWearable/oh-package.json5 b/LiteWearable/oh-package.json5 new file mode 100644 index 00000000..7b73665d --- /dev/null +++ b/LiteWearable/oh-package.json5 @@ -0,0 +1,9 @@ +{ + "modelVersion": "5.0.2", + "description": "Please describe the basic information.", + "dependencies": { + }, + "devDependencies": { + "@ohos/hypium": "1.0.21" + } +} -- Gitee From 05878f8e89f60f1413deb7cee799fcb62feb9ff7 Mon Sep 17 00:00:00 2001 From: lvyuanyuan Date: Tue, 25 Mar 2025 11:13:35 +0800 Subject: [PATCH 2/8] =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LiteWearable/entry/src/main/config.json | 3 ++- .../src/main/js/MainAbility/initpage/initpage.css | 15 +++++++++++++++ .../src/main/js/MainAbility/initpage/initpage.hml | 7 +++++++ .../src/main/js/MainAbility/initpage/initpage.js | 5 +++++ LiteWearable/oh-package.json5 | 1 - 5 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.css create mode 100644 LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.hml create mode 100644 LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.js diff --git a/LiteWearable/entry/src/main/config.json b/LiteWearable/entry/src/main/config.json index 4c00c027..d18f40a4 100644 --- a/LiteWearable/entry/src/main/config.json +++ b/LiteWearable/entry/src/main/config.json @@ -31,7 +31,8 @@ "js": [ { "pages": [ - "pages/index/index" + "pages/index/index", + "initpage/initpage" ], "name": ".MainAbility" } diff --git a/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.css b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.css new file mode 100644 index 00000000..23be9f28 --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.css @@ -0,0 +1,15 @@ +.container { + display: flex; + justify-content: center; + align-items: center; + left: 0px; + top: 0px; + width: 466px; + height: 466px; +} +.title { + font-size: 30px; + text-align: center; + width: 200px; + height: 100px; +} \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.hml b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.hml new file mode 100644 index 00000000..9525f6ee --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.hml @@ -0,0 +1,7 @@ + +
+ + Hello {{title}} + +
+ \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.js b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.js new file mode 100644 index 00000000..686d5c17 --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.js @@ -0,0 +1,5 @@ +export default { + data: { + title: 'World' + } +} \ No newline at end of file diff --git a/LiteWearable/oh-package.json5 b/LiteWearable/oh-package.json5 index 7b73665d..b185185d 100644 --- a/LiteWearable/oh-package.json5 +++ b/LiteWearable/oh-package.json5 @@ -4,6 +4,5 @@ "dependencies": { }, "devDependencies": { - "@ohos/hypium": "1.0.21" } } -- Gitee From 6ab561316ae1b2e04efae17ee98cd539385ceec6 Mon Sep 17 00:00:00 2001 From: lvyuanyuan Date: Tue, 25 Mar 2025 14:08:57 +0800 Subject: [PATCH 3/8] =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entry/src/main/js/MainAbility/initpage/initpage.css | 4 +++- .../entry/src/main/js/MainAbility/initpage/initpage.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.css b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.css index 23be9f28..3c6ea5da 100644 --- a/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.css +++ b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.css @@ -1,3 +1,4 @@ +/*[Start 1]*/ .container { display: flex; justify-content: center; @@ -12,4 +13,5 @@ text-align: center; width: 200px; height: 100px; -} \ No newline at end of file +} +/*[End 1]*/ \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.js b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.js index 686d5c17..0dfc89ac 100644 --- a/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.js +++ b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.js @@ -1,5 +1,7 @@ +// [Start 1] export default { data: { title: 'World' } -} \ No newline at end of file +} +// [End 1] \ No newline at end of file -- Gitee From 38a931e2f5047f755e59b604ea47b2575dc43932 Mon Sep 17 00:00:00 2001 From: lvyuanyuan Date: Tue, 25 Mar 2025 14:17:34 +0800 Subject: [PATCH 4/8] =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entry/src/main/js/MainAbility/initpage/initpage.hml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.hml b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.hml index 9525f6ee..df3d8c53 100644 --- a/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.hml +++ b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.hml @@ -1,7 +1,7 @@ - + \ No newline at end of file + \ No newline at end of file -- Gitee From 75b62d768a5dd062b1e6c2b5bcc49500960f314a Mon Sep 17 00:00:00 2001 From: lvyuanyuan Date: Tue, 25 Mar 2025 15:12:21 +0800 Subject: [PATCH 5/8] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=90=8C=E6=BA=90?= =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LiteWearable/entry/src/main/config.json | 38 +++++++++++++++++-- .../src/main/js/MainAbility/detail/detail.css | 18 +++++++++ .../src/main/js/MainAbility/detail/detail.hml | 9 +++++ .../src/main/js/MainAbility/detail/detail.js | 12 ++++++ .../main/js/MainAbility/details/details.css | 18 +++++++++ .../main/js/MainAbility/details/details.hml | 9 +++++ .../main/js/MainAbility/details/details.js | 12 ++++++ .../src/main/js/MainAbility/event/event.css | 18 +++++++++ .../src/main/js/MainAbility/event/event.hml | 9 +++++ .../src/main/js/MainAbility/event/event.js | 13 +++++++ .../src/main/js/MainAbility/exit/exit.css | 18 +++++++++ .../src/main/js/MainAbility/exit/exit.hml | 9 +++++ .../src/main/js/MainAbility/exit/exit.js | 22 +++++++++++ .../main/js/MainAbility/initpage/initpage.css | 4 +- .../main/js/MainAbility/initpage/initpage.hml | 3 +- .../main/js/MainAbility/pages/index/index.css | 36 ++++++++++++++---- .../main/js/MainAbility/pages/index/index.hml | 10 +++-- .../src/main/js/MainAbility/style1/style1.css | 18 +++++++++ .../src/main/js/MainAbility/style1/style1.hml | 9 +++++ .../src/main/js/MainAbility/style1/style1.js | 8 ++++ .../src/main/js/MainAbility/style2/style2.css | 18 +++++++++ .../src/main/js/MainAbility/style2/style2.hml | 9 +++++ .../src/main/js/MainAbility/style2/style2.js | 8 ++++ .../src/main/js/MainAbility/style3/style3.css | 15 ++++++++ .../src/main/js/MainAbility/style3/style3.hml | 10 +++++ .../src/main/js/MainAbility/style3/style3.js | 8 ++++ .../src/main/js/MainAbility/style4/style4.css | 18 +++++++++ .../src/main/js/MainAbility/style4/style4.hml | 8 ++++ .../src/main/js/MainAbility/style4/style4.js | 9 +++++ 29 files changed, 378 insertions(+), 18 deletions(-) create mode 100644 LiteWearable/entry/src/main/js/MainAbility/detail/detail.css create mode 100644 LiteWearable/entry/src/main/js/MainAbility/detail/detail.hml create mode 100644 LiteWearable/entry/src/main/js/MainAbility/detail/detail.js create mode 100644 LiteWearable/entry/src/main/js/MainAbility/details/details.css create mode 100644 LiteWearable/entry/src/main/js/MainAbility/details/details.hml create mode 100644 LiteWearable/entry/src/main/js/MainAbility/details/details.js create mode 100644 LiteWearable/entry/src/main/js/MainAbility/event/event.css create mode 100644 LiteWearable/entry/src/main/js/MainAbility/event/event.hml create mode 100644 LiteWearable/entry/src/main/js/MainAbility/event/event.js create mode 100644 LiteWearable/entry/src/main/js/MainAbility/exit/exit.css create mode 100644 LiteWearable/entry/src/main/js/MainAbility/exit/exit.hml create mode 100644 LiteWearable/entry/src/main/js/MainAbility/exit/exit.js create mode 100644 LiteWearable/entry/src/main/js/MainAbility/style1/style1.css create mode 100644 LiteWearable/entry/src/main/js/MainAbility/style1/style1.hml create mode 100644 LiteWearable/entry/src/main/js/MainAbility/style1/style1.js create mode 100644 LiteWearable/entry/src/main/js/MainAbility/style2/style2.css create mode 100644 LiteWearable/entry/src/main/js/MainAbility/style2/style2.hml create mode 100644 LiteWearable/entry/src/main/js/MainAbility/style2/style2.js create mode 100644 LiteWearable/entry/src/main/js/MainAbility/style3/style3.css create mode 100644 LiteWearable/entry/src/main/js/MainAbility/style3/style3.hml create mode 100644 LiteWearable/entry/src/main/js/MainAbility/style3/style3.js create mode 100644 LiteWearable/entry/src/main/js/MainAbility/style4/style4.css create mode 100644 LiteWearable/entry/src/main/js/MainAbility/style4/style4.hml create mode 100644 LiteWearable/entry/src/main/js/MainAbility/style4/style4.js diff --git a/LiteWearable/entry/src/main/config.json b/LiteWearable/entry/src/main/config.json index d18f40a4..5d715fb7 100644 --- a/LiteWearable/entry/src/main/config.json +++ b/LiteWearable/entry/src/main/config.json @@ -1,4 +1,7 @@ +// Start 1 +// Start 2 { + // StartExclude 2 "app": { "bundleName": "com.example.litewearable", "vendor": "example", @@ -8,6 +11,7 @@ } }, "deviceConfig": {}, + // EndExclude 2 "module": { "deviceType": [ "liteWearable" @@ -17,6 +21,21 @@ "moduleName": "entry", "moduleType": "entry" }, + "distroFilter": { + "screenShape": { + "policy": "include", + "value": [ + "rect" + ] + }, + "screenWindow": { + "policy": "include", + "value": [ + "408*480" + ] + } + }, + // StartExclude 2 "abilities": [ { "name": ".MainAbility", @@ -32,10 +51,23 @@ { "pages": [ "pages/index/index", - "initpage/initpage" + // StartExclude 1 + "initpage/initpage", + "style1/style1", + "style2/style2", + "style3/style3", + "style4/style4", + "event/event", + "details/details", + "detail/detail", + "exit/exit" + // EndExclude 1 ], "name": ".MainAbility" } - ] + ], + // EndExclude 2 } -} \ No newline at end of file +} +// End 1 +// End 2 \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/detail/detail.css b/LiteWearable/entry/src/main/js/MainAbility/detail/detail.css new file mode 100644 index 00000000..269400ee --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/detail/detail.css @@ -0,0 +1,18 @@ +.container { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + left: 0px; + top: 0px; + width: 100%; + height: 100%; +} + +.title { + font-size: 38px; + text-align: center; + width: 100%; + height: 40%; + margin: 10px; +} diff --git a/LiteWearable/entry/src/main/js/MainAbility/detail/detail.hml b/LiteWearable/entry/src/main/js/MainAbility/detail/detail.hml new file mode 100644 index 00000000..720f9253 --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/detail/detail.hml @@ -0,0 +1,9 @@ + +
+ + Hello World + + +
+ \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/detail/detail.js b/LiteWearable/entry/src/main/js/MainAbility/detail/detail.js new file mode 100644 index 00000000..d8c94efa --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/detail/detail.js @@ -0,0 +1,12 @@ +// Start 1 +// index.js +import router from '@ohos.router'; + +export default { + clickAction() { + router.replaceUrl({ + uri: 'pages/details/details' + }); + } +}; +// End 1 \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/details/details.css b/LiteWearable/entry/src/main/js/MainAbility/details/details.css new file mode 100644 index 00000000..269400ee --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/details/details.css @@ -0,0 +1,18 @@ +.container { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + left: 0px; + top: 0px; + width: 100%; + height: 100%; +} + +.title { + font-size: 38px; + text-align: center; + width: 100%; + height: 40%; + margin: 10px; +} diff --git a/LiteWearable/entry/src/main/js/MainAbility/details/details.hml b/LiteWearable/entry/src/main/js/MainAbility/details/details.hml new file mode 100644 index 00000000..a393b645 --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/details/details.hml @@ -0,0 +1,9 @@ + +
+ + Details Page + + +
+ \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/details/details.js b/LiteWearable/entry/src/main/js/MainAbility/details/details.js new file mode 100644 index 00000000..abe03e6d --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/details/details.js @@ -0,0 +1,12 @@ +// Start 1 +// details.js +import router from '@ohos.router'; + +export default { + clickAction() { + router.replaceUrl({ + uri: 'pages/index/index' + }); + } +}; +// End 1 \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/event/event.css b/LiteWearable/entry/src/main/js/MainAbility/event/event.css new file mode 100644 index 00000000..269400ee --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/event/event.css @@ -0,0 +1,18 @@ +.container { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + left: 0px; + top: 0px; + width: 100%; + height: 100%; +} + +.title { + font-size: 38px; + text-align: center; + width: 100%; + height: 40%; + margin: 10px; +} diff --git a/LiteWearable/entry/src/main/js/MainAbility/event/event.hml b/LiteWearable/entry/src/main/js/MainAbility/event/event.hml new file mode 100644 index 00000000..40b3051a --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/event/event.hml @@ -0,0 +1,9 @@ + +
+ + Hello World + + +
+ \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/event/event.js b/LiteWearable/entry/src/main/js/MainAbility/event/event.js new file mode 100644 index 00000000..1db6a24c --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/event/event.js @@ -0,0 +1,13 @@ +// Start 1 +// index.js: +export default { + data: { + fontSize: '30px', + fontColor: '#FF0000', + }, + clickAction() { + this.fontSize = '38px'; + this.fontColor = '#FFFFFF'; + } +}; +// End 1 \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/exit/exit.css b/LiteWearable/entry/src/main/js/MainAbility/exit/exit.css new file mode 100644 index 00000000..269400ee --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/exit/exit.css @@ -0,0 +1,18 @@ +.container { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + left: 0px; + top: 0px; + width: 100%; + height: 100%; +} + +.title { + font-size: 38px; + text-align: center; + width: 100%; + height: 40%; + margin: 10px; +} diff --git a/LiteWearable/entry/src/main/js/MainAbility/exit/exit.hml b/LiteWearable/entry/src/main/js/MainAbility/exit/exit.hml new file mode 100644 index 00000000..1ab84cfa --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/exit/exit.hml @@ -0,0 +1,9 @@ + +
+ + Hello {{ title }} + + +
+ \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/exit/exit.js b/LiteWearable/entry/src/main/js/MainAbility/exit/exit.js new file mode 100644 index 00000000..83a2985d --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/exit/exit.js @@ -0,0 +1,22 @@ +// Start 1 +// index.js +import router from '@ohos.router'; +// 导入app模块 +import app from '@system.app'; + +export default { + data: { + title: 'World' + }, + clickAction() { + router.replaceUrl({ + uri: 'pages/details/details' + }); + }, + touchMove(e) { // swipe处理事件 + if (e.direction == "right") { // 右滑退出 + app.terminate(); + } + } +}; +// End 1 \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.css b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.css index 3c6ea5da..23be9f28 100644 --- a/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.css +++ b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.css @@ -1,4 +1,3 @@ -/*[Start 1]*/ .container { display: flex; justify-content: center; @@ -13,5 +12,4 @@ text-align: center; width: 200px; height: 100px; -} -/*[End 1]*/ \ No newline at end of file +} \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.hml b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.hml index df3d8c53..1e1e08a1 100644 --- a/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.hml +++ b/LiteWearable/entry/src/main/js/MainAbility/initpage/initpage.hml @@ -1,7 +1,8 @@
- Hello {{title}} + Hello {{ title }}
\ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.css b/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.css index a5344c8d..a75028a4 100644 --- a/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.css +++ b/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.css @@ -1,11 +1,31 @@ .container { - width: 100%; - height: 100%; - justify-content: center; - align-items: center; + width: 100%;/* 容器宽度设置为 100% */ + height: 100%;/* 容器高度设置为 100% */ + justify-content: center; + align-items: center; + flex-direction: column; + background-color: aquamarine;/* 设置背景色为碧绿色 */ } -.title { - width: 200px; - font-size: 30px; - text-align: center; + +.stackContainer { + width: 50%; + height: 50%; + background-color: white; } + +.button { + top: 10%;/* 设置y轴上距离父组件为父组件高度的10%位置 */ + left: 10%;/* 设置x轴上距离父组件为父组件宽度的10%位置 */ + width: 50%; + height: 30%; + font-size: 30px; + background-color: black; +} + +.button2 { + width: 50%; + height: 20%; + font-size: 30px; + background-color: black; + margin-top: 2%;/* 父组件高度的2% */ +} \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.hml b/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.hml index f64b040a..8b8fe70b 100644 --- a/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.hml +++ b/LiteWearable/entry/src/main/js/MainAbility/pages/index/index.hml @@ -1,5 +1,9 @@ +
- - {{ $t('strings.hello') }} {{ title }} - + + + +
+ \ No newline at end of file diff --git a/LiteWearable/entry/src/main/js/MainAbility/style1/style1.css b/LiteWearable/entry/src/main/js/MainAbility/style1/style1.css new file mode 100644 index 00000000..269400ee --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/style1/style1.css @@ -0,0 +1,18 @@ +.container { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + left: 0px; + top: 0px; + width: 100%; + height: 100%; +} + +.title { + font-size: 38px; + text-align: center; + width: 100%; + height: 40%; + margin: 10px; +} diff --git a/LiteWearable/entry/src/main/js/MainAbility/style1/style1.hml b/LiteWearable/entry/src/main/js/MainAbility/style1/style1.hml new file mode 100644 index 00000000..7696cdf4 --- /dev/null +++ b/LiteWearable/entry/src/main/js/MainAbility/style1/style1.hml @@ -0,0 +1,9 @@ + +
+ + + Hello World + +
+ +
+ + + Hello World + +
+ + +
+ + + Hello World + +
+ +
+ + Hello World + +
+