Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
max_android_panel
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
Zhang Xin
max_android_panel
Commits
d14515d4
Commit
d14515d4
authored
Dec 06, 2018
by
wujiabao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
再次改造关门
parent
15b0a1b9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
client/containers/PageContainer/PageContainer.jsx
+2
-4
No files found.
client/containers/PageContainer/PageContainer.jsx
View file @
d14515d4
...
@@ -212,10 +212,10 @@ class PageContainer extends React.Component {
...
@@ -212,10 +212,10 @@ class PageContainer extends React.Component {
});
});
break
;
break
;
case
'SUCCESS_CLOSEDOOR'
:
case
'SUCCESS_CLOSEDOOR'
:
if
(
isSend
){
if
(
area
===
"A"
){
if
(
area
===
"A"
){
if
(
data
.
info
.
left_tread
===
1
){
if
(
data
.
info
.
left_tread
===
1
){
//关门成功
//关门成功
if
(
isSend
){
console
.
log
(
"closedoor"
);
console
.
log
(
"closedoor"
);
dispatch
(
logout
());
dispatch
(
logout
());
// this.endCountBack();
// this.endCountBack();
...
@@ -229,14 +229,12 @@ class PageContainer extends React.Component {
...
@@ -229,14 +229,12 @@ class PageContainer extends React.Component {
successCloseDoor
:
true
,
successCloseDoor
:
true
,
isSend
:
false
isSend
:
false
});
});
}
}
else
{
}
else
{
sendMsg
(
JSON
.
stringify
({
type
:
'WILL_CLOSEDOOR'
}))
sendMsg
(
JSON
.
stringify
({
type
:
'WILL_CLOSEDOOR'
}))
}
}
}
else
if
(
area
===
"B"
){
}
else
if
(
area
===
"B"
){
if
(
data
.
info
.
right_tread
===
1
){
if
(
data
.
info
.
right_tread
===
1
){
//关门成功
//关门成功
if
(
isSend
){
console
.
log
(
"closedoor"
);
console
.
log
(
"closedoor"
);
dispatch
(
logout
());
dispatch
(
logout
());
// this.endCountBack();
// this.endCountBack();
...
@@ -250,11 +248,11 @@ class PageContainer extends React.Component {
...
@@ -250,11 +248,11 @@ class PageContainer extends React.Component {
successCloseDoor
:
true
,
successCloseDoor
:
true
,
isSend
:
false
isSend
:
false
});
});
}
}
else
{
}
else
{
sendMsg
(
JSON
.
stringify
({
type
:
'WILL_CLOSEDOOR'
}))
sendMsg
(
JSON
.
stringify
({
type
:
'WILL_CLOSEDOOR'
}))
}
}
}
}
}
break
;
break
;
}
}
...
...
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