历史记录详情的加载逻辑修改
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m19s

This commit is contained in:
TJH 2026-05-28 10:33:10 +08:00
parent c6cc9873f1
commit 4f14628521
4 changed files with 1529 additions and 1129 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
import { _decorator, Button, Color, Component, EventHandler, EventMouse, instantiate, isValid, JsonAsset, Label, math, Node, Prefab, ScrollView, sp, tween, UITransform, Vec3 } from 'cc'; import { _decorator, Button, Color, Component, EventHandler, EventMouse, instantiate, isValid, JsonAsset, Label, math, Node, Prefab, ScrollView, sp, tween, UIOpacity, UITransform, Vec3 } from 'cc';
import { getCsymbol, getHistory, getHistoryDetails, getLanguage } from 'db://assets/Main/Scripts/main/comm'; import { getCsymbol, getHistory, getHistoryDetails, getLanguage } from 'db://assets/Main/Scripts/main/comm';
import { fixNum, getTimezoneOffsetString, getTranslate, hideAllChildren, hideToBottom, showAllChildren, updateLang } from './Tools'; import { fixNum, getTimezoneOffsetString, getTranslate, hideAllChildren, hideToBottom, showAllChildren, updateLang } from './Tools';
const { ccclass, property } = _decorator; const { ccclass, property } = _decorator;
@ -381,6 +381,7 @@ export class History extends Component {
console.log("clickItem, roundId = ", roundId) console.log("clickItem, roundId = ", roundId)
const history_detail = instantiate(this.history_detail) const history_detail = instantiate(this.history_detail)
history_detail.getComponent(UIOpacity).opacity = 0
this.node_detail.addChild(history_detail) this.node_detail.addChild(history_detail)
let res = await getHistoryDetails({ let res = await getHistoryDetails({
@ -393,6 +394,8 @@ export class History extends Component {
const self = this const self = this
history_detail.position = new Vec3(1080, 0) history_detail.position = new Vec3(1080, 0)
history_detail.getComponent(UIOpacity).opacity = 255
tween(history_detail).to(0.2, { position: new Vec3(0, 0) }) tween(history_detail).to(0.2, { position: new Vec3(0, 0) })
.call(() => { .call(() => {
self.scheduleOnce(() => { comp.entryFinish() }) self.scheduleOnce(() => { comp.entryFinish() })

View File

@ -759,15 +759,16 @@ export class HistoryDetail extends Component {
showLoading() { showLoading() {
this.loading.active = true this.loading.active = true
let sk = this.loading.getComponent(sp.Skeleton) let sk = this.loading.getComponent(sp.Skeleton)
sk.paused = false // sk.paused = false
sk.loop = true // sk.loop = true
sk.setAnimation(0, 'loadingLoop')
} }
hideLoading() { hideLoading() {
let sk = this.loading.getComponent(sp.Skeleton) let sk = this.loading.getComponent(sp.Skeleton)
sk.paused = true // sk.paused = true
sk.loop = false // sk.loop = false
sk.clearAnimations()
this.loading.active = false this.loading.active = false
} }