redBrandInitialState.js 2.11 KB
'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 - 奥莱
    })),
	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,
    })),
});

export default InitialState;