"use strict"; cc._RF.push(module, '9c30e5mzDxGLLtdJyphvTLA', 'cmp.friend.add'); // Scripts/mod/friend/cmp/cmp.friend.add.js "use strict"; var FriendController = require("friend_controller"); var RoleController = require("role_controller"); var FriendConst = require("friend_const"); var FriendEvent = require("friend_event"); var FxSVC = require("nx.fx.sv.expand"); var BriComp = require("bridge.component"); cc.Class({ "extends": BriComp, properties: { // list:{ // default:null, // type:FxSVC // }, editBox: { "default": null, type: cc.EditBox } // num_label:{ // default:null, // type:cc.RichText // } }, // LIFE-CYCLE CALLBACKS: onLoad: function onLoad() { this._super(); this.ctrl = FriendController.getInstance(); this.editBox.node.on("editing-return", function (event) { var str = event.string; }, this); }, updateFriendList: function updateFriendList(data_list) { // this.create_index = 1; // var list = []; // for( var i in data_list ) { // list.push( data_list[ i ] ); // } // this.rend_list = list || []; // this.showEmptyIcon( false ); // if( list.length <= 0 ) { // { // this.showEmptyIcon( true ); // } // } // this.list.rebuild( list ) }, start: function start() {}, onDisable: function onDisable() { if (nx.bridge.prompt) { nx.bridge.prompt.delPrompt(2); } }, onEnable: function onEnable() { //请求推荐列表 this.ctrl.recommend(); }, touchFlash: function touchFlash() { this.ctrl.recommend(); }, touchFind: function touchFind() { var name = this.editBox.string || ""; this.ctrl.queryFind(name); } // update (dt) {}, }); cc._RF.pop();