Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
car
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
car
Commits
58a1a4ca
Commit
58a1a4ca
authored
May 30, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
7c5a77b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
OverPanel.ts
assets/Scripts/Panels/OverPanel.ts
+8
-0
gameStore.ts
assets/Scripts/store/gameStore.ts
+2
-0
No files found.
assets/Scripts/Panels/OverPanel.ts
View file @
58a1a4ca
...
@@ -3,6 +3,7 @@ import { AudioClipName, AudioMgr } from "db://assets/core/base/AudioMgr";
...
@@ -3,6 +3,7 @@ import { AudioClipName, AudioMgr } from "db://assets/core/base/AudioMgr";
import
Panel
from
"db://assets/core/Module/Panel"
;
import
Panel
from
"db://assets/core/Module/Panel"
;
import
{
changeScene
}
from
"db://assets/core/Module/UIFast"
;
import
{
changeScene
}
from
"db://assets/core/Module/UIFast"
;
import
{
HomeScene
}
from
"db://assets/Scripts/Scenes/HomeScene"
;
import
{
HomeScene
}
from
"db://assets/Scripts/Scenes/HomeScene"
;
import
store
from
"db://assets/Scripts/store/store"
;
const
{
ccclass
,
property
}
=
_decorator
;
const
{
ccclass
,
property
}
=
_decorator
;
...
@@ -23,6 +24,13 @@ export class OverPanel extends Panel {
...
@@ -23,6 +24,13 @@ export class OverPanel extends Panel {
}
}
start
():
void
{
start
():
void
{
this
.
tip
.
string
=
`第
${
this
.
data
.
passLevel
}
关`
;
if
(
store
.
homeInfo
.
freeTimes
)
{
this
.
tip2
.
string
=
`免费次数:
${
store
.
homeInfo
.
freeTimes
}
`
;
}
else
{
this
.
tip2
.
string
=
`
${
store
.
homeInfo
.
gameCreditsEach
}
积分/次`
;
}
}
}
...
...
assets/Scripts/store/gameStore.ts
View file @
58a1a4ca
...
@@ -78,6 +78,8 @@ class GameStore {
...
@@ -78,6 +78,8 @@ class GameStore {
if
(
!
success
)
return
false
;
if
(
!
success
)
return
false
;
await
store
.
updateIndex
();
if
(
data
.
boxNum
)
{
if
(
data
.
boxNum
)
{
showPanel
(
SucPanel
,
data
);
showPanel
(
SucPanel
,
data
);
}
else
{
}
else
{
...
...
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