This commit is contained in:
2025-09-21 14:28:17 +08:00
parent 11e8e516b7
commit d823fa9083
16 changed files with 635 additions and 701 deletions
@@ -64,7 +64,7 @@ export class PastGirlListItem extends Component {
);
}
refreshData(girlId: number, baseNode: Node) {
refreshData(girlId: number, baseNode: Node):number {
if (!this.stars) {
this.stars = this.starParent.getComponentsInChildren(Sprite);
}
@@ -118,7 +118,7 @@ export class PastGirlListItem extends Component {
}
// 显示最近聊天时间
this.updateLastChatTime();
return this.updateLastChatTime();
}
private getLastChatTime(id: number): number | null {
@@ -126,9 +126,10 @@ export class PastGirlListItem extends Component {
}
// 更新最近聊天时间显示
private updateLastChatTime() {
private updateLastChatTime():number {
const lastTime = this.getLastChatTime(this.id);
this.lastChatTime.string = Utils.formatChatTime(lastTime);
return lastTime;
}
reset() {