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
4aac4764
Commit
4aac4764
authored
Feb 20, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m
parent
ed4ae4d1
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
7 deletions
+23
-7
workspace.xml
.idea/workspace.xml
+13
-2
feile.getActivityBaseInfoById.json
mock/miniTb/feile.getActivityBaseInfoById.json
+1
-1
LotteryPanel.ts
src/panels/LotteryPanel.ts
+6
-1
SuccessNoPrizePanel.ts
src/panels/SuccessNoPrizePanel.ts
+2
-2
MapUI.ts
src/scene/map/MapUI.ts
+1
-1
No files found.
.idea/workspace.xml
View file @
4aac4764
...
@@ -3,6 +3,10 @@
...
@@ -3,6 +3,10 @@
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"0d3cb18d-e144-41a0-bc8b-4877c2e1fef1"
name=
"默认的"
comment=
""
>
<list
default=
"true"
id=
"0d3cb18d-e144-41a0-bc8b-4877c2e1fef1"
name=
"默认的"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/feile.getActivityBaseInfoById.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/feile.getActivityBaseInfoById.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/LotteryPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/LotteryPanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/SuccessNoPrizePanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/SuccessNoPrizePanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/map/MapUI.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapUI.ts"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
@@ -129,7 +133,7 @@
...
@@ -129,7 +133,7 @@
<workItem
from=
"1612577003915"
duration=
"21094000"
/>
<workItem
from=
"1612577003915"
duration=
"21094000"
/>
<workItem
from=
"1612662929222"
duration=
"40609000"
/>
<workItem
from=
"1612662929222"
duration=
"40609000"
/>
<workItem
from=
"1613698993022"
duration=
"22309000"
/>
<workItem
from=
"1613698993022"
duration=
"22309000"
/>
<workItem
from=
"1613785579125"
duration=
"
6509
000"
/>
<workItem
from=
"1613785579125"
duration=
"
7288
000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<created>
1612581213298
</created>
<created>
1612581213298
</created>
...
@@ -341,7 +345,14 @@
...
@@ -341,7 +345,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1613792877469
</updated>
<updated>
1613792877469
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"31"
/>
<task
id=
"LOCAL-00031"
summary=
"m"
>
<created>
1613792960890
</created>
<option
name=
"number"
value=
"00031"
/>
<option
name=
"presentableId"
value=
"LOCAL-00031"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1613792960890
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"32"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
mock/miniTb/feile.getActivityBaseInfoById.json
View file @
4aac4764
{
{
"code"
:
"000000"
,
"code"
:
"000000"
,
"data"
:
{
"data"
:
{
"currentLevel"
:
1
,
"currentLevel"
:
99
,
"topLevelVisitSuccess"
:
true
,
"topLevelVisitSuccess"
:
true
,
"isDrawTopLevelPrize"
:
false
,
"isDrawTopLevelPrize"
:
false
,
"power"
:
10
,
"power"
:
10
,
...
...
src/panels/LotteryPanel.ts
View file @
4aac4764
...
@@ -44,7 +44,6 @@ export class LotteryPanel extends Panel {
...
@@ -44,7 +44,6 @@ export class LotteryPanel extends Panel {
this
.
addChild
(
new
FYGE
.
Sprite
(
RES
.
getRes
(
"lotteryReturnBtn.png"
)))
this
.
addChild
(
new
FYGE
.
Sprite
(
RES
.
getRes
(
"lotteryReturnBtn.png"
)))
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
.
addEventListener
(
FYGE
.
MouseEvent
.
CLICK
,
()
=>
{
this
.
hidePanel
();
this
.
hidePanel
();
changeScene
(
MapScene
);
},
this
)
},
this
)
.
position
.
set
(
0
,
250
)
.
position
.
set
(
0
,
250
)
//刷新奖品列表和摇奖列表
//刷新奖品列表和摇奖列表
...
@@ -70,6 +69,7 @@ export class LotteryPanel extends Panel {
...
@@ -70,6 +69,7 @@ export class LotteryPanel extends Panel {
}
else
{
}
else
{
showToast
(
'奖品发放失败
\
n请前往我的奖品处进行处理'
);
showToast
(
'奖品发放失败
\
n请前往我的奖品处进行处理'
);
}
}
this
.
data
.
callFun
&&
this
.
data
.
callFun
();
this
.
hidePanel
();
this
.
hidePanel
();
},
true
},
true
);
);
...
@@ -94,6 +94,11 @@ export class LotteryPanel extends Panel {
...
@@ -94,6 +94,11 @@ export class LotteryPanel extends Panel {
}
}
}
}
hidePanel
()
{
this
.
data
.
callFun
&&
this
.
data
.
callFun
();
super
.
hidePanel
();
}
async
updatePrizes
()
{
async
updatePrizes
()
{
showWaiting
();
showWaiting
();
const
{
data
:
prizeList
}
=
await
sendTbNet
(
TbNetName
.
getTopLevelPrizes
/*, { level: this.data.level }*/
);
const
{
data
:
prizeList
}
=
await
sendTbNet
(
TbNetName
.
getTopLevelPrizes
/*, { level: this.data.level }*/
);
...
...
src/panels/SuccessNoPrizePanel.ts
View file @
4aac4764
...
@@ -3,13 +3,13 @@ import { Tools } from "../Tools";
...
@@ -3,13 +3,13 @@ import { Tools } from "../Tools";
import
{
RES
}
from
"../../module/RES"
;
import
{
RES
}
from
"../../module/RES"
;
import
{
changeScene
,
showPanel
}
from
"../../module/ctrls"
;
import
{
changeScene
,
showPanel
}
from
"../../module/ctrls"
;
import
{
MapScene
}
from
"../scene/map/MapScene"
;
import
{
MapScene
}
from
"../scene/map/MapScene"
;
import
{
LotteryPanel
}
from
"./LotteryPanel"
;
import
Container
=
FYGE
.
Container
;
import
Container
=
FYGE
.
Container
;
import
Sprite
=
FYGE
.
Sprite
;
import
Sprite
=
FYGE
.
Sprite
;
import
Tween
=
FYGE
.
Tween
;
import
Tween
=
FYGE
.
Tween
;
import
Ease
=
FYGE
.
Ease
;
import
Ease
=
FYGE
.
Ease
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
Button
=
FYGE
.
Button
;
import
Button
=
FYGE
.
Button
;
import
{
LotteryPanel
}
from
"./LotteryPanel"
;
export
class
SuccessNoPrizePanel
extends
Panel
{
export
class
SuccessNoPrizePanel
extends
Panel
{
get
groupNames
()
{
get
groupNames
()
{
...
@@ -83,7 +83,7 @@ export class SuccessNoPrizePanel extends Panel {
...
@@ -83,7 +83,7 @@ export class SuccessNoPrizePanel extends Panel {
public
goPrize
()
{
public
goPrize
()
{
// 去抽奖
// 去抽奖
showPanel
(
LotteryPanel
);
showPanel
(
LotteryPanel
,
{
callFun
:
()
=>
changeScene
(
MapScene
)
}
);
super
.
hidePanel
();
super
.
hidePanel
();
}
}
...
...
src/scene/map/MapUI.ts
View file @
4aac4764
...
@@ -61,7 +61,7 @@ export default class MapUI extends Container {
...
@@ -61,7 +61,7 @@ export default class MapUI extends Container {
break
;
break
;
case
this
.
clearanceBtn
:
case
this
.
clearanceBtn
:
showPanel
(
LotteryPanel
)
showPanel
(
LotteryPanel
,
{
callFun
:
()
=>
0
}
)
break
;
break
;
}
}
}
}
...
...
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