studentInitialState.js 1.93 KB
'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;