Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DoorLock
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
felix
DoorLock
Commits
823f2321
Commit
823f2321
authored
Mar 15, 2018
by
朱建香
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加debug
parent
ea067531
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
dev/src/view/device/v_index.js
+12
-0
No files found.
dev/src/view/device/v_index.js
View file @
823f2321
...
@@ -913,9 +913,15 @@ function registerPushListener(self){
...
@@ -913,9 +913,15 @@ function registerPushListener(self){
console
.
log
(
"registerPushListener"
);
console
.
log
(
"registerPushListener"
);
console
.
log
(
response
);
console
.
log
(
response
);
let
data
=
uPublic
.
checkResponseData
(
response
.
data
.
params
.
data
);
let
data
=
uPublic
.
checkResponseData
(
response
.
data
.
params
.
data
);
if
(
window
.
iotDebug
){
iotDebug
.
push
(
'end: 监听消息'
+
JSON
.
stringify
(
data
));
}
if
(
data
){
if
(
data
){
sdsDataPorcessing
(
self
,
data
);
sdsDataPorcessing
(
self
,
data
);
}
}
if
(
window
.
iotDebug
)
{
iotDebug
.
upload
(
iot
,
'监听消息'
);
}
},
},
error
:
(
error
)
=>
{
error
:
(
error
)
=>
{
console
.
log
(
error
);
console
.
log
(
error
);
...
@@ -936,7 +942,13 @@ async function sdsDataPorcessing(self, data){
...
@@ -936,7 +942,13 @@ async function sdsDataPorcessing(self, data){
console
.
log
(
data
);
console
.
log
(
data
);
//设置电量百分比和icon
//设置电量百分比和icon
setBatteryPercentAndIcon
(
self
,
data
.
BatteryPercentage
.
value
);
setBatteryPercentAndIcon
(
self
,
data
.
BatteryPercentage
.
value
);
if
(
window
.
iotDebug
){
iotDebug
.
push
(
'end: 监听消息 当前sds状态'
+
onlineState
);
}
if
(
onlineState
==
data
.
onlineState
.
value
){
if
(
onlineState
==
data
.
onlineState
.
value
){
if
(
window
.
iotDebug
){
iotDebug
.
push
(
'end: 监听消息 进入逻辑处理'
);
}
switch
(
data
.
action
.
value
){
switch
(
data
.
action
.
value
){
case
'notify'
:
case
'notify'
:
switch
(
data
.
notify_type
.
value
){
switch
(
data
.
notify_type
.
value
){
...
...
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