- * 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. - */ -.container { - width: 454px; -} - -.title { - border-radius: 5px; -} -.title text{ - width: 100%; - height: 100%; - text-align: center; -} -.dian{ - text-align: center; -} \ No newline at end of file diff --git a/entry/src/main/js/default/common/components/countdown/countdown.hml b/entry/src/main/js/default/common/components/countdown/countdown.hml deleted file mode 100644 index 7a65d114eb178352e62b8fc73461d982a34c7a23..0000000000000000000000000000000000000000 --- a/entry/src/main/js/default/common/components/countdown/countdown.hml +++ /dev/null @@ -1,37 +0,0 @@ - -
- * 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. - */ -export default { - data() { - return { - hours: this.hours, - minutes: this.minutes, - seconds: this.seconds, - milliseconds: this.milliseconds, - width: this.width, - height: this.height, - spacing: this.spacing, - flot: true, - color: this.color, - bgc: this.bgc, - weight: this.weight, - font: this.font, - } - }, - props: { - hours: { - default: 0, - }, - minutes: { - default: 0 - }, - seconds: { - default: 0 - }, - milliseconds: { - default: 0 - }, - width: { - default: '30px' - }, - height: { - default: '30px' - }, - spacing: { - default: '10px' - }, - color: { - default: '#fff' - }, - bgc: { - default: '#000' - }, - weight: { - default: 400 - }, - font: { - default: '20px' - } - }, - onReady() { - this.startAndRestoreTime() - if (this.milliseconds > 0) { - this.seconds = Math.floor(this.milliseconds / 1000) % 60 - this.minutes = Math.floor(this.milliseconds / 1000 / 60) % 60 - this.hours = Math.floor(this.milliseconds / 1000 / 60 / 60) - } else { - this.milliseconds = this.seconds * 1000 + this.minutes * 1000 * 60 + this.hours * 1000 * 60 * 60 - } - if (this.minutes > 60) { - this.hours = Number(this.hours) + Math.floor(this.minutes / 60) - this.minutes = this.minutes - Math.floor(this.minutes / 60) * 60 - } - if (this.seconds <= 0) { - this.seconds = 0 - } else if (this.seconds > 60) { - this.minutes = this.minutes + Math.floor(this.seconds / 60) - this.seconds = this.seconds % 60 - } - }, - //设置小时的函数 - setTimeHour(h) { - if (h < 0) { - this.hours = 0 - } else { - this.hours = h - } - }, - //设置分钟数 - setTimeMinute(m) { - // this.minutes=m - if (m > 60) { - this.hours = Number(this.hours) + Math.floor(m / 60) - this.minutes = this.minutes + m % 60 - } else if (m <= 0) { - this.minutes = 0 - } else { - this.minutes = m - } - }, - //设置秒数 - setTimeSecond(s) { - if (s > 60) { - this.minutes = Number(this.minutes) + Math.floor(s / 60) - this.seconds = this.seconds + s % 60 - } else if (s <= 0) { - this.seconds = 0 - } else { - this.seconds = s - } - if (this.seconds > 60) { - this.minutes = Number(this.minutes) + Math.floor(this.seconds / 60) - this.seconds = this.seconds % 60 - } - if (this.minutes > 60) { - this.hours = Number(this.hours) + Math.floor(this.minutes / 60) - this.minutes = this.minutes % 60 - } - }, - //设置毫秒数 - setTime(timeMillis) { - if (timeMillis > 0) { - this.seconds = Math.floor(timeMillis / 1000) % 60 - this.minutes = Math.floor(timeMillis / 1000 / 60) % 60 - this.hours = Math.floor(this.timeMillis / 1000 / 60 / 60) - } else { - return - } - }, - //开始倒计时 - startAndRestoreTime() { - this.flot = true - this.$emit('onCountDownStart') - this.timer = setInterval(() => { - //当小时,分钟,秒钟,三者有一个大于等于零的时候 - if (this.hours >= 0 || this.minutes >= 0 || this.seconds >= 0) { - //判断他们三个全部都等于0 退出 - if (this.hours == 0 && this.minutes == 0 && this.seconds == 0) { - this.$emit('onCountDownCompleted') - this.flot = false - clearInterval(this.timer) - } else { - //当他们三个有一个不为0的时候 - if (this.seconds > 0) { - //如果秒钟大于0的时候让他自身减1 - this.seconds = Number(this.seconds) - 1 - } else { - //当秒钟等于0的时候,并且分钟不为零的时候 - if (this.minutes > 0) { - //分钟不为0让分钟减1 - this.minutes = Number(this.minutes) - 1 - } else { - //分钟为0的时候 - if (this.hours > 0) { - //小时数大于0的时候让他减1 - this.hours = Number(this.hours) - 1 - } else { - //三个数值都为零 - this.$emit('onCountDownCompleted') - this.flot = false - clearInterval(this.timer) - } - this.minutes = 59 - } - this.seconds = 59 - } - } - } else { - //当时间有任意一个小于0的时候报错 - this.flot = false - this.$emit('onCountDownTimeError') - clearInterval(this.timer) - } - }, 1000) - }, - //停止倒计时 - stopAndRecordTime() { - this.$emit('onCountDownStop', { - 'millisInFuture': this.milliseconds - }) - this.flot = false - clearInterval(this.timer) - }, - //倒计时是否结束 - isRunningState() { - return this.flot - } -} \ No newline at end of file diff --git a/entry/src/main/js/default/common/images/Wallpaper.png b/entry/src/main/js/default/common/images/Wallpaper.png deleted file mode 100644 index 60d4841a80eb20c63de74306cb7f8350d6a85c48..0000000000000000000000000000000000000000 Binary files a/entry/src/main/js/default/common/images/Wallpaper.png and /dev/null differ diff --git a/entry/src/main/js/default/common/images/a.png b/entry/src/main/js/default/common/images/a.png deleted file mode 100644 index f64c942db7a213ad81401de930d56e74d3003cbf..0000000000000000000000000000000000000000 Binary files a/entry/src/main/js/default/common/images/a.png and /dev/null differ diff --git a/entry/src/main/js/default/common/images/bg-tv.jpg b/entry/src/main/js/default/common/images/bg-tv.jpg deleted file mode 100644 index 86fc07358eea5c1474bc833fca07c6d4d8698a89..0000000000000000000000000000000000000000 Binary files a/entry/src/main/js/default/common/images/bg-tv.jpg and /dev/null differ diff --git a/entry/src/main/js/default/i18n/en-US.json b/entry/src/main/js/default/i18n/en-US.json deleted file mode 100644 index e63c70d978a3a53be988388c87182f81785e170c..0000000000000000000000000000000000000000 --- a/entry/src/main/js/default/i18n/en-US.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "strings": { - "hello": "Hello", - "world": "World" - } -} \ No newline at end of file diff --git a/entry/src/main/js/default/i18n/zh-CN.json b/entry/src/main/js/default/i18n/zh-CN.json deleted file mode 100644 index de6ee5748322f44942c1b003319d8e66c837675f..0000000000000000000000000000000000000000 --- a/entry/src/main/js/default/i18n/zh-CN.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "strings": { - "hello": "您好", - "world": "世界" - } -} \ No newline at end of file diff --git a/entry/src/main/js/default/pages/completed/completed.css b/entry/src/main/js/default/pages/completed/completed.css deleted file mode 100644 index 8b957140a3eb002106fb386c17ce49387ab1aa3c..0000000000000000000000000000000000000000 --- a/entry/src/main/js/default/pages/completed/completed.css +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. - * 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.
- */
-.container {
- display: flex;
- flex-direction: column;
- padding: 20px;
-}
-.con{
- flex-direction: column;
-}
-.container div{
- margin-bottom: 10px;
-}
-.titlethem {
- width: 100%;
- height: 50px;
- background-color: #3E51B3;
-}
-.titleinfo{
- font-size: 18px;
- margin-left: 15px;
- color: white;
-}
\ No newline at end of file
diff --git a/entry/src/main/js/default/pages/completed/completed.hml b/entry/src/main/js/default/pages/completed/completed.hml
deleted file mode 100644
index 2c85d5107835eb1b7ab77b3a83d05734b34d3b96..0000000000000000000000000000000000000000
--- a/entry/src/main/js/default/pages/completed/completed.hml
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
- * 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. - */ -import prompt from '@system.prompt'; -export default { - data: { - time:{ - hours:'0', - minutes:'0', - seconds:'6', - milliseconds:'0' - }, - time2:{ - hours:'0', - minutes:'0', - seconds:'12', - milliseconds:0 - }, - width:'28px', - height:'28px', - spacing:'8px', - bgc1:'#eeeeee', - bgc2:'#eedddd', - color:'#ff0000', - weight:500, - font:'18px' - }, - onInit(){ - }, - onCountDownCompleted(){ -// console.log('倒计时执行结束') - prompt.showToast({ - message: `[CompletedAbility] [onCountDownCompleted]`, - duration: 2000, - }); - } -} diff --git a/entry/src/main/js/default/pages/index/index.css b/entry/src/main/js/default/pages/index/index.css deleted file mode 100644 index 6f08707157da1d960740c07d03c94bcfb32f9261..0000000000000000000000000000000000000000 --- a/entry/src/main/js/default/pages/index/index.css +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. - * 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. - */ -.container { - flex-direction: column; -} - -.title { - padding-left: 10px; - width: 100%; - font-size: 18px; - font-weight: 600; - line-height: 22px; - color: #33cc00; - border-bottom: 1px solid #ccc; - height: 50px; -} - -.titlethem { - width: 100%; - height: 50px; - background-color: #3E51B3; -} -.titleinfo{ - font-size: 18px; - margin-left: 15px; - color: white; -} \ No newline at end of file diff --git a/entry/src/main/js/default/pages/index/index.hml b/entry/src/main/js/default/pages/index/index.hml deleted file mode 100644 index 141116f42dfdacabc793370f439bf34c97716b39..0000000000000000000000000000000000000000 --- a/entry/src/main/js/default/pages/index/index.hml +++ /dev/null @@ -1,33 +0,0 @@ - -
- * 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. - */ -import router from '@system.router' -export default { - data: { - title: "" - }, - onCreate() { - this.title = this.$t('strings.world'); - - }, - push(url){ - router.push({ - uri:`pages/${url}/${url}` - }) - } -} diff --git a/entry/src/main/js/default/pages/setting/setting.css b/entry/src/main/js/default/pages/setting/setting.css deleted file mode 100644 index 140eeda53bde85eece4a02ed8db40fad95401541..0000000000000000000000000000000000000000 --- a/entry/src/main/js/default/pages/setting/setting.css +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. - * 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.
- */
-.container {
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- flex-wrap:wrap;
- padding: 20px;
- height: 100%;
-}
-.con{
- flex-direction: column;
-}
-.title {
- font-size: 30px;
- text-align: center;
- width: 200px;
- height: 100px;
-}
-.btn{
- position: absolute;
- right: 10px;
- top: 20px;
- width: 60px;
- height: 60px;
-}
-.btn-box{
-/* background-color: skyblue;*/
- height: 200px;
- width: 300px;
- display: flex;
- flex-direction: column;
-}
-.btn1{
- flex: 1;
- margin-bottom: 30px;
- display: flex;
- justify-content: space-between;
- flex-wrap:wrap;
-}
-.btn2{
- flex: 1;
- display: flex;
- justify-content: space-between;
- flex-wrap:wrap;
-}
-.btn1 text{
- padding: 10px;
- background-color: #999;
- font-size: 18px;
- width: 90px;
- text-align: center;
- border-radius: 5px;
- color: #000;
-}
-.btn2 text{
- flex: 1;
- padding: 10px 20px;
- background-color: #999;
- font-size: 18px;
- width: 90px;
- text-align: center;
- border-radius: 5px;
- color: #000;
-}
-.titlethem {
- width: 100%;
- height: 50px;
- background-color: #3E51B3;
-}
-.titleinfo{
- font-size: 18px;
- margin-left: 15px;
- color: white;
-}
\ No newline at end of file
diff --git a/entry/src/main/js/default/pages/setting/setting.hml b/entry/src/main/js/default/pages/setting/setting.hml
deleted file mode 100644
index bfe54b3c899eaa49e07cf82cad671c90962e51de..0000000000000000000000000000000000000000
--- a/entry/src/main/js/default/pages/setting/setting.hml
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
- * 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. - */ -export default { - data: { - time:{ - hours:'26', - minutes:'6', - seconds:'26', - milliseconds:'0' - }, - flot:true, - width:'40px', - height:'40px', - spacing:'10px', - bgc:'#cccccc', - color:'#0099ff', - weight:500, - font:'20px' - }, - start(){ - if(this.$child('componter').flot){ - return - }else{ - this.$child('componter')['startAndRestoreTime']() - } - }, - stop(){ - if(!this.$child('componter').flot){ - return - }else{ - this.$child('componter')['stopAndRecordTime']() - } - }, - shi(num){ - this.$child('componter')['setTimeHour'](num) - }, - fen(num){ - this.$child('componter')['setTimeMinute'](num) - }, - miao(num){ - this.$child('componter')['setTimeSecond'](num) - }, - onCountDownStop(e){ - console.log(JSON.stringify(e)) - } -} diff --git a/entry/src/main/js/default/pages/show/show.css b/entry/src/main/js/default/pages/show/show.css deleted file mode 100644 index c6b496c1f689212fa206e2f3436e8fa060d846de..0000000000000000000000000000000000000000 --- a/entry/src/main/js/default/pages/show/show.css +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2021 Huawei Device Co., Ltd. - * 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.
- */
-.container {
- width: 454px;
-/* height: 80px;*/
- padding: 20px 10px;
- position: relative;
- display: flex;
- flex-direction: column;
-}
-
-.con{
- flex-direction: column;
-}
-
-.btn{
- position: absolute;
- right: 10px;
- top: 20px;
- width: 60px;
- height: 60px;
-}
-image{
-
- width: 300px;
-/* border: 1px solid #222;*/
-}
-/*.zujian{*/
-/* position: absolute;*/
-/* top: 20px;*/
-/* left: 10px;*/
-/*}*/
-.titlethem {
- width: 100%;
- height: 50px;
- background-color: #3E51B3;
-}
-.titleinfo{
- font-size: 18px;
- margin-left: 15px;
- color: white;
-}
\ No newline at end of file
diff --git a/entry/src/main/js/default/pages/show/show.hml b/entry/src/main/js/default/pages/show/show.hml
deleted file mode 100644
index eea6ad0942d16b05c21c7a4c6baf145329a82110..0000000000000000000000000000000000000000
--- a/entry/src/main/js/default/pages/show/show.hml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
- * 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. - */ -import router from '@system.router' -export default { - data: { - time:{ - hours:'6', - minutes:'6', - seconds:'26', - milliseconds:'0' - }, - width:'20px', - height:'20px', - spacing:'5px', - bgc:'#0000000', - color:'#ffffff', - weight:900, - font:'12px' - }, - fanhui(){ - router.replace({ - uri: 'pages/index/index' - }); - }, - onCountDownStart(){ - console.log(111) - } -}