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
195c5296
Commit
195c5296
authored
Jun 24, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
整理一下代码
parent
9e65f492
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
PrizePanel.ts
assets/Scripts/Panels/PrizePanel.ts
+1
-1
RecordScrollListItem.ts
assets/Scripts/Scenes/RecordScene/RecordScrollListItem.ts
+1
-1
No files found.
assets/Scripts/Panels/PrizePanel.ts
View file @
195c5296
...
...
@@ -40,7 +40,7 @@ export default class PrizePanel extends Panel {
const
{
prizeName
,
prizeImg
,
score
}
=
this
.
data
;
this
.
score
.
string
=
`本次
积分
:
${
score
}
`
;
this
.
score
.
string
=
`本次
游园币
:
${
score
}
`
;
this
.
prizeName
.
string
=
strFormat
(
prizeName
,
20
...
...
assets/Scripts/Scenes/RecordScene/RecordScrollListItem.ts
View file @
195c5296
...
...
@@ -9,7 +9,7 @@ export class RecordScrollListItem extends ScrollListItem {
onItemRender
(
data
,
...
param
:
any
[])
{
if
(
Object
.
keys
(
data
).
includes
(
"ifGetPrize"
))
{
this
.
node
.
getChildByName
(
"Title"
).
getComponent
(
Label
).
string
=
`获得
${
data
?.
score
||
0
}
游园
积分
`;
this
.
node
.
getChildByName
(
"Title"
).
getComponent
(
Label
).
string
=
`获得
${
data
?.
score
||
0
}
游园
币
`;
this.node.getChildByName("Time").getComponent(Label).string = `
$
{
dateFormatter
(
data
?.
timestamp
,
"yyyy.MM.dd hh:mm"
)}
`;
if(!!data?.ifGetPrize) {
this.node.getChildByName("Desc").getComponent(Label).color = new Color(255, 5, 0, 255);
...
...
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