detailInitialState.js 1.42 KB
'use strict';

import {Record, List, Map} from 'immutable';

let InitialState = Record({
	articleId: '60675',
	article: new (Record({
        isFetching: false,
        error: null,
        data: null,
    })),
    author: new (Record({
        isFetching: false,
        error: null,
        data: null,
    })),
    content: new (Record({
        isFetching: false,
        error: null,
        data: List(),
    })),
    brand: new (Record({
        isFetching: false,
        error: null,
        data: List(),
    })),
    otherArticle: new (Record({
        isFetching: false,
        error: null,
        data: List(),
    })),
    weixin: new (Record({
        isFetching: false,
        error: null,
        data: List(),
    })),
	wechat: new (Record({
        isFetching: false,
        error: null,
        wechatAtten: '',
		wechatAttenSub: '',
		wechatCopy: '有货YOHOBUY',
    })),
	goods_group_Filter: 0,
	goods_group_y: 0,
	commentsList: new (Record({
        isFetching: false,
        error: null,
        data: List(),
		page: 0,
		total: 0,
		total_page: 0,
		limit: 10,
		endReached: false,
    })),
	addComment: new (Record({
        isFetching: false,
        error: null,
        data: List(),
		message: '',
    })),
	addPraiseInfo: new (Record({
		isFetching: false,
		error: null,
		browseNum: 0,
		id: 0,
		isFavor: 'N',
		isPraise: 'N',
		praiseHeadIco: List(),
		praiseNum: 0,
	})),
});

export default InitialState;