detailInitialState.js
1.42 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
'use strict';
import {Record, List, Map} from 'immutable';
let InitialState = Record({
articleId: '60675',
article: new (Record({
isFetching: false,
error: null,
data: null,
})),
author: new (Record({
isFetching: false,
error: null,
data: null,
})),
content: new (Record({
isFetching: false,
error: null,
data: List(),
})),
brand: new (Record({
isFetching: false,
error: null,
data: List(),
})),
otherArticle: new (Record({
isFetching: false,
error: null,
data: List(),
})),
weixin: new (Record({
isFetching: false,
error: null,
data: List(),
})),
wechat: new (Record({
isFetching: false,
error: null,
wechatAtten: '',
wechatAttenSub: '',
wechatCopy: '有货YOHOBUY',
})),
goods_group_Filter: 0,
goods_group_y: 0,
commentsList: new (Record({
isFetching: false,
error: null,
data: List(),
page: 0,
total: 0,
total_page: 0,
limit: 10,
endReached: false,
})),
addComment: new (Record({
isFetching: false,
error: null,
data: List(),
message: '',
})),
addPraiseInfo: new (Record({
isFetching: false,
error: null,
browseNum: 0,
id: 0,
isFavor: 'N',
isPraise: 'N',
praiseHeadIco: List(),
praiseNum: 0,
})),
});
export default InitialState;