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
21158fb6
Commit
21158fb6
authored
Oct 28, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f2c13f60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
26 deletions
+12
-26
Turntable.ts
egret/src/panels/TurntablePanel/Turntable.ts
+3
-1
turnabledojoin.json
mock/happyclear/turnabledojoin.json
+9
-25
No files found.
egret/src/panels/TurntablePanel/Turntable.ts
View file @
21158fb6
...
...
@@ -122,11 +122,13 @@ export default class Turntable extends Panel {
const
data
=
res
.
data
;
const
code
=
res
.
code
;
let
id
=
data
.
option
.
categoryType
;
let
id
;
if
(
!
success
||
!
data
.
option
)
{
id
=
"thanks"
;
}
else
if
(
data
.
isScratchCard
)
{
id
=
"scratch"
;
}
else
{
id
=
data
.
option
.
categoryType
;
}
this
.
rotateByPrize
(
id
,
()
=>
{
if
(
!
success
)
{
...
...
mock/happyclear/turnabledojoin.json
View file @
21158fb6
{
"code"
:
"600015"
,
"data"
:{
"isScratchCard"
:
false
,
"option"
:{
"completePercent"
:
"99"
,
"prizeImage"
:
""
,
"remainPercent"
:
"剩余进度"
,
"scratchCardTaskId"
:
1
,
"categoryType"
:
4
,
"title"
:
"奖品信息"
,
"coinType"
:
1
,
"maxValue"
:
10
,
"minValue"
:
10
,
"appItemId"
:
2099
,
"img"
:
"http://yun.duiba.com.cn/db_games/1022/111.png"
,
"name"
:
"虚拟商品名称"
,
"value"
:
"虚拟商品编码"
,
"num"
:
10
,
"propType"
:
1
},
"orderNum"
:
"24487583"
},
"desc"
:
"OK"
,
"success"
:
true
,
"timestamp"
:
1572061348762
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1572262646931
,
"data"
:
{
"isScratchCard"
:
false
,
"option"
:
null
,
"orderNum"
:
null
}
}
\ 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