Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
ZheShangBank_TaoQuan_20240612
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
ZheShangBank_TaoQuan_20240612
Commits
d46d46e3
Commit
d46d46e3
authored
Jul 16, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理一下代码
parent
2e0a3401
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
HomeScene.ts
assets/Scripts/Scenes/HomeScene.ts
+2
-2
RankScene.ts
assets/Scripts/Scenes/RankScene/RankScene.ts
+2
-2
No files found.
assets/Scripts/Scenes/HomeScene.ts
View file @
d46d46e3
...
...
@@ -115,9 +115,9 @@ export class HomeScene extends Scene {
Tween
.
stopAllByTarget
(
this
.
startBtn
);
}
if
(
rank
===
0
||
rank
===
-
1
)
{
if
(
rank
===
0
)
{
this
.
currentRankLabel
.
string
=
'-'
;
}
else
if
(
rank
>
5000
)
{
}
else
if
(
rank
>
5000
||
rank
===
-
1
)
{
this
.
currentRankLabel
.
string
=
'5000+'
;
}
else
{
this
.
currentRankLabel
.
string
=
`
${
rank
}
`
;
...
...
assets/Scripts/Scenes/RankScene/RankScene.ts
View file @
d46d46e3
...
...
@@ -65,10 +65,10 @@ export class RankScene extends Scene {
/** 排名处理 */
rankIndexFormat
(
rank
)
{
if
(
rank
>
5000
)
{
if
(
rank
==
-
1
||
rank
>
5000
)
{
return
"5000+"
;
}
if
(
rank
==
-
1
||
rank
==
0
||
!!!
rank
)
{
if
(
rank
==
0
||
!!!
rank
)
{
return
"-"
;
}
return
rank
;
...
...
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