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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
39 deletions
+37
-39
client/containers/PageContainer/PageContainer.jsx
+37
-39
No files found.
client/containers/PageContainer/PageContainer.jsx
View file @
d14515d4
...
@@ -212,47 +212,45 @@ class PageContainer extends React.Component {
...
@@ -212,47 +212,45 @@ class PageContainer extends React.Component {
});
});
break
;
break
;
case
'SUCCESS_CLOSEDOOR'
:
case
'SUCCESS_CLOSEDOOR'
:
if
(
area
===
"A"
){
if
(
isSend
){
if
(
data
.
info
.
left_tread
===
1
){
if
(
area
===
"A"
){
//关门成功
if
(
data
.
info
.
left_tread
===
1
){
if
(
isSend
){
//关门成功
console
.
log
(
"closedoor"
);
console
.
log
(
"closedoor"
);
dispatch
(
logout
());
dispatch
(
logout
());
// this.endCountBack();
// this.endCountBack();
// remove(CONFIG.socketType.GETSTOREINFO,this)
// remove(CONFIG.socketType.GETSTOREINFO,this)
// remove(CONFIG.socketType.GETSOCKETMSG,this)
// remove(CONFIG.socketType.GETSOCKETMSG,this)
dispatch
(
closeDoorSuccess
(
state
.
commonInfo
))
dispatch
(
closeDoorSuccess
(
state
.
commonInfo
))
this
.
setState
({
this
.
setState
({
showPage
:
showPage
[
initPage
],
showPage
:
showPage
[
initPage
],
showClock
:
false
,
showClock
:
false
,
popupInfo
:
defaultPopupInfo
,
popupInfo
:
defaultPopupInfo
,
successCloseDoor
:
true
,
successCloseDoor
:
true
,
isSend
:
false
isSend
:
false
});
});
}
else
{
sendMsg
(
JSON
.
stringify
({
type
:
'WILL_CLOSEDOOR'
}))
}
}
}
else
{
}
else
if
(
area
===
"B"
){
sendMsg
(
JSON
.
stringify
({
type
:
'WILL_CLOSEDOOR'
}))
if
(
data
.
info
.
right_tread
===
1
){
}
//关门成功
}
else
if
(
area
===
"B"
){
console
.
log
(
"closedoor"
);
if
(
data
.
info
.
right_tread
===
1
){
dispatch
(
logout
());
//关门成功
// this.endCountBack();
if
(
isSend
){
// remove(CONFIG.socketType.GETSTOREINFO,this)
console
.
log
(
"closedoor"
);
// remove(CONFIG.socketType.GETSOCKETMSG,this)
dispatch
(
logout
());
dispatch
(
closeDoorSuccess
(
state
.
commonInfo
))
// this.endCountBack();
this
.
setState
({
// remove(CONFIG.socketType.GETSTOREINFO,this)
showPage
:
showPage
[
initPage
],
// remove(CONFIG.socketType.GETSOCKETMSG,this)
showClock
:
false
,
dispatch
(
closeDoorSuccess
(
state
.
commonInfo
))
popupInfo
:
defaultPopupInfo
,
this
.
setState
({
successCloseDoor
:
true
,
showPage
:
showPage
[
initPage
],
isSend
:
false
showClock
:
false
,
});
popupInfo
:
defaultPopupInfo
,
}
else
{
successCloseDoor
:
true
,
sendMsg
(
JSON
.
stringify
({
type
:
'WILL_CLOSEDOOR'
}))
isSend
:
false
});
}
}
}
else
{
sendMsg
(
JSON
.
stringify
({
type
:
'WILL_CLOSEDOOR'
}))
}
}
}
}
...
...
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