var FriendController = require("friend_controller"); var RoleController = require("role_controller"); var FriendConst = require("friend_const"); var FriendEvent = require("friend_event"); const FxSVC = require( "nx.fx.sv.expand" ); const 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 () { this._super(); this.ctrl = FriendController.getInstance(); this.editBox.node.on( "editing-return", function( event ) { var str = event.string; }, this ); }, 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 () { }, onDisable(){ if( nx.bridge.prompt ) { nx.bridge.prompt.delPrompt(2); } }, onEnable(){ //请求推荐列表 this.ctrl.recommend(); }, touchFlash(){ this.ctrl.recommend(); }, touchFind(){ var name = this.editBox.string || ""; this.ctrl.queryFind( name ); } // update (dt) {}, });