Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
huaweiWatchClient
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sky
huaweiWatchClient
Commits
a6e8b376
Commit
a6e8b376
authored
Dec 31, 2020
by
Sky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加同步信息提示页面
parent
e3d0c050
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
17 deletions
+53
-17
hm_img_logo.png
entry/src/main/js/default/common/hm_img_logo.png
+0
-0
hm_sync_img.png
entry/src/main/js/default/common/hm_sync_img.png
+0
-0
index.css
entry/src/main/js/default/pages/index/index.css
+32
-9
index.hml
entry/src/main/js/default/pages/index/index.hml
+10
-8
index.js
entry/src/main/js/default/pages/index/index.js
+11
-0
No files found.
entry/src/main/js/default/common/hm_img_logo.png
deleted
100644 → 0
View file @
e3d0c050
740 Bytes
entry/src/main/js/default/common/hm_sync_img.png
0 → 100644
View file @
a6e8b376
5.51 KB
entry/src/main/js/default/pages/index/index.css
View file @
a6e8b376
...
...
@@ -19,6 +19,38 @@
justify-content
:
center
;
align-items
:
center
;
}
.sync
{
width
:
454px
;
height
:
454px
;
flex-direction
:
column
;
align-items
:
center
;
justify-content
:
center
;
}
.sync-img
{
width
:
150px
;
height
:
164px
;
}
.sync-text01
{
width
:
350px
;
height
:
120px
;
margin-top
:
24px
;
text-align
:
center
;
justify-content
:
center
;
font-size
:
30px
;
color
:
#FFFFFF
;
}
.sync-text02
{
width
:
350px
;
margin-top
:
12px
;
height
:
36px
;
font-size
:
30px
;
color
:
rgba
(
250
,
250
,
250
,
0.66
);
text-align
:
center
;
justify-content
:
center
;
}
.start-text
{
font-size
:
38px
;
text-align
:
center
;
...
...
@@ -207,15 +239,6 @@
align-items
:
center
;
justify-content
:
center
;
}
.train-out-icon
{
width
:
120px
;
height
:
68px
;
}
.train-out-text
{
margin-top
:
32px
;
width
:
230px
;
text-align
:
center
;
}
.stack-intro
{
width
:
454px
;
...
...
entry/src/main/js/default/pages/index/index.hml
View file @
a6e8b376
...
...
@@ -8,6 +8,16 @@
准备开始
</text>
</div>
<!--同步信息提示页面-->
<div class="sync" if="page == '10' || page == '11'">
<image class="sync-img" src="../../common/hm_sync_img.png"></image>
<text class="sync-text01">
请在手机端Fit健身开始训练,训练数据将在手表端同步展示
</text>
<text class="sync-text02">
*目前仅支持华为手机
</text>
</div>
<!--准备开始end-->
<!-- 标题end -->
<swiper index="{{tabIndex}}" class="todo-wraper" if="dataPageShow" @change="swiperChange">
...
...
@@ -91,14 +101,6 @@
</text>
</div>
<!---暂停播放倒计时end-->
<!--退出训练-->
<div class="train-out" if="page == '10' || page == '11'">
<image class="train-out-icon" src="../../common/hm_img_logo.png"></image>
<text class="train-out-text">
在手机上开启你今天的训练
</text>
</div>
<!--退出训练-->
<!--介绍页start-->
<stack class="stack-intro" if="page == '99'">
<swiper class="swiper-intro" @change="swiperChange">
...
...
entry/src/main/js/default/pages/index/index.js
View file @
a6e8b376
...
...
@@ -69,6 +69,17 @@ export default {
this
.
sendMsg
({
"eventFlg"
:
"3"
,
})
//如果已经设置了常亮,则先取消
if
(
timer
!=
null
)
{
timer
=
null
;
brightness
.
setKeepScreenOn
({
keepScreenOn
:
false
,
success
:
function
()
{
},
fail
:
function
(
data
,
code
)
{
}
})
}
},
onDestroy
()
{
//发送页面销毁时间
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment