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
40e61fc4
Commit
40e61fc4
authored
Nov 08, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6ea681fb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
108 additions
and
6 deletions
+108
-6
Turntable.ts
egret/src/panels/TurntablePanel/Turntable.ts
+8
-4
home.json
mock/happyclear/home.json
+99
-1
turnablebaseInfo.json
mock/happyclear/turnablebaseInfo.json
+1
-1
No files found.
egret/src/panels/TurntablePanel/Turntable.ts
View file @
40e61fc4
...
...
@@ -122,10 +122,10 @@ export default class Turntable extends Panel {
console
.
warn
(
error
)
}
NetManager
.
ins
.
hc_turnableDojoin
((
success
,
res
)
=>
{
NetManager
.
ins
.
hc_home
(()
=>
{
SceneCtrl
.
instance
.
updateScene
();
this
[
'nums'
].
text
=
`当前可用元宝:
${
getHomeData
().
wealth
}
`
;
},
window
[
'collectRuleId'
]);
//
NetManager.ins.hc_home(() => {
//
SceneCtrl.instance.updateScene();
//
this['nums'].text = `当前可用元宝:${getHomeData().wealth}`;
//
}, window['collectRuleId']);
Loading
.
instace
.
hide
();
// if(!success) {
// return;
...
...
@@ -144,6 +144,10 @@ export default class Turntable extends Panel {
id
=
data
.
option
.
categoryType
;
}
this
.
rotateByPrize
(
id
,
()
=>
{
NetManager
.
ins
.
hc_home
(()
=>
{
SceneCtrl
.
instance
.
updateScene
();
this
[
'nums'
].
text
=
`当前可用元宝:
${
getHomeData
().
wealth
}
`
;
},
window
[
'collectRuleId'
]);
if
(
!
success
)
{
switch
(
true
)
{
case
(
code
==
"600051"
):
// 元宝不足
...
...
mock/happyclear/home.json
View file @
40e61fc4
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1573183122904
,
"data"
:{
"wealth"
:
40
,
"totalStars"
:
42
,
"levels"
:[{
"levelNum"
:
1
,
"maxScore"
:
99999
,
"stars"
:
3
},{
"levelNum"
:
2
,
"maxScore"
:
99999
,
"stars"
:
3
},{
"levelNum"
:
3
,
"maxScore"
:
12030
,
"stars"
:
3
},{
"levelNum"
:
4
,
"maxScore"
:
17710
,
"stars"
:
3
},{
"levelNum"
:
5
,
"maxScore"
:
16260
,
"stars"
:
3
},{
"levelNum"
:
6
,
"maxScore"
:
22110
,
"stars"
:
2
},{
"levelNum"
:
7
,
"maxScore"
:
17740
,
"stars"
:
2
},{
"levelNum"
:
8
,
"maxScore"
:
19950
,
"stars"
:
3
},{
"levelNum"
:
9
,
"maxScore"
:
31360
,
"stars"
:
3
},{
"levelNum"
:
10
,
"maxScore"
:
26470
,
"stars"
:
3
},{
"levelNum"
:
11
,
"maxScore"
:
59190
,
"stars"
:
3
},{
"levelNum"
:
12
,
"maxScore"
:
37400
,
"stars"
:
3
},{
"levelNum"
:
13
,
"maxScore"
:
25870
,
"stars"
:
2
},{
"levelNum"
:
14
,
"maxScore"
:
49810
,
"stars"
:
3
},{
"levelNum"
:
15
,
"maxScore"
:
31930
,
"stars"
:
3
}],
"remainProp"
:[{
"type"
:
3
,
"num"
:
1
}],
"remainEnargy"
:
5
,
"askForEnergy"
:
0
,
"canReceiveTreasureBoxNum"
:
1
,
"nextRangeStarsNum"
:
30
,
"isGetAllTreasureBox"
:
false
,
"refectionCountdown"
:
0
}}
\ No newline at end of file
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1573183122904
,
"data"
:
{
"wealth"
:
8888
,
"totalStars"
:
42
,
"levels"
:
[
{
"levelNum"
:
1
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
2
,
"maxScore"
:
99999
,
"stars"
:
3
},
{
"levelNum"
:
3
,
"maxScore"
:
12030
,
"stars"
:
3
},
{
"levelNum"
:
4
,
"maxScore"
:
17710
,
"stars"
:
3
},
{
"levelNum"
:
5
,
"maxScore"
:
16260
,
"stars"
:
3
},
{
"levelNum"
:
6
,
"maxScore"
:
22110
,
"stars"
:
2
},
{
"levelNum"
:
7
,
"maxScore"
:
17740
,
"stars"
:
2
},
{
"levelNum"
:
8
,
"maxScore"
:
19950
,
"stars"
:
3
},
{
"levelNum"
:
9
,
"maxScore"
:
31360
,
"stars"
:
3
},
{
"levelNum"
:
10
,
"maxScore"
:
26470
,
"stars"
:
3
},
{
"levelNum"
:
11
,
"maxScore"
:
59190
,
"stars"
:
3
},
{
"levelNum"
:
12
,
"maxScore"
:
37400
,
"stars"
:
3
},
{
"levelNum"
:
13
,
"maxScore"
:
25870
,
"stars"
:
2
},
{
"levelNum"
:
14
,
"maxScore"
:
49810
,
"stars"
:
3
},
{
"levelNum"
:
15
,
"maxScore"
:
31930
,
"stars"
:
3
}
],
"remainProp"
:
[
{
"type"
:
3
,
"num"
:
1
}
],
"remainEnargy"
:
5
,
"askForEnergy"
:
0
,
"canReceiveTreasureBoxNum"
:
1
,
"nextRangeStarsNum"
:
30
,
"isGetAllTreasureBox"
:
false
,
"refectionCountdown"
:
0
}
}
\ No newline at end of file
mock/happyclear/turnablebaseInfo.json
View file @
40e61fc4
...
...
@@ -113,7 +113,7 @@
],
"id"
:
null
},
"nextTimeNeedCoin"
:
8888
"nextTimeNeedCoin"
:
1
},
"success"
:
true
,
"desc"
:
"OK"
,
...
...
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