退出游戏后打开from代表的网页
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m2s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m2s
This commit is contained in:
parent
d2d2540de0
commit
a3872e1a18
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,4 @@
|
|||||||
import { _decorator, Component, Prefab } from "cc";
|
import { _decorator, Component, Node, Prefab } from "cc";
|
||||||
import {
|
import {
|
||||||
FREE_SPIN_ROLLER_RULE,
|
FREE_SPIN_ROLLER_RULE,
|
||||||
GameInfo,
|
GameInfo,
|
||||||
@ -82,6 +82,9 @@ export class SlotScene extends Component {
|
|||||||
@property(SlotRanking)
|
@property(SlotRanking)
|
||||||
slotRanking: SlotRanking = null;
|
slotRanking: SlotRanking = null;
|
||||||
|
|
||||||
|
@property(Node)
|
||||||
|
gray: Node = null
|
||||||
|
|
||||||
// 游戏数据
|
// 游戏数据
|
||||||
private gameInfo: GameInfo = null;
|
private gameInfo: GameInfo = null;
|
||||||
private spinInfo: any = null;
|
private spinInfo: any = null;
|
||||||
@ -1029,9 +1032,10 @@ export class SlotScene extends Component {
|
|||||||
null,
|
null,
|
||||||
() => {
|
() => {
|
||||||
let fromUrl = getFromUrl();
|
let fromUrl = getFromUrl();
|
||||||
if (fromUrl.length == 0) {
|
if (!fromUrl || fromUrl == "") {
|
||||||
window.close();
|
window.close();
|
||||||
} else {
|
} else {
|
||||||
|
this.gray.active = true
|
||||||
window.location.replace(fromUrl);
|
window.location.replace(fromUrl);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user