Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kww_dayDayGetCredits_250512
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
kww_dayDayGetCredits_250512
Commits
9a403c19
Commit
9a403c19
authored
May 19, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
6b50108c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
project.settings.json
project.settings.json
+1
-1
Top.tsx
src/pages/HomePage/Top/Top.tsx
+9
-0
No files found.
project.settings.json
View file @
9a403c19
{
"proSetting"
:{
"projectxIDs"
:{
"testId"
:[{
"label"
:
"test"
,
"value"
:
"pd71a2911"
}],
"prodId"
:[]},
"skinVariables"
:[],
"mockSetting"
:{
"projectId"
:
""
,
"pageId"
:
""
}},
"envSetting"
:{},
"psdSetting"
:{
"psdFSSetting"
:
true
,
"psdCenterSetting"
:
true
}}
{
"proSetting"
:{
"projectxIDs"
:{
"testId"
:[{
"label"
:
"test"
,
"value"
:
"pd71a2911"
}
,{
"label"
:
"test2"
,
"value"
:
"p960d47b7"
}
],
"prodId"
:[]},
"skinVariables"
:[],
"mockSetting"
:{
"projectId"
:
""
,
"pageId"
:
""
}},
"envSetting"
:{},
"psdSetting"
:{
"psdFSSetting"
:
true
,
"psdCenterSetting"
:
true
}}
src/pages/HomePage/Top/Top.tsx
View file @
9a403c19
...
@@ -14,6 +14,7 @@ import "./base/mix.ts";
...
@@ -14,6 +14,7 @@ import "./base/mix.ts";
import
handSvga
from
"@/assets/svga/3牌子转动.svga"
;
import
handSvga
from
"@/assets/svga/3牌子转动.svga"
;
import
{
initDevtools
}
from
'@pixi/devtools'
;
import
{
initDevtools
}
from
'@pixi/devtools'
;
import
{
unwatchPageVisibility
,
watchPageVisibility
}
from
"@/core/page-visibility-notify.ts"
;
import
.
meta
.
env
.
DEV
&&
initDevtools
({});
import
.
meta
.
env
.
DEV
&&
initDevtools
({});
export
function
getApp
():
Application
{
export
function
getApp
():
Application
{
...
@@ -31,9 +32,11 @@ class Top extends React.Component<any, any> {
...
@@ -31,9 +32,11 @@ class Top extends React.Component<any, any> {
async
componentDidMount
()
{
async
componentDidMount
()
{
await
initBundle
();
await
initBundle
();
await
this
.
initStage
();
await
this
.
initStage
();
watchPageVisibility
(
this
.
pageVisibilityChange
);
}
}
componentWillUnmount
()
{
componentWillUnmount
()
{
unwatchPageVisibility
(
this
.
pageVisibilityChange
);
Tween
.
removeAllTweens
();
Tween
.
removeAllTweens
();
this
.
app
.
ticker
.
remove
(
this
.
onUpdate
);
this
.
app
.
ticker
.
remove
(
this
.
onUpdate
);
this
.
game
.
destroy
({
this
.
game
.
destroy
({
...
@@ -43,6 +46,12 @@ class Top extends React.Component<any, any> {
...
@@ -43,6 +46,12 @@ class Top extends React.Component<any, any> {
});
});
}
}
pageVisibilityChange
=
(
visible
)
=>
{
if
(
visible
)
{
store
.
updateIndex
();
}
}
async
initStage
()
{
async
initStage
()
{
// if (!gameCanvas) {
// if (!gameCanvas) {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment