Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
wildfirecode13
xiaoxiaole
Commits
ba93daf7
Commit
ba93daf7
authored
Aug 23, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b2527834
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
17 deletions
+37
-17
MainScene.ts
egret/src/mainScene/MainScene.ts
+24
-16
submit.json
mock/happyclear/submit.json
+13
-1
No files found.
egret/src/mainScene/MainScene.ts
View file @
ba93daf7
...
...
@@ -2132,6 +2132,9 @@ export default class MainScene extends Scene {
Loading2
.
instace
.
show
();
NetManager
.
ins
.
hc_submit
((
s
,
data
)
=>
{
if
(
s
)
{
const
submitData
=
DataManager
.
ins
.
getData
(
'hc_submit'
).
data
;
if
(
submitData
.
prizeType
==
1
)
{
//提交成功后捞结果
NetManager
.
ins
.
getPlugOrderStatus
((
s
)
=>
{
Loading2
.
instace
.
hide
();
...
...
@@ -2149,8 +2152,13 @@ export default class MainScene extends Scene {
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
NO_PRIZE_PANEL
,
{
starCount
:
this
.
scoreProgress
.
starCount
});
}
},
DataManager
.
ins
.
getData
(
'hc_doJoin'
).
data
,
submitData
.
prizeResponse
.
orderNum
,
()
=>
{
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
result
==
0
})
}
else
{
PanelCtrl
.
instance
.
show
(
ModuleTypes
.
NO_PRIZE_PANEL
,
{
starCount
:
this
.
scoreProgress
.
starCount
});
}
}
else
{
Loading2
.
instace
.
hide
();
if
(
!
data
)
{
...
...
mock/happyclear/submit.json
View file @
ba93daf7
{
"success"
:
true
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1566556954843
,
"data"
:
{
"prizeType"
:
1
,
"prizeResponse"
:
{
"orderNum"
:
"1078836456709200289"
,
"errorMsg"
:
null
,
"success"
:
true
},
"stars"
:
3
}
}
\ 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