listInitialState.js
585 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
'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: 50,
total: 0,
endReached: false,
}));
let typeMap1 = new(Record({
all: '1',
onPay: '2',
onDelivery: '3',
onReceive: '4',
}));
let typeMap = new(Record({
1: 'all',
2: 'onPay',
3: 'onDelivery',
4: 'onReceive',
}));
let InitialState = Record({
showIndex: 0,
all: templet,
onPay: templet,
onDelivery: templet,
onReceive: templet,
typeMap,
});
export default InitialState;