39 lines
903 B
JavaScript
39 lines
903 B
JavaScript
"use strict";
|
|
cc._RF.push(module, '50871zqQ4hBcJTf1NGi/YCR', 'cmp.home.footmark.wnd');
|
|
// Scripts/mod/home/cmps/cmp.home.footmark.wnd.js
|
|
|
|
"use strict";
|
|
|
|
/******************************************************************
|
|
*
|
|
* 家园足迹
|
|
*
|
|
******************************************************************/
|
|
|
|
var BridgeWindow = require("bridge.window");
|
|
var Home = require("home.mod");
|
|
var FxSVC = require("nx.fx.sv.expand");
|
|
cc.Class({
|
|
"extends": BridgeWindow,
|
|
properties: {
|
|
svcList: {
|
|
"default": null,
|
|
type: FxSVC
|
|
}
|
|
},
|
|
// 显示
|
|
onEnable: function onEnable() {
|
|
var _this = this;
|
|
nx.mTip.openTip("home.footmark.new", false);
|
|
this.svcList.rebuild([]);
|
|
Home.getInstance().reqVisitorList(function (_ret, _data) {
|
|
if (!_ret) {
|
|
nx.tbox(_data);
|
|
return;
|
|
}
|
|
_this.svcList.rebuild(_data.visitors);
|
|
});
|
|
}
|
|
});
|
|
|
|
cc._RF.pop(); |