groupPurchaseDetailInitialState.js
1.35 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
'use strict';
import {List, Map, Record} from 'immutable';
let InitialState = Record({
activityId: 0,
groupNo: 0,
showShareView: false,
showSnapshootShare: false,
productList: new (Record({
isFetching: false,
error: null,
list: List(),
page: 0,
total: 0,
pagetotal: 0,
pageSize: 20,//60,
endReached: false,
})),
resourceInfo: new (Record({
isFetching: false,
error: null,
resourceList: List(),
})),
groupDetail: new (Record({
isFetching: false,
error: null,
groupId : 0,
leftTime : 0,//到期时间,秒数
isNewCustomer: 0,// 是否新客
pageGo: 0,// 状态页: 1,开团成功--准备邀请好友参团; 2,尚未加入团--应好友邀请; 3,已经加入团--应好友邀请; 4,团已达成--你已加入一起购买成功; 5,团已达成--你来晚了没能加入; 6,拼团失败--过期未达成
groupRole: 0,// 1,参团; 0,开团
lackNum : 0,// 如团未达成,欠缺人数
openerJoinItem : List(),// 他购买了, status=2,即未参团时有效
yourJoinItem : List(), //你购买了, status=1,即已参团时有效
membershipItems : List(),
joinLimit: 1,
})),
});
export default InitialState;