协议调试
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { _decorator, Button, Component, Node } from "cc";
|
||||
import { _decorator, Button, Component, Node, Label } from "cc";
|
||||
import li_BaseView from "../../../Main/Common/li_BaseView";
|
||||
import Utils from "../../../Main/Common/Utils";
|
||||
import { GButton } from "../../../Main/Common/GButton";
|
||||
@@ -7,8 +7,6 @@ import { GirlListItem } from "../../uiitems/GirlListItem";
|
||||
import { GirlService } from "db://assets/Scripts/chat18x/network/services/GirlService";
|
||||
import { DataManager, DataId } from "../../data/DataManager";
|
||||
import { GirlData } from "../../data/GirlData";
|
||||
import { PlayerDataService } from "db://assets/Scripts/chat18x/network/services/PlayerDataService";
|
||||
import { PlayerData } from "../../data/PlayerData";
|
||||
import { WalletData } from "../../data/WalletData";
|
||||
import proto from "db://assets/Scripts/proto/proto.pb.js";
|
||||
const { ccclass, property } = _decorator;
|
||||
@@ -16,6 +14,7 @@ const { ccclass, property } = _decorator;
|
||||
@ccclass("GirlListPopupPanel")
|
||||
export class GirlListPopupPanel extends li_BaseView {
|
||||
private _nodeTab: any = {};
|
||||
private priceLabel: Label;
|
||||
private category: number;
|
||||
private girlId: number;
|
||||
|
||||
@@ -27,6 +26,10 @@ export class GirlListPopupPanel extends li_BaseView {
|
||||
}
|
||||
onLoadCT() {
|
||||
Utils.parseNode(this.node, this._nodeTab);
|
||||
const girlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
|
||||
// 价格
|
||||
this.priceLabel = this._nodeTab.Price.getComponent(Label);
|
||||
this.priceLabel.string = girlData.getGrilOriginalPrice(this.category.toString(), this.girlId).toString();
|
||||
this.registerListener();
|
||||
}
|
||||
registerListener() {
|
||||
|
||||
Reference in New Issue
Block a user