diffFront.js 1.8 KB
import * as types from '../constants/ActionTypes';

const initialState = {
  frontRealList:{},
  frontPeoList :{},
  frontRealDetail    :{},
  otherFeesList      :{},
  otherPersonFeesList:{},
  diffFeesList   :{},
  personDiffList :{},
  personDiffDet  :{},
  realInvalidList:{},
  socialList     :{}
};

export default function environment(state = initialState,action) {
    switch(action.type) {
      case types.FRONT_REAL_LIST:
        return Object.assign({}, state, {
          frontRealList: action.frontRealList
        });
      case types.FRONT_PEO_LIST:
        return Object.assign({}, state, {
          frontPeoList: action.frontPeoList
        });
      case types.FRONT_REAL_DETAIL:
        return Object.assign({}, state, {
          frontRealDetail: action.frontRealDetail
        });
      case types.OTHER_FEE_LIST:
        return Object.assign({}, state, {
          otherFeesList: action.otherFeesList
        });
      case types.OTHER_PERSON_FEE_LIST:
        return Object.assign({}, state, {
          otherPersonFeesList: action.otherPersonFeesList
        });
      case types.DIFF_FEE_LIST:
        return Object.assign({}, state, {
          diffFeesList: action.diffFeesList
        });
      case types.REAL_PERSON_DIFF_LIST:
        return Object.assign({}, state, {
          personDiffList: action.personDiffList
        });
      case types.PERSON_DIFF_DET:
        return Object.assign({}, state, {
          personDiffDet: action.personDiffDet
        });
      case types.REAL_INVALID_LIST:
        return Object.assign({}, state, {
          realInvalidList: action.realInvalidList
        });
      case types.SOCIAL_LOAD_LIST:
        return Object.assign({}, state, {
          socialList: action.socialList
        });
      default:
        return state;
    }
}