Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
翁阳
babycare_xiaoxiao
Commits
4cee9345
Commit
4cee9345
authored
Sep 29, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
asjghdfkaksjhsaft asxjcv bnot6qwuk
parent
619d7f3d
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
158 additions
and
139 deletions
+158
-139
workspace.xml
.idea/workspace.xml
+40
-28
popmartXXL2c.doJoin.json
mock/miniTb/popmartXXL2c.doJoin.json
+2
-1
popmartXXL2c.drawLotteryPrize.json
mock/miniTb/popmartXXL2c.drawLotteryPrize.json
+3
-3
popmartXXL2c.getActivityBaseInfoById.json
mock/miniTb/popmartXXL2c.getActivityBaseInfoById.json
+3
-3
FesRedPrizePanel.ts
src/panels/FesRedPrizePanel.ts
+6
-10
StartPanelPrize.ts
src/panels/StartPanelPrize.ts
+4
-1
TaskPanel.ts
src/panels/TaskPanel.ts
+3
-0
PlayScene.ts
src/scene/PlayScene.ts
+96
-91
MapScene.ts
src/scene/map/MapScene.ts
+0
-2
FesRedShootAni.ts
src/something/anisCall/FesRedShootAni.ts
+1
-0
No files found.
.idea/workspace.xml
View file @
4cee9345
This diff is collapsed.
Click to expand it.
mock/miniTb/popmartXXL2c.doJoin.json
View file @
4cee9345
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
"code"
:
"000000"
,
"code"
:
"000000"
,
"message"
:
"成功"
,
"message"
:
"成功"
,
"data"
:
{
"data"
:
{
"power"
:
100
"power"
:
100
,
"isGiftPrizeLevel"
:
true
}
}
}
}
mock/miniTb/popmartXXL2c.drawLotteryPrize.json
View file @
4cee9345
...
@@ -4,10 +4,10 @@
...
@@ -4,10 +4,10 @@
"message"
:
"成功"
,
"message"
:
"成功"
,
"data"
:
{
"data"
:
{
"_id"
:
""
,
"_id"
:
""
,
"name"
:
""
,
"name"
:
"
aaa
"
,
"type"
:
1
,
"type"
:
1
,
"image"
:
""
,
"image"
:
"
https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png
"
,
"drawStatus"
:
""
,
"drawStatus"
:
""
,
"level"
:
""
"level"
:
"
1
"
}
}
}
}
mock/miniTb/popmartXXL2c.getActivityBaseInfoById.json
View file @
4cee9345
{
{
"success"
:
true
,
"success"
:
true
,
"code"
:
"sit dolor quis"
,
"code"
:
"sit dolor qui
p
s"
,
"message"
:
"nisi amet sunt Lorem"
,
"message"
:
"nis
e
i amet sunt Lorem"
,
"data"
:
{
"data"
:
{
"rule"
:
"测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试"
,
"rule"
:
"测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试"
,
"currentLevel"
:
5
,
"currentLevel"
:
120
,
"power"
:
101
,
"power"
:
101
,
"tools"
:
{
"tools"
:
{
"steps"
:
100
,
"steps"
:
100
,
...
...
src/panels/FesRedPrizePanel.ts
View file @
4cee9345
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
PropType
}
from
"../something/enum/PropType"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
Tools
}
from
"../Tools"
;
import
{
getTbData
,
TbNetName
}
from
"../TaoBaoNet"
;
import
Tween
=
FYGE
.
Tween
;
import
Tween
=
FYGE
.
Tween
;
import
Ease
=
FYGE
.
Ease
;
import
Ease
=
FYGE
.
Ease
;
import
Sprite
=
FYGE
.
Sprite
;
import
Sprite
=
FYGE
.
Sprite
;
import
{
PropType
}
from
"../something/enum/PropType"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
changeScene
}
from
"../../module/ctrls"
;
import
{
MapScene
}
from
"../scene/map/MapScene"
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
Button
=
FYGE
.
Button
;
import
Button
=
FYGE
.
Button
;
import
{
Tools
}
from
"../Tools"
;
const
propImg
=
{
const
propImg
=
{
[
PropType
.
BOOMS
]:
'boomBtn.png'
,
[
PropType
.
BOOMS
]:
'boomBtn.png'
,
...
@@ -21,10 +20,6 @@ export class FesRedPrizePanel extends Panel {
...
@@ -21,10 +20,6 @@ export class FesRedPrizePanel extends Panel {
return
[
'FesRedPrizePanel'
]
return
[
'FesRedPrizePanel'
]
}
}
// get skinName() {
// return "SuccessPrizePanel"
// }
public
showAni
()
{
public
showAni
()
{
if
(
this
.
isShowing
)
return
;
if
(
this
.
isShowing
)
return
;
this
.
isShowing
=
true
;
this
.
isShowing
=
true
;
...
@@ -56,7 +51,8 @@ export class FesRedPrizePanel extends Panel {
...
@@ -56,7 +51,8 @@ export class FesRedPrizePanel extends Panel {
.
addEventListener
(
MouseEvent
.
CLICK
,
this
.
hidePanel
,
this
)
.
addEventListener
(
MouseEvent
.
CLICK
,
this
.
hidePanel
,
this
)
.
position
.
set
(
165
,
1045
);
.
position
.
set
(
165
,
1045
);
this
.
img
=
this
.
addChild
(
new
Sprite
());
const
res
=
getTbData
(
TbNetName
.
drawLotteryPrize
);
this
.
img
=
this
.
addChild
(
Sprite
.
fromUrl
(
res
.
data
.
image
));
this
.
img
.
anchorTexture
.
x
=
0.5
;
this
.
img
.
anchorTexture
.
x
=
0.5
;
this
.
img
.
position
.
set
(
375
,
693
);
this
.
img
.
position
.
set
(
375
,
693
);
this
.
img
.
width
=
this
.
img
.
height
=
252
;
this
.
img
.
width
=
this
.
img
.
height
=
252
;
...
...
src/panels/StartPanelPrize.ts
View file @
4cee9345
...
@@ -89,7 +89,10 @@ export class StartPanelPrize extends Panel {
...
@@ -89,7 +89,10 @@ export class StartPanelPrize extends Panel {
if
(
!
success
)
return
;
if
(
!
success
)
return
;
Tools
.
propInfo
.
power
=
res
.
data
.
power
;
Tools
.
propInfo
.
power
=
res
.
data
.
power
;
changeScene
(
PlayScene
,
{
chapter
:
level
});
changeScene
(
PlayScene
,
{
chapter
:
level
,
isGiftPrizeLevel
:
res
.
data
.
isGiftPrizeLevel
});
this
.
hidePanel
();
this
.
hidePanel
();
}
}
);
);
...
...
src/panels/TaskPanel.ts
View file @
4cee9345
...
@@ -132,11 +132,13 @@ export class TaskPanel extends Panel {
...
@@ -132,11 +132,13 @@ export class TaskPanel extends Panel {
initEvents
()
{
initEvents
()
{
super
.
initEvents
();
super
.
initEvents
();
GDispatcher
.
addEventListener
(
G_EVENT
.
ON_SHOW
,
this
.
updateTask
,
this
);
GDispatcher
.
addEventListener
(
G_EVENT
.
UPDATE_TASK
,
this
.
updateTask
,
this
);
GDispatcher
.
addEventListener
(
G_EVENT
.
UPDATE_TASK
,
this
.
updateTask
,
this
);
}
}
removeEvents
()
{
removeEvents
()
{
super
.
removeEvents
();
super
.
removeEvents
();
GDispatcher
.
removeEventListener
(
G_EVENT
.
ON_SHOW
,
this
.
updateTask
,
this
);
GDispatcher
.
removeEventListener
(
G_EVENT
.
UPDATE_TASK
,
this
.
updateTask
,
this
);
GDispatcher
.
removeEventListener
(
G_EVENT
.
UPDATE_TASK
,
this
.
updateTask
,
this
);
}
}
}
}
...
@@ -167,6 +169,7 @@ class TaskItem extends Item {
...
@@ -167,6 +169,7 @@ class TaskItem extends Item {
));
));
this
.
desc
.
bold
=
true
;
this
.
desc
.
bold
=
true
;
this
.
desc
.
position
.
set
(
145
,
92
);
this
.
desc
.
position
.
set
(
145
,
92
);
}
}
public
initData
(
id
:
number
,
data
:
any
)
{
public
initData
(
id
:
number
,
data
:
any
)
{
...
...
src/scene/PlayScene.ts
View file @
4cee9345
This diff is collapsed.
Click to expand it.
src/scene/map/MapScene.ts
View file @
4cee9345
...
@@ -58,8 +58,6 @@ export class MapScene extends Scene {
...
@@ -58,8 +58,6 @@ export class MapScene extends Scene {
Tools
.
baseInfo
.
loginAddPower
=
false
;
Tools
.
baseInfo
.
loginAddPower
=
false
;
}
}
// showPanel(FesRedPrizePanel);
}
}
private
updateMapCheck
()
{
private
updateMapCheck
()
{
...
...
src/something/anisCall/FesRedShootAni.ts
View file @
4cee9345
...
@@ -40,6 +40,7 @@ export class FesRedShootAni extends FYGE.Container {
...
@@ -40,6 +40,7 @@ export class FesRedShootAni extends FYGE.Container {
}
}
play
(
startP
:
number
[],
ele
:
Element
,
callback
:
Function
)
{
play
(
startP
:
number
[],
ele
:
Element
,
callback
:
Function
)
{
this
.
reset
()
this
.
reset
()
this
.
light
.
visible
=
true
;
this
.
light
.
visible
=
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