listInitialState.js 612 Bytes
'use strict';

import {Record, List, Map} from 'immutable';

let templet = new(Record({
	firstLoad: true,
	isFetching: false,
	error: null,
	list:List(),
	currentPage: 0,
	pageCount: 0,
	pageSize: 20,
	total: 0,
	endReached: false,
}));

let nameMap = new(Record({
	all: '全部',
	onPay: '待付款',
	onDelivery: '待发货',
	onReceive: '待收货',
}));

let typeMap = new(Record({
	all: 1,
	onPay: 2,
	onDelivery: 3,
	onReceive: 4,
}));

let InitialState = Record({
	defaultPageIndex: 0,
	all: templet,
	onPay: templet,
	onDelivery: templet,
	onReceive: templet,
	typeMap,
});

export default InitialState;