listInitialState.js
612 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: 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;