
cc.Class({
    extends: cc.Component,

    properties: {
        EquipView: {
            default: null,
            type: cc.Sprite,
            serializable: true,
        },
        EquipName: {
            default: null,
            type: cc.Label,
            serializable: true,
        },
        EquipDay: {
            default: null,
            type: cc.Label,
            serializable: true,
        },
        EquipSNB: {
            default: null,
            type: cc.Label,
            serializable: true,
        },
    },


    setInfo(context) {
        // console.log(context);

        this.EquipName.string = context.name;
        this.EquipDay.string = context.effectiveDay;
        this.EquipSNB.string = context.priceSnb;
        this.EquipView.spriteFrame = context.bgSpriteFrame;
    }
});
