contentInitialState.js
1.13 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
'use strict';
import Immutable, {Record, List, Map} from 'immutable';
let InitialState = Record({
contentListId: 0,
contentCategoryName: '',
contentTipFlag: 3,
tipMessage: '',
pageSize: 20,
//内容消息类型
contentType: new (Record({
isFetching: false,
list: List(),
error:null,
})),
//main页面消息
commentList: new (Record({
isFetching: false,
list: List(),
currentPage: 0,
endReached: false,
isPullToRefresh: false,
error:null,
shouldShowEmpty: false,
pageCount: 0,
})),
//列表页面
contentList: new (Record({
isFetching: false,
list: List(),
currentPage: 0,
endReached: false,
isPullToRefresh: false,
error:null,
shouldShowEmpty: false,
pageCount: 0,
})),
addCommentContent: new (Record({
isFetching: false,
error: null,
})),
updateAttentionContent: new (Record({
isFetching: false,
error: null,
})),
isShowToast: false,
toastMessage: '',
});
export default InitialState;