
cc.Class({
    extends: cc.Component,

    properties: {
        // wode:cc.Node,
        // Congratulations:cc.Node,
    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        // var self = this;
        // var seq = cc.repeatForever(cc.sequence(cc.rotateTo(2,15),cc.rotateTo(2,-15)));
        // seq.easing(cc.easeIn(3.0));
        // this.node.runAction(seq);

        // if (cc.sys.platform === cc.sys.WECHAT_GAME) {
        //     // console.log(wx.getLaunchOptionsSync())
        //     var tmp_data = wx.getLaunchOptionsSync();
        //     console.log("场景值",tmp_data.scene)
        //     if(tmp_data.scene == 1104){
        //         //从我的小程序进去
        //         sdk.getFromServer("MyProgram","Program",null,(d)=>{
        //             // console.log("ddddddd",d);
        //             if(d == undefined){
        //                 self.Congratulations.active = true;
        //                 self.Congratulations.getChildByName("two").active = true;
        //                 sdk.setToServer("MyProgram","Program",1,-1);
        //             }
        //         })
        //     }

        // }
    },

    onClose: function(){
        this.node.active = false;
        //显示投诉按钮
        cc.HQ.GameMgr.feedbackButtonShow();
    }
    // update (dt) {},
});
