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
2ffca2b7
Commit
2ffca2b7
authored
Sep 10, 2020
by
Sky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文案
parent
4f5b8209
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
index.js
entry/src/main/js/default/pages/index/index.js
+9
-3
No files found.
entry/src/main/js/default/pages/index/index.js
View file @
2ffca2b7
...
...
@@ -6,7 +6,7 @@ import brightness from '@system.brightness' //保持屏幕常亮
export
default
{
data
:
{
page
:
""
,
//显示页面
title
:
"
训练准备
"
,
//页面标题
title
:
"
准备开始
"
,
//页面标题
acName
:
""
,
//动作名称
progress
:
""
,
//进度条
acType
:
""
,
//次/秒 (0:次,1:秒)
...
...
@@ -121,7 +121,7 @@ export default {
switch
(
msg
.
eventFlg
)
{
case
"0"
:
//训练准备
_this
.
page
=
"0"
;
_this
.
title
=
"
训练准备
"
;
_this
.
title
=
"
准备开始
"
;
break
;
case
"1"
:
//训练准备后的倒计时
_this
.
page
=
"1"
;
...
...
@@ -204,7 +204,13 @@ export default {
break
;
case
"15"
:
//离开或者返回训练
_this
.
page
=
"15"
;
_this
.
quit
();
if
(
model
.
rollbackStop
==
'0'
)
{
//获取心率
_this
.
getHeartRate
();
}
else
{
//移除心率监听
sensor
.
unsubscribeHeartRate
()
//取消监听心率
}
break
;
case
"16"
:
//杀掉进程
_this
.
page
=
"12"
;
...
...
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