Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
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
wildfirecode13
wfc13
Commits
4711eb01
Commit
4711eb01
authored
Aug 16, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
381060c5
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
130 additions
and
21 deletions
+130
-21
drawPrize.do.json
project/mock/webNet/dazzle/drawPrize.do.json
+25
-12
index.do.json
project/mock/webNet/dazzle/index.do.json
+93
-2
index_prizeitembg.png
project/resource/common/index_prizeitembg.png
+0
-0
ResJson.ts
project/src/ResJson.ts
+1
-1
cost.ts
project/src/panels/cost.ts
+5
-2
getTimes.ts
project/src/panels/getTimes.ts
+2
-2
IndexScene.ts
project/src/scenes/IndexScene.ts
+1
-1
ScrollItem.ts
project/src/scenes/ScrollItem.ts
+3
-1
No files found.
project/mock/webNet/dazzle/drawPrize.do.json
View file @
4711eb01
...
...
@@ -5,19 +5,32 @@
"options"
:
[
{
"extra"
:
null
,
"optionId"
:
"thanks"
,
"optionImg"
:
null
,
"optionName"
:
"谢谢参与"
,
"position"
:
null
,
"prizeId"
:
"thanks"
,
"prizeType"
:
0
,
"ruleId"
:
"ru_1"
,
"sendCount"
:
1
,
"url"
:
null
,
"userRecordId"
:
null
"optionId"
:
"et esse laborum"
,
"optionImg"
:
"https://yun.duiba.com.cn/db_games/sxbank.png"
,
"optionName"
:
"aliquip dolore qui nulla"
,
"position"
:
-13810392
,
"prizeId"
:
"non labore eiusmod consequat"
,
"prizeType"
:
-25600732
,
"ruleId"
:
"fugiat minim in adipisicing"
,
"sendCount"
:
3860338
,
"url"
:
"eu veniam ipsum tempor"
,
"userRecordId"
:
-15254782
},
{
"extra"
:
null
,
"optionId"
:
"et esse laborum"
,
"optionImg"
:
"https://yun.duiba.com.cn/db_games/sxbank.png"
,
"optionName"
:
"aliquip dolore qui nulla"
,
"position"
:
-13810392
,
"prizeId"
:
"non labore eiusmod consequat"
,
"prizeType"
:
-25600732
,
"ruleId"
:
"fugiat minim in adipisicing"
,
"sendCount"
:
3860338
,
"url"
:
"eu veniam ipsum tempor"
,
"userRecordId"
:
-15254782
}
]
},
"message"
:
null
,
"success"
:
true
"message"
:
"12312312"
,
"success"
:
0
}
\ No newline at end of file
project/mock/webNet/dazzle/index.do.json
View file @
4711eb01
...
...
@@ -2,6 +2,97 @@
"code"
:
null
,
"data"
:
{
"options"
:
[
{
"degree"
:
"10"
,
"icon"
:
"//yun.dui88.com/projectxh5/credit-250-250.png"
,
"icon2"
:
null
,
"id"
:
"oca13f7f4"
,
"index"
:
1
,
"name"
:
"积分"
,
"prizeId"
:
"sss_2"
,
"prizeType"
:
2
,
"refId"
:
""
,
"refType"
:
"increase-credits"
,
"sendCount"
:
1
},
{
"degree"
:
"10"
,
"icon"
:
"//yun.dui88.com/projectxh5/credit-250-250.png"
,
"icon2"
:
null
,
"id"
:
"oca13f7f4"
,
"index"
:
1
,
"name"
:
"积分"
,
"prizeId"
:
"sss_2"
,
"prizeType"
:
2
,
"refId"
:
""
,
"refType"
:
"increase-credits"
,
"sendCount"
:
1
},
{
"degree"
:
"10"
,
"icon"
:
"//yun.dui88.com/projectxh5/credit-250-250.png"
,
"icon2"
:
null
,
"id"
:
"oca13f7f4"
,
"index"
:
1
,
"name"
:
"积分"
,
"prizeId"
:
"sss_2"
,
"prizeType"
:
2
,
"refId"
:
""
,
"refType"
:
"increase-credits"
,
"sendCount"
:
1
},
{
"degree"
:
"10"
,
"icon"
:
"//yun.dui88.com/projectxh5/credit-250-250.png"
,
"icon2"
:
null
,
"id"
:
"oca13f7f4"
,
"index"
:
1
,
"name"
:
"积分"
,
"prizeId"
:
"sss_2"
,
"prizeType"
:
2
,
"refId"
:
""
,
"refType"
:
"increase-credits"
,
"sendCount"
:
1
},
{
"degree"
:
"10"
,
"icon"
:
"//yun.dui88.com/projectxh5/credit-250-250.png"
,
"icon2"
:
null
,
"id"
:
"oca13f7f4"
,
"index"
:
1
,
"name"
:
"积分"
,
"prizeId"
:
"sss_2"
,
"prizeType"
:
2
,
"refId"
:
""
,
"refType"
:
"increase-credits"
,
"sendCount"
:
1
},
{
"degree"
:
"10"
,
"icon"
:
"//yun.dui88.com/projectxh5/credit-250-250.png"
,
"icon2"
:
null
,
"id"
:
"oca13f7f4"
,
"index"
:
1
,
"name"
:
"积分"
,
"prizeId"
:
"sss_2"
,
"prizeType"
:
2
,
"refId"
:
""
,
"refType"
:
"increase-credits"
,
"sendCount"
:
1
},
{
"degree"
:
"10"
,
"icon"
:
"//yun.dui88.com/projectxh5/credit-250-250.png"
,
"icon2"
:
null
,
"id"
:
"oca13f7f4"
,
"index"
:
1
,
"name"
:
"积分"
,
"prizeId"
:
"sss_2"
,
"prizeType"
:
2
,
"refId"
:
""
,
"refType"
:
"increase-credits"
,
"sendCount"
:
1
},
{
"degree"
:
"10"
,
"icon"
:
"//yun.dui88.com/projectxh5/credit-250-250.png"
,
...
...
@@ -29,8 +120,8 @@
"sendCount"
:
1
}
],
"surplusCount"
:
1
0
,
"credits"
:
235
,
"surplusCount"
:
1
,
"credits"
:
111111
,
"needCredits"
:
110
,
"type"
:
1
,
"isMember"
:
1
...
...
project/resource/common/index_prizeitembg.png
View replaced file @
381060c5
View file @
4711eb01
8.66 KB
|
W:
|
H:
6.98 KB
|
W:
|
H:
2-up
Swipe
Onion skin
project/src/ResJson.ts
View file @
4711eb01
...
...
@@ -720,5 +720,5 @@ export const ResJson = {
}
}
],
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/16290
83454
/resource/"
"path"
:
"https://yun.duiba.com.cn/db_games/activity/template/16290
96619
/resource/"
}
\ No newline at end of file
project/src/panels/cost.ts
View file @
4711eb01
...
...
@@ -15,14 +15,15 @@ let section;
export
class
CostPanel
extends
Panel
{
start
()
{
super
.
start
();
const
cost
=
1234567890
;
const
indexResult
=
getWebData
(
WebNetName
.
index
);
const
cost
=
indexResult
.
data
.
needCredits
;
getObject
(
this
,
"cost_tips"
).
text
=
`消耗
${
cost
}
积分拆开1个盲盒`
;
}
cost_open
()
{
sendLog
(
"click"
,
1
);
this
.
dispatchEvent
(
"stopIndexEnterFrame"
,
{});
this
.
hidePanel
();
this
.
getPrize
();
}
...
...
@@ -37,6 +38,7 @@ export class CostPanel extends Panel {
if
(
indexResult
.
data
.
type
==
1
)
{
params
.
credits
=
indexResult
.
data
.
needCredits
;
result
=
await
sendWebNet
(
WebNetName
.
getCreditCost
,
params
);
if
(
!
result
.
success
)
return
;
prizeData
=
await
sendWebNetWithToken
(
WebNetName
.
drawPrize
,
{
ticket
:
result
.
data
});
}
else
{
...
...
@@ -49,6 +51,7 @@ export class CostPanel extends Panel {
if
(
prizeData
&&
prizeData
.
success
)
{
if
(
prizeData
.
data
&&
prizeData
.
data
.
options
)
{
this
.
hidePanel
();
if
(
prizeData
.
data
.
options
[
0
].
optionId
==
"thanks"
)
{
showPanel
(
NoPrizePanel
)
}
else
{
...
...
project/src/panels/getTimes.ts
View file @
4711eb01
...
...
@@ -36,8 +36,8 @@ export class getTimesPanel extends Panel {
centerTextField
(
getObject
(
this
,
'getTimes_tips2'
),
496
);
centerTextField
(
getObject
(
this
,
'getTimes_tips1'
),
496
);
getObject
(
this
,
'getTimes_tips2'
).
text
=
`
12312313123
次免费拆盒机会`
;
getObject
(
this
,
'getTimes_tips1'
).
text
=
`最多可增加1
1231231231
次拆盒机会/天`
;
getObject
(
this
,
'getTimes_tips2'
).
text
=
`
一
次免费拆盒机会`
;
getObject
(
this
,
'getTimes_tips1'
).
text
=
`最多可增加1次拆盒机会/天`
;
}
initEvents
()
{
...
...
project/src/scenes/IndexScene.ts
View file @
4711eb01
...
...
@@ -69,7 +69,7 @@ export class IndexScene extends Scene {
this
.
addChild
(
hand
);
this
.
getIndex
();
const
result
=
getWebData
(
WebNetName
.
index
)
const
array
=
[
'//yun.duiba.com.cn/spark/assets/1398924a1b804f0f20f9d3e16ed3158c2b3d686b.png'
,
'//yun.duiba.com.cn/spark/assets/1398924a1b804f0f20f9d3e16ed3158c2b3d686b.png'
,
'//yun.duiba.com.cn/spark/assets/1398924a1b804f0f20f9d3e16ed3158c2b3d686b.png'
,
'//yun.duiba.com.cn/spark/assets/1398924a1b804f0f20f9d3e16ed3158c2b3d686b.png'
,
'//yun.duiba.com.cn/spark/assets/1398924a1b804f0f20f9d3e16ed3158c2b3d686b.png'
]
;
const
array
=
result
.
data
.
options
.
filter
(
i
=>
i
.
id
!=
'thanks'
)
;
list
.
updateData
(
array
);
hand
&&
FYGE
.
Tween
.
get
(
hand
,
{
loop
:
true
}).
to
({
scaleX
:
1.5
,
scaleY
:
1.5
},
1000
).
to
({
scaleX
:
1
,
scaleY
:
1
},
1000
);
this
.
stage
.
addEventListener
(
"restartEnterFrame"
,
this
.
onRestartFrame
,
this
);
...
...
project/src/scenes/ScrollItem.ts
View file @
4711eb01
...
...
@@ -12,7 +12,9 @@ export class ScrollItem extends Item {
this
.
addChild
(
contanier
);
FYGE
.
GlobalLoader
.
loadImage
((
e
,
image
)
=>
{
const
item
=
this
.
addChild
(
new
FYGE
.
Sprite
(
FYGE
.
Texture
.
from
(
image
)));
},
data
);
item
.
width
=
item
.
height
=
100
;
item
.
x
=
item
.
y
=
11
;
},
data
.
icon
);
}
}
...
...
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