
cc.Class({
    extends: cc.Component,

    properties: {
        haoyou_ranking:cc.Node,
        rich_ranking:cc.Node,
        haoyou_btn:cc.Node,
        rich_btn:cc.Node,
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {

    },

    caifubang_btn(){
        this.haoyou_ranking.active = false;
        this.rich_ranking.active = true;
        this.rich_btn.active = false;
        this.haoyou_btn.active = true;
    },
    haoyoubang_btn(){
        this.haoyou_ranking.active = true;
        this.rich_ranking.active = false;
        this.rich_btn.active = true;
        this.haoyou_btn.active = false;
    },

    // update (dt) {},
});
