ShopMain.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. const TagType = {
  2. OTHER: -1,
  3. HOT: 0,
  4. KINIFE: 100, // 匕首
  5. HANDGUN: 200, // 手枪
  6. SHOTGUN: 300, // 散弹枪
  7. RIFLE: 400, // 步枪
  8. PRINTING: 500, // 印花
  9. LSTA: 600, // 轻机枪
  10. GLOVE: 700, // 手套
  11. };
  12. cc.Class({
  13. extends: cc.Component,
  14. editor: {
  15. menu: 'Shop/ShopMain'
  16. },
  17. properties: {
  18. goldNumText: cc.Label,
  19. },
  20. onLoad () {
  21. this.initUI();
  22. },
  23. initData () {
  24. this.goods = {};
  25. let goodConfig = G.CfgMgr.GoodsConfig.table;
  26. for (let config of goodConfig) {
  27. if (!config.inShop) {
  28. continue;
  29. }
  30. if (!config.items || config.items.length == 0) {
  31. continue;
  32. }
  33. let item = config.items[0];
  34. }
  35. },
  36. initUI() {
  37. let goldNum = G.BagMgr.getItemNumById(JMC.ITEM_ID.SPECIAL_GOLD);
  38. },
  39. typeChooseToggleOnClicked(toggleData, eventKey) {
  40. }
  41. });