var beiMiCommon = require("BeiMiCommon"); cc.Class({ extends: beiMiCommon, properties: { // foo: { // default: null, // The default value will be used only when the component attaching // to a node for the first time // url: cc.Texture2D, // optional, default is typeof default // serializable: true, // optional, default is true // visible: true, // optional, default is true // displayName: 'Foo', // optional // readonly: false, // optional, default is false // }, // ... atlas: { default: null, type: cc.SpriteAtlas }, memo:{ default:null , type : cc.Label }, optionsnode:{ default:null , type : cc.Node }, roomtitle:{ default:null , type : cc.Node }, optiongroup:{ default:null , type : cc.Prefab }, optiongroupitem:{ default:null , type : cc.Prefab }, memonode:{ default:null , type : cc.Node }, createroom:{ default:null , type : cc.Node }, freeopt:{ default:null , type : cc.Node } }, // use this for initialization onLoad: function () { let self = this ; this.group = new Array(); this.node.on('createroom', function (event) { /** * 把参数 汇总一下, 然后转JSON以后序列化成字符串,发送 创建房间的请求 */ var extparams = {} ; let values = new Array(); for(var inx=0 ; inx