This commit is contained in:
2025-07-22 16:43:10 +08:00
parent a90dce06f3
commit 52bae0735f
36 changed files with 10224 additions and 1658 deletions
@@ -0,0 +1,46 @@
import {
_decorator,
Component,
find,
Label,
Node,
NodeEventType,
Sprite,
} from "cc";
import { DemoManager } from "../DemoManager";
const { ccclass, property } = _decorator;
@ccclass("GirlListItem")
export class GirlListItem extends Component {
@property(Sprite)
avatar: Sprite;
@property(Label)
girlName: Label;
@property(Label)
desc: Label;
@property(Label)
price: Label;
@property(Node)
chatBtn: Node;
id: number = -1;
start() {
// this.avatar = this.node
// .getChildByName("avatar/Avatar")
// .getComponent(Sprite);
// this.girlName = this.node.getChildByName("Desc/Name").getComponent(Label);
// this.desc = this.node.getChildByName("Desc/desc").getComponent(Label);
// this.price = this.node.getChildByName("purchase/price").getComponent(Label);
// this.chatBtn = this.node.getChildByName("purchase/Button");
this.id = 1;
}
refreshData() {}
onClickDetail() {
DemoManager.getInstance().EnterDetail(this.id);
}
update(deltaTime: number) {}
}
@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "72a618a4-f0ec-4a35-a867-e0583cd4b931",
"files": [],
"subMetas": {},
"userData": {}
}
@@ -0,0 +1,14 @@
import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;
@ccclass('GirlListPanel')
export class GirlListPanel extends Component {
start() {
}
update(deltaTime: number) {
}
}
@@ -0,0 +1,9 @@
{
"ver": "4.0.24",
"importer": "typescript",
"imported": true,
"uuid": "879c46b0-1dbd-4038-a620-b162fd51034a",
"files": [],
"subMetas": {},
"userData": {}
}