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
a4961219
Commit
a4961219
authored
Sep 21, 2018
by
wujiabao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改pageContainer
parent
b6bfe5b8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
7 deletions
+9
-7
client/actions/common.js
+1
-1
client/containers/PageContainer/PageContainer.jsx
+6
-6
client/containers/TakeStokeContainer/TakeStokeContainer.jsx
+1
-0
client/reducers/barcodeCommon.js
+1
-0
No files found.
client/actions/common.js
View file @
a4961219
...
...
@@ -2,7 +2,7 @@ import fetch from 'isomorphic-fetch';
import
actionType
from
'../actiontype/common'
import
{
addErrorInfo
}
from
'./uploadError'
let
domain1
=
ENV
.
domain
;
let
domain
=
ENV
.
domain
let
domain
=
'http://192.168.10.37:8080/maxbox/web/'
let
myHeaders
=
new
Headers
({
// 'Access-Control-Allow-Origin': '*',
...
...
client/containers/PageContainer/PageContainer.jsx
View file @
a4961219
...
...
@@ -222,18 +222,18 @@ class PageContainer extends React.Component {
}
//根据后台数据控制该显示的页面
if
(
nextProps
.
state
.
commonInfo
&&
nextProps
.
state
.
commonInfo
.
taskInfo
){
let
num
=
nextProps
.
state
.
commonInfo
.
taskInfo
.
currentTaskNum
;
switch
(
num
){
case
1
:
let
type
=
nextProps
.
state
.
commonInfo
.
taskInfo
.
currentTaskType
;
switch
(
type
){
case
'LR'
:
this
.
changePages
(
CONFIG
.
showPage
[
5
]);
break
;
case
2
:
case
'CK'
:
this
.
changePages
(
CONFIG
.
showPage
[
6
]);
break
;
case
3
:
case
'RE'
:
this
.
changePages
(
CONFIG
.
showPage
[
10
]);
break
;
case
4
:
case
'ADDR'
:
this
.
changePages
(
CONFIG
.
showPage
[
11
]);
break
;
}
...
...
client/containers/TakeStokeContainer/TakeStokeContainer.jsx
View file @
a4961219
...
...
@@ -100,6 +100,7 @@ class TakeStokeContaniner extends React.Component {
let
{
type
}
=
nextProps
.
TokeStokeState
;
switch
(
type
){
case
1
:
this
.
setState
({
number
:
1
,
showButton
:
true
})
break
;
case
2
:
this
.
setState
({
number
:
type
})
...
...
client/reducers/barcodeCommon.js
View file @
a4961219
...
...
@@ -8,6 +8,7 @@ const saveProductInfo = (data,content)=>{
export
default
function
(
state
=
{},
action
)
{
switch
(
action
.
type
)
{
case
barcodeActionType
.
GETPRODUCTINFO
:
console
.
log
(
action
.
data
,
'吴加宝打印barcode reducer'
)
return
saveProductInfo
(
state
,
action
.
data
);
default
:
return
state
;
...
...
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