productListPoolInitialState.js
1.32 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
'use strict';
import {Record, List, Map} from 'immutable';
let InitialState = Record({
similarIndex : -1,
bannerInfo: new (Record({
isFetching: false,
error: null,
list: List(),
})),
activityInfo: new (Record({
isFetching: false,
error: null,
list: List(),
productPool: 0,
})),
productList: new (Record({
isFetching: false,
error: null,
list: List(),
order: '',
currentPage: 0,
pageCount: 0,
pageSize: 20,//60,
total: 0,
endReached: false,
sourceType: 0, // 0 - 默认,1 - 购,全球2 - 奥莱
})),
categoryFilterList: List(),
filterCategoryDetailFilterList: List(),
latestTabs: List(),
selectLatestItem: 0,
filterFactors: new (Record({
gender: '', //性别
color: '', //颜色
price: '', //价格
sizeKey: '', //尺码
p_d: '', //折扣
sort: '', //品类
brand: '', //品牌
})),
filterNameFactors: new (Record({
gender: '所有性别', //性别
color: '所有颜色', //颜色
price: '所有价格', //价格
sizeKey: '所有尺码', //尺码
p_d: '所有折扣', //折扣
sort: '所有品类', //品类
brand: '所有品牌', //品牌
})),
});
export default InitialState;