Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
崔立强
db-game-template
Commits
a568ab26
Commit
a568ab26
authored
Feb 19, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
526332e2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
RelivePanel.ts
egret/src/panels/RelivePanel.ts
+3
-1
PlayScene.ts
egret/src/playScene/PlayScene.ts
+3
-2
getGameSubmitResult.json
mock/json/getGameSubmitResult.json
+1
-1
No files found.
egret/src/panels/RelivePanel.ts
View file @
a568ab26
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
relive
from
"../playScene/relive"
;
import
PanelCtrl
from
"../../libs/new_wx/ctrls/panelCtrl"
;
export
default
class
RelivePanel
extends
Panel
{
start
()
{
...
...
@@ -17,12 +18,13 @@ export default class RelivePanel extends Panel {
}
onTouchTap_closeBtn
()
{
PanelCtrl
.
instance
.
closeCurrent
(
true
);
this
.
dispatchEvent
(
new
egret
.
Event
(
'onCancel'
));
}
onTouchTap_okBtn
()
{
this
.
closeBtns
.
forEach
(
btn
=>
{
if
(
btn
)
btn
.
touchEnabled
=
false
}
btn
=>
{
if
(
btn
)
btn
.
touchEnabled
=
false
}
)
relive
(()
=>
{
this
.
hidePanel
();
...
...
egret/src/playScene/PlayScene.ts
View file @
a568ab26
...
...
@@ -24,6 +24,7 @@ import createSpeialCircle from "./factory/createSpeialCircle";
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
Effect
from
"../Effect"
;
import
{
toggleSound
,
playSound
,
SoundType
,
playBg
}
from
"../soundCtrl"
;
import
Loading
from
"../../libs/new_wx/components/Loading"
;
export
default
class
PlayScene
extends
Scene
{
initEvents
()
{
...
...
@@ -482,12 +483,12 @@ export default class PlayScene extends Scene {
block
.
view
.
parent
&&
this
.
removeChild
(
block
.
view
);
this
.
pool
.
recover
(
block
.
type
,
block
);
}
}
gameOver
()
{
Loading
.
instace
.
show
();
submit
((
success
)
=>
{
Loading
.
instace
.
hide
();
if
(
!
success
)
return
;
let
panel
:
Panel
;
if
(
DataManager
.
ins
.
gameGetSubmitResultData
.
lottery
)
{
...
...
mock/json/getGameSubmitResult.json
View file @
a568ab26
...
...
@@ -33,7 +33,7 @@
},
"useDpm"
:
"{
\"
dpm
\"
:
\"
1.19.1.0
\"
,
\"
consumerId
\"
:1,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:1,
\"
dcm
\"
:
\"
101.37155.0.0
\"
}"
,
"againDpm"
:
"{
\"
dpm
\"
:
\"
1.19.3.0
\"
,
\"
consumerId
\"
:1,
\"
domain
\"
:
\"
//embedlog.duiba.com.cn
\"
,
\"
appId
\"
:1}"
,
"flag"
:
fals
e
,
"flag"
:
tru
e
,
"score"
:
"50"
}
}
\ No newline at end of file
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