Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
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
MingSnake_241120
Commits
3399283f
Commit
3399283f
authored
Dec 12, 2024
by
陈子煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
158b4911
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
49 deletions
+30
-49
GetPrize.prefab
assets/Bundles/GetPrize/GetPrize.prefab
+13
-13
prize.prefab
assets/Bundles/GetPrize/prize.prefab
+3
-3
GetPrize.ts
assets/Scripts/Panels/GetPrize.ts
+8
-3
BlessingBagPage.ts
assets/Scripts/Scenes/BlessingBagPage.ts
+0
-4
draw.do.json
preview-template/mock/bag/draw.do.json
+0
-24
index.do.json
preview-template/mock/home/index.do.json
+6
-2
No files found.
assets/Bundles/GetPrize/GetPrize.prefab
View file @
3399283f
...
@@ -261,7 +261,7 @@
...
@@ -261,7 +261,7 @@
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "
04I8movZRGh6it4HdZK1pz
"
"fileId": "
f8qG5jf81JLqFqKQV/u9Wy
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -303,7 +303,7 @@
...
@@ -303,7 +303,7 @@
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "
54zfr8gEFFqIGzHDHuOZO
v"
"fileId": "
35BdpEXzlE/YiBc/5/I93
v"
},
},
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
...
@@ -313,7 +313,7 @@
...
@@ -313,7 +313,7 @@
"asset": {
"asset": {
"__id__": 0
"__id__": 0
},
},
"fileId": "
c2wbIoZDpPQ6wEtGhKXe/Y
",
"fileId": "
034RYhHLRDDbCHhVIEA6PI
",
"instance": null,
"instance": null,
"targetOverrides": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
"nestedPrefabInstanceRoots": null
...
@@ -394,7 +394,7 @@
...
@@ -394,7 +394,7 @@
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "
bb5sfZQpBOFrc3nMQn14Qk
"
"fileId": "
31qpVzYZhDFI1eZI62v3bh
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -436,7 +436,7 @@
...
@@ -436,7 +436,7 @@
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "
9aG3DRxaRJ/4eox648dQMw
"
"fileId": "
41QSxbS/lC94Pb3aN4o6GQ
"
},
},
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
...
@@ -446,7 +446,7 @@
...
@@ -446,7 +446,7 @@
"asset": {
"asset": {
"__id__": 0
"__id__": 0
},
},
"fileId": "
c479oPyi5HzZRBRrOmLcir
",
"fileId": "
3cwQJoHv5JjbnGQE7kpxOk
",
"instance": null,
"instance": null,
"targetOverrides": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
"nestedPrefabInstanceRoots": null
...
@@ -527,7 +527,7 @@
...
@@ -527,7 +527,7 @@
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "
4ejjbbgQdLL7jUIuY06yOL
"
"fileId": "
b7gw6u8W5Ee4dOpTt21uP7
"
},
},
{
{
"__type__": "cc.Sprite",
"__type__": "cc.Sprite",
...
@@ -569,7 +569,7 @@
...
@@ -569,7 +569,7 @@
},
},
{
{
"__type__": "cc.CompPrefabInfo",
"__type__": "cc.CompPrefabInfo",
"fileId": "a5
coQFfaVI1pWBSmPWokHj
"
"fileId": "a5
s4sBVYxJd5cfMUH1odwL
"
},
},
{
{
"__type__": "cc.PrefabInfo",
"__type__": "cc.PrefabInfo",
...
@@ -579,7 +579,7 @@
...
@@ -579,7 +579,7 @@
"asset": {
"asset": {
"__id__": 0
"__id__": 0
},
},
"fileId": "
e5NKXwjkdCXoIxPe8qkE5x
",
"fileId": "
2ef1tCDZRNhaeI+StURv8/
",
"instance": null,
"instance": null,
"targetOverrides": null,
"targetOverrides": null,
"nestedPrefabInstanceRoots": null
"nestedPrefabInstanceRoots": null
...
@@ -1110,7 +1110,7 @@
...
@@ -1110,7 +1110,7 @@
"_lpos": {
"_lpos": {
"__type__": "cc.Vec3",
"__type__": "cc.Vec3",
"x": 0,
"x": 0,
"y":
0
,
"y":
-5.684341886080802e-14
,
"z": 0
"z": 0
},
},
"_lrot": {
"_lrot": {
...
@@ -1180,8 +1180,8 @@
...
@@ -1180,8 +1180,8 @@
"_target": null,
"_target": null,
"_left": 16.015625,
"_left": 16.015625,
"_right": 515,
"_right": 515,
"_top": 90,
"_top": 90
.00000000000006
,
"_bottom":
90
,
"_bottom":
89.99999999999994
,
"_horizontalCenter": 0,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsLeft": true,
...
@@ -1193,7 +1193,7 @@
...
@@ -1193,7 +1193,7 @@
"_originalWidth": 800,
"_originalWidth": 800,
"_originalHeight": 400,
"_originalHeight": 400,
"_alignMode": 2,
"_alignMode": 2,
"_lockFlags":
0
,
"_lockFlags":
16
,
"_id": ""
"_id": ""
},
},
{
{
...
...
assets/Bundles/GetPrize/prize.prefab
View file @
3399283f
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
"_contentSize": {
"_contentSize": {
"__type__": "cc.Size",
"__type__": "cc.Size",
"width": 200,
"width": 200,
"height": 5
0.4
"height": 5
5
},
},
"_anchorPoint": {
"_anchorPoint": {
"__type__": "cc.Vec2",
"__type__": "cc.Vec2",
...
@@ -168,11 +168,11 @@
...
@@ -168,11 +168,11 @@
},
},
"_string": "1111",
"_string": "1111",
"_horizontalAlign": 1,
"_horizontalAlign": 1,
"_verticalAlign":
1
,
"_verticalAlign":
0
,
"_actualFontSize": 28,
"_actualFontSize": 28,
"_fontSize": 28,
"_fontSize": 28,
"_fontFamily": "Arial",
"_fontFamily": "Arial",
"_lineHeight":
40
,
"_lineHeight":
26
,
"_overflow": 1,
"_overflow": 1,
"_enableWrapText": true,
"_enableWrapText": true,
"_font": null,
"_font": null,
...
...
assets/Scripts/Panels/GetPrize.ts
View file @
3399283f
...
@@ -37,13 +37,18 @@ export default class GetPrize extends Panel {
...
@@ -37,13 +37,18 @@ export default class GetPrize extends Panel {
async
start
()
{
async
start
()
{
const
{
data
=
this
.
data
}
=
this
.
data
const
{
data
=
this
.
data
}
=
this
.
data
console
.
log
(
data
,
112233
)
console
.
log
(
data
)
console
.
log
(
data
.
prizeName
,
22222
)
data
.
map
((
item
,
index
)
=>
{
data
.
map
((
item
,
index
)
=>
{
const
prize
=
instantiate
(
this
.
prizePrefab
)
const
prize
=
instantiate
(
this
.
prizePrefab
)
this
.
content
.
addChild
(
prize
)
this
.
content
.
addChild
(
prize
)
const
newY
=
this
.
content
.
position
.
y
;
this
.
content
.
position
const
prizeName
=
prize
.
getChildByName
(
"Label"
)
const
prizeName
=
prize
.
getChildByName
(
"Label"
)
prizeName
.
getComponent
(
Label
).
string
=
item
.
prizeName
prizeName
.
getComponent
(
Label
).
string
=
item
.
prizeName
prize
.
getComponent
(
Sprite
).
spriteFrame
=
item
.
prizeImg
prize
.
getComponent
(
Sprite
).
spriteFrame
=
item
.
prizeImg
...
...
assets/Scripts/Scenes/BlessingBagPage.ts
View file @
3399283f
...
@@ -173,8 +173,6 @@ export class BlessingBagPage extends Scene {
...
@@ -173,8 +173,6 @@ export class BlessingBagPage extends Scene {
prizeName
.
getComponent
(
Label
).
string
=
item
.
prizeName
prizeName
.
getComponent
(
Label
).
string
=
item
.
prizeName
})
})
}
}
})
})
...
@@ -202,8 +200,6 @@ export class BlessingBagPage extends Scene {
...
@@ -202,8 +200,6 @@ export class BlessingBagPage extends Scene {
Label_task_name
.
getComponent
(
Label
).
string
=
`
${
item
.
title
}
(
${
item
.
completedSize
}
/
${
item
.
intervalLimitSize
}
)`
Label_task_name
.
getComponent
(
Label
).
string
=
`
${
item
.
title
}
(
${
item
.
completedSize
}
/
${
item
.
intervalLimitSize
}
)`
}
}
const
bag_num
=
EarnList
.
getChildByName
(
"bag_num"
)
const
bag_num
=
EarnList
.
getChildByName
(
"bag_num"
)
bag_num
.
getComponent
(
Label
).
string
=
item
.
subTitle
bag_num
.
getComponent
(
Label
).
string
=
item
.
subTitle
...
...
preview-template/mock/bag/draw.do.json
View file @
3399283f
...
@@ -8,30 +8,6 @@
...
@@ -8,30 +8,6 @@
"prizeImg"
:
"dolore laboris"
,
"prizeImg"
:
"dolore laboris"
,
"prizeName"
:
"minim ut officia fugiat"
,
"prizeName"
:
"minim ut officia fugiat"
,
"sendCount"
:
"quis fugiat dolor amet sint"
"sendCount"
:
"quis fugiat dolor amet sint"
},
{
"prizeId"
:
"cillum"
,
"prizeImg"
:
"est"
,
"prizeName"
:
"commodo elit"
,
"sendCount"
:
"labore nisi culpa ad"
},
{
"prizeId"
:
"culpa cupidatat sed qui"
,
"prizeImg"
:
"velit dolor minim aute Excepteur"
,
"prizeName"
:
"cillum"
,
"sendCount"
:
"pariatur aute tempor"
},
{
"prizeId"
:
"fugiat veniam"
,
"prizeImg"
:
"sed"
,
"prizeName"
:
"et id veniam consectetur aliquip"
,
"sendCount"
:
"dolore eu cillum velit laboris"
},
{
"prizeId"
:
"aute ut deserunt eiusmod"
,
"prizeImg"
:
"deserunt do dolor ea"
,
"prizeName"
:
"sit esse sint do consequat"
,
"sendCount"
:
"et exercitation sint dolore cillum"
}
}
]
]
},
},
...
...
preview-template/mock/home/index.do.json
View file @
3399283f
...
@@ -4,7 +4,11 @@
...
@@ -4,7 +4,11 @@
"actEndTime"
:
1735638689560
,
"actEndTime"
:
1735638689560
,
"actStartTime"
:
1733565086149
,
"actStartTime"
:
1733565086149
,
"avatar"
:
null
,
"avatar"
:
null
,
"bagPopVO"
:
null
,
"bagPopVO"
:
{
"bagNum"
:
42900739.4793739
,
"bagImg"
:
"sunt esse ea Duis"
,
"bagName"
:
"sint"
},
"benefitDesc"
:
"规则权益文案"
,
"benefitDesc"
:
"规则权益文案"
,
"continueSignDays"
:
1
,
"continueSignDays"
:
1
,
"creditsNum"
:
1011347
,
"creditsNum"
:
1011347
,
...
@@ -33,7 +37,7 @@
...
@@ -33,7 +37,7 @@
}
}
],
],
"rankPopList"
:
[],
"rankPopList"
:
[],
"signPopFlag"
:
fals
e
"signPopFlag"
:
tru
e
},
},
"message"
:
null
,
"message"
:
null
,
"success"
:
true
,
"success"
:
true
,
...
...
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