mineInitialState.js 5.34 KB
'use strict';

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

let InitialState = Record({
    isFetching: false,
    isNeedShowXsrz:true,
    delayExposeData:true,
    open: new (Record({
        productListForMineCenter: new (Record({
            product_list: List(),
            similarIndex: -1,
            rec_id:'',
            page_size:0,
        })),
        mineCenterInfo: '',
    })),

    showSimilarGuider: false,

    /** 个人信息state */
    profile: new (Record({
        alipay_bind: '',
        alipay_nickname: '',
        bind_gate: '',
        birthday: '',
        createTime: 0,
        douban_bind: '',
        douban_nickname: '',
        email: '',
        gender: '',
        head_ico: '',
        height: '',
        income: 0,
        mobile: '',
        nickname: '',
        profession: 0,
        profile_name: '',
        qq_bind: 'N',
        qq_nickname: '',
        renren_bind: 'N',
        renren_nickname: '',
        sina_bind: 'Y',
        sina_nickname: '',
        uid: '0',
        username: '',
        verify_email: '',
        verify_mobile: '',
        vip_info: new (Record({
            cur_level: '0',
            next_level: '1',
            title: '',
            nextVipTitle: '',
            is_student: 0,
            upgrade_need_cost_str: '',
            curYearCost: '',
            nextVipNeedCost: ''
        })),
        wechat_bind: 'N',
        wechat_nickname: '',
        weight: '',
        yoho_currency: 0,
    })),

    mineInfoNum: new (Record({
        brand_favorite_total: 0,
        comment_total: 0,
        coupon_num: 0,
        inbox_total: 0,
        limitCodeNum: 0,
        product_browse: 0,
        product_favorite_total: 0,
        refund_exchange_num: 0,
        send_cargo_num: 0,
        showOrderNum: 0,
        toShareOrderNum: 0,
        wait_cargo_num: 0,
        wait_pay_num: 0,
        yoho_coin_num: 0,
        total: 0,
    })),

    redPackageNum: new (Record({
        redpacket_num: 0,
        useable_time: '',
    })),

    activityListInfo: new (Record({
        list: List(),
    })),

    memberBill: new (Record({
        bill: new (Record({
            open: "N",
            new: false,
            userinfo: new (Record({
                title: "",
                url: "",
            })),
        })),
    })),

    showRedPacket: new (Record({
        open: "N",
        redpacket_num: 0,
        useable_time: '',
    })),

    instalmentStatus: new (Record({
        currCreditLimit: "",
        isShow: "1",
        status: "0",
    })),

    certificationInfo: new (Record({
        isNeedPopupRelated: "N",
        isBindedOrRelated: "Y",
    })),

    announcement: new (Record({
        list: List(),
        open: "N",
        time: 0,
    })),

    globalOrderData: new (Record({
        hasOrder: "N",
        collect_count: 0,
        successOrder: 0,
        cancelOrder: 0,
        tradingOrder: 0,
    })),

    iconAll:new (Record({
        willPay: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        willDeliver: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        willReceived: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        willComment: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        reback: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        coupon: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        yohoCoin: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        myLimitCode: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        instalment: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        redPackets: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        myguang: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        myList: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        suggestion: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        invite: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        inviteFriend: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
        vipBill: new (Record({
            default_ico: '',
            ico: '',
            ico_name: '',
            isExist: false,
        })),
    })),

    // 我的个人中心资源位
    mineResource: List(),
});

export default InitialState;