"use strict"; cc._RF.push(module, 'b6a72JKkIVB75p1/H79bA56', 'act.elite.shop.mod'); // Scripts/mod/acts/elite/act.elite.shop.mod.js "use strict"; /****************************************************************** * * 活动: 精英召唤商城 * ******************************************************************/ var ActBase = require("act.base"); var ActEliteShopMod = cc.Class({ "extends": ActBase, // 初始化配置数据 initConfig: function initConfig() { // 视图附着 nx.plugin.add(this, ["view"]); this.vattach("Acts"); }, // 注册协议接受事件 registerProtocals: function registerProtocals() { this.RegisterProtocal(23229, this.handle23229.bind(this)); }, // 从服务器初始化数据 reqBaseFromServer: function reqBaseFromServer(_cb) { this.freshTips(); nx.dt.fnInvoke(_cb, true); }, // 礼包请求 reqGiftList: function reqGiftList(_cb) { this.SendProtocal(23229, {}, _cb); }, // 礼包更新 handle23229: function handle23229(_data) { if (!this.isGoodData(_data)) { return; } this.vset("eliteGifts", _data.gift_buy_info || []); }, // 活动用到的提示KEY tipKeys: function tipKeys() { return []; }, // 红点提示更新 freshTips: function freshTips() { this.openTip("reward", false); } }); module.exports = ActEliteShopMod; cc._RF.pop();