studentInitialState.js
1.93 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
'use strict';
import Immutable,{Record, List, Map} from 'immutable';
let registerCellList = [
{
type: 'name',
title: '真实姓名',
placeholderText: '请输入您的真实姓名',
text: '',
touchAction: false,
},
{
type: 'id',
title: '身份证号',
placeholderText: '请输入您身份证号码',
text: '',
touchAction: false,
},
{
type: 'province',
title: '学校省份',
placeholderText: '请选择省份',
text: '',
touchAction: true,
},
{
type: 'school',
title: '学校名称',
placeholderText: '请选择您的所在学校',
text: '',
touchAction: true,
},
{
type: 'education',
title: '当前学历',
placeholderText: '请选择您的学历',
text: '',
touchAction: true,
},
{
type: 'years',
title: '入学年份',
placeholderText: '请选择您的入学年份',
text: '',
touchAction: true,
}];
let InitialState = Record({
registerPageInfo: new (Record({
isFetching: false,
verifiedStudentTotal: 0,
educationLevelList: List(),
schoolYearList: List(),
registerPageCells: Immutable.fromJS(registerCellList),
agreeYohoProtocol: true,
registerNowEnable: false,
error: null,
pickerList: List(),
provinceWithLatterList: List(),
provinceLatterList: List(),
curProvinceItem: Map(),
schoolCodeValueInfo: Map(),
curSchoolListInfo:new (Record({
isFetching: false,
curSchoolWithLatterList: List(),
curSchoolLatterList: List(),
})),
cueSchoolItem: Map(),
provinceSchoolPageInfo: new (Record({
show: false,
type: '', //provice or school
leftList: List(),
rightList: List(),
})),
searchResultPageInfo: new (Record({
show: false,
type: '', //provice or school
leftList: List(),
rightList: List(),
})),
pickerInfo: Map(),//当前页面选中的cell的信息
})),
productPageInfo: new (Record({
isFetching: false,
studentProducts: Map(),
error: null,
})),
tipMessage: '',
zimaRegisterUrl: '',
});
export default InitialState;