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
e362e5e5
Commit
e362e5e5
authored
Nov 17, 2020
by
Sky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改部分场合重新开始训练时,tab定位不对的bug,删除训练数据页面的常亮设置
parent
69a7f454
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
26 deletions
+1
-26
end.js
entry/src/main/js/default/pages/end/end.js
+0
-26
index.js
entry/src/main/js/default/pages/index/index.js
+1
-0
No files found.
entry/src/main/js/default/pages/end/end.js
View file @
e362e5e5
...
...
@@ -2,8 +2,6 @@ import brightness from '@system.brightness' //保持屏幕常亮
import
app
from
'@system.app'
//右滑退出
import
router
from
'@system.router'
//页面跳转
var
timer
;
export
default
{
data
:
{
acCalorie
:
"0"
,
//卡路里
...
...
@@ -21,18 +19,7 @@ export default {
_this
.
averHeartRate
=
_this
.
endAverHeartRate
;
_this
.
maxHeartRate
=
_this
.
endMaxHeartRate
;
},
onShow
()
{
let
_this
=
this
;
//保持屏幕常亮
_this
.
keepScreenOn
();
timer
=
setInterval
(
function
()
{
_this
.
keepScreenOn
();
},
2
*
60
*
1000
);
},
onDestroy
()
{
if
(
timer
!=
null
)
{
clearInterval
(
timer
);
}
//取消接收手机侧第三方应用发过来的消息
FeatureAbility
.
unsubscribeMsg
();
},
...
...
@@ -50,19 +37,6 @@ export default {
}
},
/**
*保持屏幕常亮
*/
keepScreenOn
()
{
brightness
.
setKeepScreenOn
({
keepScreenOn
:
true
,
success
:
function
()
{
},
fail
:
function
(
data
,
code
)
{
}
})
},
/**
*获取客户端短消息
*/
...
...
entry/src/main/js/default/pages/index/index.js
View file @
e362e5e5
...
...
@@ -162,6 +162,7 @@ export default {
switch
(
msg
.
eventFlg
)
{
case
"0"
:
//训练准备
_this
.
page
=
"0"
;
_this
.
tabIndex
=
"0"
;
break
;
case
"1"
:
//训练准备后的倒计时
_this
.
countdownT
=
model
.
countdownT
;
...
...
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