47 lines
1.4 KiB
JavaScript
47 lines
1.4 KiB
JavaScript
"use strict";
|
|
cc._RF.push(module, '2fe34mltXZJ4KFcbAqhL+qc', 'cmp.friend.checkinfo.item.base');
|
|
// Scripts/mod/friend/cmp/cmp.friend.checkinfo.item.base.js
|
|
|
|
"use strict";
|
|
|
|
var ItemBase = require("cmp.partner.com");
|
|
var BackPackConst = require("backpack_const");
|
|
var LookController = require("look_controller");
|
|
var BridgeItem = require("bridge.utils.item");
|
|
var PathTool = require("pathtool");
|
|
var BIST = BackPackConst.item_sub_type;
|
|
cc.Class({
|
|
"extends": ItemBase,
|
|
properties: {},
|
|
// 数据重置
|
|
freshAll: function freshAll() {
|
|
this._super();
|
|
var nod = nx.gui.find(this, "qa");
|
|
var cfg = game.configs.partner_data.data_partner_base[this.mdata.bid];
|
|
if (nod && cfg) {
|
|
var path = cfg.quality != 1 ? "coms/images/mk_sqa" + cfg.quality : null;
|
|
nx.gui.setSpriteFrame(nod, "", path);
|
|
nx.gui.setActive(nod, "", true);
|
|
}
|
|
},
|
|
// 置空
|
|
setEmpty: function setEmpty() {
|
|
this._super();
|
|
nx.gui.setString(this.nodCount, "", "");
|
|
var nod = nx.gui.find(this, "qa");
|
|
if (nod) {
|
|
nx.gui.setActive(nod, "", false);
|
|
}
|
|
},
|
|
// 点击
|
|
onTouchIcon: function onTouchIcon() {
|
|
// console.log( "当前的数据" + JSON.stringify( this.mdata ) );
|
|
var LC = LookController.getInstance();
|
|
if (this.mdata.srv_idd == "robot") {
|
|
return;
|
|
}
|
|
LC.sender11061(this.mdata.rrid, this.mdata.srv_idd, this.mdata.id);
|
|
}
|
|
});
|
|
|
|
cc._RF.pop(); |