const TagType = { OTHER: -1, HOT: 0, KINIFE: 100, // 匕首 HANDGUN: 200, // 手枪 SHOTGUN: 300, // 散弹枪 RIFLE: 400, // 步枪 PRINTING: 500, // 印花 LSTA: 600, // 轻机枪 GLOVE: 700, // 手套 }; cc.Class({ extends: cc.Component, editor: { menu: 'Shop/ShopMain' }, properties: { goldNumText: cc.Label, }, onLoad () { this.initUI(); }, initData () { this.goods = {}; let goodConfig = G.CfgMgr.GoodsConfig.table; for (let config of goodConfig) { if (!config.inShop) { continue; } if (!config.items || config.items.length == 0) { continue; } let item = config.items[0]; } }, initUI() { let goldNum = G.BagMgr.getItemNumById(JMC.ITEM_ID.SPECIAL_GOLD); }, typeChooseToggleOnClicked(toggleData, eventKey) { } });