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
421cdeba
Commit
421cdeba
authored
Jun 24, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理一下代码
parent
22c90075
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
7 deletions
+17
-7
HomeScene.ts
assets/Scripts/Scenes/HomeScene.ts
+1
-1
RankScrollListItem.ts
assets/Scripts/Scenes/RankScene/RankScrollListItem.ts
+1
-1
RecordScene.ts
assets/Scripts/Scenes/RecordScene/RecordScene.ts
+10
-0
index.html
build/web-mobile/index.html
+5
-5
No files found.
assets/Scripts/Scenes/HomeScene.ts
View file @
421cdeba
...
@@ -101,7 +101,7 @@ export class HomeScene extends Scene {
...
@@ -101,7 +101,7 @@ export class HomeScene extends Scene {
}
=
store
.
homeInfo
||
{};
}
=
store
.
homeInfo
||
{};
this
.
gameCountLabel
.
string
=
`游戏剩余次数:
${
remainGameTime
}
`
;
this
.
gameCountLabel
.
string
=
`游戏剩余次数:
${
remainGameTime
}
`
;
this
.
pointLabel
.
string
=
`
${
rankScore
>
9999999
?
'
999999+'
:
rankScore
}
`
;
this
.
pointLabel
.
string
=
`
${
rankScore
>
9999999
9
?
'99
999999+'
:
rankScore
}
`
;
if
(
remainGameTime
)
{
if
(
remainGameTime
)
{
tween
(
this
.
startBtn
)
tween
(
this
.
startBtn
)
.
repeatForever
(
.
repeatForever
(
...
...
assets/Scripts/Scenes/RankScene/RankScrollListItem.ts
View file @
421cdeba
...
@@ -11,7 +11,7 @@ export class RankScrollListItem extends ScrollListItem {
...
@@ -11,7 +11,7 @@ export class RankScrollListItem extends ScrollListItem {
onItemRender
(
data
,
...
param
:
any
[])
{
onItemRender
(
data
,
...
param
:
any
[])
{
this
.
node
.
getChildByName
(
"Index"
).
getComponent
(
Label
).
string
=
`
${
param
[
0
]
+
1
}
`
;
this
.
node
.
getChildByName
(
"Index"
).
getComponent
(
Label
).
string
=
`
${
param
[
0
]
+
1
}
`
;
this
.
node
.
getChildByName
(
"Nickname"
).
getComponent
(
Label
).
string
=
strFormat
(
data
?.
nickName
,
16
);
this
.
node
.
getChildByName
(
"Nickname"
).
getComponent
(
Label
).
string
=
strFormat
(
data
?.
nickName
,
16
);
this
.
node
.
getChildByName
(
"Credits"
).
getComponent
(
Label
).
string
=
`
${
data
?.
rankScore
>
999999
?
"
999999+"
:
data
?.
rankScore
}
`
this
.
node
.
getChildByName
(
"Credits"
).
getComponent
(
Label
).
string
=
`
${
data
?.
rankScore
>
999999
99
?
"99
999999+"
:
data
?.
rankScore
}
`
}
}
}
}
assets/Scripts/Scenes/RecordScene/RecordScene.ts
View file @
421cdeba
...
@@ -56,6 +56,16 @@ export class RecordScene extends Scene {
...
@@ -56,6 +56,16 @@ export class RecordScene extends Scene {
async
getGameRecordInfo
()
{
async
getGameRecordInfo
()
{
const
res
=
await
sendWebNet
(
WebNetName
.
gameRecord
);
const
res
=
await
sendWebNet
(
WebNetName
.
gameRecord
);
if
(
res
?.
success
)
{
if
(
res
?.
success
)
{
const
list
=
[];
res
?.
data
.
forEach
((
item
)
=>
{
if
(
item
.
prizeId
==
"sp_challenge_times"
||
item
.
prizeId
==
"sp_rich_man"
)
{
return
;
}
list
.
push
(
item
);
});
this
.
recordRender
(
res
?.
data
||
[]);
this
.
recordRender
(
res
?.
data
||
[]);
}
}
}
}
...
...
build/web-mobile/index.html
View file @
421cdeba
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<script
src=
"//yun.duiba.com.cn/polaris/SVGA.Lite.v2.1.1.d3a67cbc13c591c53c6f87ab34c57ce387010374.js"
crossorigin=
"anonymous"
></script>
<script
src=
"//yun.duiba.com.cn/polaris/SVGA.Lite.v2.1.1.d3a67cbc13c591c53c6f87ab34c57ce387010374.js"
crossorigin=
"anonymous"
></script>
<script
src=
"//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"
></script>
<script
src=
"//yun.duiba.com.cn/aurora/assets/2403d1edf2acd15b179306b6ddaa5f0967d78a8f.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/171
8965603979
/style.css"
/>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/171
9196284801
/style.css"
/>
<style>
<style>
.sui-captcha
{
.sui-captcha
{
...
@@ -94,17 +94,17 @@
...
@@ -94,17 +94,17 @@
</div>
</div>
<!-- Polyfills bundle. -->
<!-- Polyfills bundle. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/171
8965603979
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/171
9196284801
/src/polyfills.bundle.js"
charset=
"utf-8"
></script>
<!-- SystemJS support. -->
<!-- SystemJS support. -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/171
8965603979
/src/system.bundle.js"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/171
9196284801
/src/system.bundle.js"
charset=
"utf-8"
></script>
<!-- Import map -->
<!-- Import map -->
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/171
8965603979
/src/import-map.json"
type=
"systemjs-importmap"
charset=
"utf-8"
></script>
<script
src=
"//yun.duiba.com.cn/db_games/ccc_game/template3d/171
9196284801
/src/import-map.json"
type=
"systemjs-importmap"
charset=
"utf-8"
></script>
<script>
<script>
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/171
8965603979
/index.js'
).
catch
(
function
(
err
)
{
System
.
import
(
'//yun.duiba.com.cn/db_games/ccc_game/template3d/171
9196284801
/index.js'
).
catch
(
function
(
err
)
{
console
.
error
(
err
);
console
.
error
(
err
);
})
})
</script>
</script>
...
...
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