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
af5d4ffc
Commit
af5d4ffc
authored
Jul 18, 2018
by
yaxiLiuu
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
c1c9e40a
a3801e6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
14 deletions
+22
-14
client/containers/PageContainer/PageContainer.jsx
+22
-14
No files found.
client/containers/PageContainer/PageContainer.jsx
View file @
af5d4ffc
...
...
@@ -5,17 +5,15 @@ import { connect } from 'react-redux';
import
{
getStoreInfo
}
from
"../../actions/getStore"
;
import
{
getTroubleList
}
from
"../../actions/getTroubles"
;
import
{
initGetOtherProblem
,
addNewProbem
}
from
"../../actions/otherQuestion"
import
{
getRefreshImg
}
from
"../../actions/refreshImg"
import
PopupComponent
from
'../../components/CommonComponent/PopupComponent/PopupComponent'
import
TroubleContainer
from
'../TroubleContainer/TroubleContainer'
import
TextAreaContainer
from
'../TextAreaContainer/TextAreaContainer'
import
ScanBarCodeContainer
from
'../ScanBarCodeContainer/ScanBarCodeContaienr'
import
ReportDamagesListContainer
from
'../ReportDamagesListContainer/ReportDamagesListContainer'
import
OtherQuestionContainer
from
'../OtherQuestionContainer/OtherQuestionContainer'
import
HomeContainer
from
'../HomeContainer/HomeContainer'
import
FinishAskContainer
from
'../FinishAskContainer/FinishAskContainer'
import
ChooseTaskContainer
from
'../ChooseTaskContainer/ChooseTaskContainer'
import
Qrcode
from
'../Qrcode/Qrcode'
require
(
'./index.css'
)
...
...
@@ -41,12 +39,8 @@ class PageContainer extends React.Component {
lastPage
:
''
,
page
:
null
,
popupInfo
:
defaultPopupInfo
,
pageStyle
:
{
// 'backgroundColor' : '#ffffff'
},
lastPageStyle
:{
},
pageStyle
:
{},
lastPageStyle
:{},
};
this
.
getPages
=
this
.
getPages
.
bind
(
this
);
this
.
showPopup
=
this
.
showPopup
.
bind
(
this
);
...
...
@@ -54,6 +48,12 @@ class PageContainer extends React.Component {
this
.
showQrCode
=
this
.
showQrCode
.
bind
(
this
);
this
.
saveLastPage
=
this
.
saveLastPage
.
bind
(
this
);
this
.
goBack
=
this
.
goBack
.
bind
(
this
);
this
.
maxCountBackTime
=
300
;
this
.
count
=
1000
;
this
.
countbackTimer
=
null
;
}
componentWillMount
()
{
let
{
dispatch
}
=
this
.
props
;
...
...
@@ -73,6 +73,10 @@ class PageContainer extends React.Component {
componentWillUnmount
(){
}
countBack
(){
}
hidePopup
(){
this
.
setState
({
popupInfo
:
defaultPopupInfo
...
...
@@ -131,11 +135,14 @@ class PageContainer extends React.Component {
case
showPage
[
1
]:
pages
=
<
TroubleContainer
troubleList=
{
state
.
troubleList
}
refreshImg
=
{
state
.
refreshImg
}
storeInfo=
{
state
.
storeInfo
}
userInfo=
{
state
.
userInfo
}
initTroubleList=
{
()
=>
dispatch
(
getTroubleList
())
}
showTextArea=
{
(
text
)
=>
this
.
showTextArea
(
text
)
}
showPopup=
{
(
info
)
=>
this
.
showPopup
(
info
)
}
hidePopup=
{
()
=>
this
.
hidePopup
()
}
getRefreshImg=
{
(
errorId
,
type
)
=>
dispatch
(
getRefreshImg
(
errorId
,
type
))
}
/>;
break
;
case
showPage
[
2
]:
...
...
@@ -151,9 +158,6 @@ class PageContainer extends React.Component {
state =
{
state
}
/
>
;
break;
case showPage[6]:
pages =
<
Qrcode
/>
;
break;
case showPage[7]:
pages =
<
HomeContainer
/>
;
break;
...
...
@@ -167,10 +171,14 @@ class PageContainer extends React.Component {
return pages;
}
handleTouch()
{
}
render()
{
let
{
state
}
=
this
.
props
;
return
(
<
div
className=
{
"pageContainer "
}
style=
{
this
.
state
.
pageStyle
}
>
<
div
className=
{
"pageContainer "
}
style=
{
this
.
state
.
pageStyle
}
onTouch=
""
>
<
PopupComponent
popupInfo=
{
this
.
state
.
popupInfo
}
/>
{
this
.
getPages
()
}
...
...
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