协议调试:商城

This commit is contained in:
chen wei bo
2025-09-10 15:27:07 +08:00
parent c1471c1540
commit 00099f2860
6 changed files with 75 additions and 28 deletions
@@ -3,6 +3,8 @@ import { PurchasePanel } from "../ui/panels/PurchasePanel";
import { PurchaseConfig } from "../../schema/schema";
import { DataManager, DataId } from "../data/DataManager";
import { ShopData } from "../data/ShopData";
import { GButton } from "db://assets/Scripts/Main/Common/GButton";
const { ccclass, property } = _decorator;
@ccclass("PurchasePanelItem")
@@ -17,6 +19,8 @@ export class PurchasePanelItem extends Component {
public init(base: PurchasePanel, goodId: number) {
this.baseView = base;
this.goodId = goodId;
GButton.BandClick(this.node, this.onClickThis, this);
}
public show() {
@@ -27,8 +31,7 @@ export class PurchasePanelItem extends Component {
this.price.string = price.toString();
}
onClickThis() {
async onClickThis() {
this.baseView.setDiamondTag(this.goodId);
console.log("点击了");
}
}