协议调试
This commit is contained in:
@@ -17,19 +17,27 @@ export class PopupGirlDetailPanel extends li_BaseView {
|
||||
private category: number;
|
||||
private girlId: number;
|
||||
private resId: number;
|
||||
private type: number;
|
||||
private base: DetailImageItem;
|
||||
openUIDataCT(data) {
|
||||
this.category = data.category;
|
||||
this.resId = data.resId;
|
||||
this.girlId = data.girlId;
|
||||
this.base = data.base;
|
||||
this.type = data.type;
|
||||
}
|
||||
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.getGrilPhotoOriginalPrice(this.category.toString(), this.girlId, this.resId).toString();
|
||||
if (this.type === 1) {
|
||||
// 图片
|
||||
this.priceLabel.string = girlData.getGrilPhotoOriginalPrice(this.category.toString(), this.girlId, this.resId).toString();
|
||||
} else if (this.type === 2) {
|
||||
// 视频
|
||||
this.priceLabel.string = girlData.getGrilVideoOriginalPrice(this.category.toString(), this.girlId, this.resId).toString();
|
||||
}
|
||||
this.registerListener();
|
||||
}
|
||||
registerListener() {
|
||||
|
||||
Reference in New Issue
Block a user