退出游戏后打开from代表的网页
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m2s

This commit is contained in:
TJH 2026-07-06 14:50:18 +08:00
parent d2d2540de0
commit a3872e1a18
2 changed files with 285 additions and 127 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,4 @@
import { _decorator, Component, Prefab } from "cc";
import { _decorator, Component, Node, Prefab } from "cc";
import {
FREE_SPIN_ROLLER_RULE,
GameInfo,
@ -82,6 +82,9 @@ export class SlotScene extends Component {
@property(SlotRanking)
slotRanking: SlotRanking = null;
@property(Node)
gray: Node = null
// 游戏数据
private gameInfo: GameInfo = null;
private spinInfo: any = null;
@ -1029,9 +1032,10 @@ export class SlotScene extends Component {
null,
() => {
let fromUrl = getFromUrl();
if (fromUrl.length == 0) {
if (!fromUrl || fromUrl == "") {
window.close();
} else {
this.gray.active = true
window.location.replace(fromUrl);
}
},