Commit a4961219 by wujiabao

更改pageContainer

parent b6bfe5b8
......@@ -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': '*',
......
......@@ -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;
}
......
......@@ -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})
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment