Merge branch 'main' of 47.107.44.202:xionglijia/18xchat
This commit is contained in:
@@ -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("点击了");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user