redBrandInitialState.js
2.46 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
'use strict';
import {Record, List, Map} from 'immutable';
let InitialState = Record({
shopId: 0,
launchProfile: false,//header 详情展开收起开关
fliter: 0,//红人首页。全部商品切换开关
categoryFilterList: List(),
filterCategoryDetailFilterList: List(),
similarIndex : -1,
shopIntro: new (Record({
isFetching: false,
error: null,
is_favorite: 'N',//暂时废弃,改用单独接口获取的 is_addFav
is_show_shop_name: 'N',
mult_brand_shop_type: '0',
shop_domain: '',
shop_intro: '',
shop_logo: '',
shop_name: '',
shop_template_type: '2',
shops_id: 0,
is_addFav: false,//按需求改为单独接口获取
favoriteCount: '0',
shopBanner: null,
})),
shopsdecorator: new (Record({
isFetching: false,
error: null,
app_type: 0,
shop_id: 0,
template_id: 0,
template_type: 0,
modules: List(),
counts: Map(),
})),
productList: new (Record({
isFetching: false,
isFilter: false,
isMoreFilter:false,
error: null,
list: List(),
order: 's_n_desc',
currentPage: 0,
pageCount: 0,
pageSize: 60,//60,
total: 0,
endReached: false,
sourceType: 0, // 0 - 默认,1 - 购,全球2 - 奥莱
})),
productListForNew: new (Record({
isFetching: false,
error: null,
list: List(),
order: 's_t_desc',
currentPage: 0,
pageCount: 0,
pageSize: 60,//60,
total: 0,
endReached: false,
sourceType: 0, // 0 - 默认,1 - 购,全球2 - 奥莱
})),
filterFactors: new (Record({
gender: '', //性别
color: '', //颜色
price: '', //价格
sizeKey: '', //尺码
p_d: '', //折扣
sort: '', //品类
brand: '', //品牌
})),
filterNameFactors: new (Record({
gender: '所有性别', //性别
color: '所有颜色', //颜色
price: '所有价格', //价格
sizeKey: '所有尺码', //尺码
p_d: '所有折扣', //折扣
sort: '所有品类', //品类
brand: '所有品牌', //品牌
})),
coupon: new (Record({
isFetching: false,
error: null,
module_type: 'coupon',
list: List(),
})),
receiveCouponResult: new (Record({
showMessage: '',
isNeedShow: false,
})),
showSimilarGuider: false,
});
export default InitialState;