| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- // Learn cc.Class:
- // - https://docs.cocos.com/creator/2.4/manual/en/scripting/class.html
- // Learn Attribute:
- // - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
- // Learn life-cycle callbacks:
- // - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html
- cc.Class({
- extends: cc.Component,
- properties: {
- // foo: {
- // // ATTRIBUTES:
- // default: null, // The default value will be used only when the component attaching
- // // to a node for the first time
- // type: cc.SpriteFrame, // optional, default is typeof default
- // serializable: true, // optional, default is true
- // },
- // bar: {
- // get () {
- // return this._bar;
- // },
- // set (value) {
- // this._bar = value;
- // }
- // },
- },
- // LIFE-CYCLE CALLBACKS:
- // onLoad () {},
- start () {
- },
- gift(){
- var cMD_GP_GIFT = new CMD_GP_GIFT();
- cMD_GP_GIFT.dwUserID = g_GlobalUserInfo.GetGlobalUserData().dwUserID;
- cMD_GP_GIFT.dwPlatformId = 0;
- cMD_GP_GIFT.dwShopGiftId = 1;
- cMD_GP_GIFT.dwNum = 1;//数量
- cMD_GP_GIFT.dwType = 1;//1购买gift 2 赠送 3兑换
- var LoginMission = new CGPLoginMission(this, MDM_GP_USER_SERVICE, SUB_GP_GIFT_OPERATION, cMD_GP_GIFT);
- }
- // update (dt) {},
- });
|