{
  "code": "import { GameTool } from \"../../Util/GameTool\";\r\nimport { FYHD_Sdk } from \"../../Net/FYHD_Sdk\";\r\nexport default class ListItem extends Laya.Script {\r\n    constructor() { super(); }\r\n    onAwake() {\r\n        this.self = this.owner;\r\n        this.icon = this.self.getChildByName(\"icon\");\r\n        this.btn = this.self.getChildByName(\"btn\");\r\n        this.name = this.self.getChildByName(\"name\");\r\n        this._tip = this.self.getChildByName(\"tip\");\r\n        this.bottom = this.self.getChildByName(\"bottom\");\r\n        this.remen = this.self.getChildByName(\"remen\");\r\n        this.star = this.self.getChildByName(\"star\");\r\n        this.diandian = this.icon.getChildAt(0);\r\n        this.btn.clickHandler = new Laya.Handler(this, this.clickAd);\r\n        console.log(\"self-------------------\", this.self);\r\n    }\r\n    Refresh(type) {\r\n        this.data = this.self.dataSource;\r\n        this.type = type;\r\n        if (this.name) {\r\n            this.name.text = this.data.togame_name;\r\n        }\r\n        if (this._tip) {\r\n            this._tip.visible = true;\r\n            let rnd = GameTool.randomInt(1, 200000);\r\n            let text = rnd.toString() + \"人在玩\";\r\n            this._tip.text = text;\r\n        }\r\n        if (this.diandian) {\r\n            this.diandian.visible = false;\r\n        }\r\n        if (this.bottom) {\r\n            let num = GameTool.randomInt(1, 6);\r\n            this.bottom.skin = \"subpackage/bottom/icontitle\" + num + \".png\";\r\n        }\r\n        if (this.remen) {\r\n            this.remen.visible = Math.random() < 0.2 ? true : false;\r\n        }\r\n        if (this.star) {\r\n            this.star.visible = Math.random() < 0.2 ? true : false;\r\n        }\r\n        this.icon.skin = this.data.icon;\r\n    }\r\n    clickAd() {\r\n        FYHD_Sdk.ClickAd(FYHD_Sdk.Ad_ClickType.PushClick);\r\n        FYHD_Sdk.ShowHuTuiJump(this.data);\r\n    }\r\n    onDestroy() {\r\n        this.btn.clickHandler = null;\r\n    }\r\n}\r\n//# sourceMappingURL=ListItem.js.map",
  "references": [
    "C:/Users/Administrator/Desktop/gungang/src/Util/GameTool.ts",
    "C:/Users/Administrator/Deskt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