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
28ad3527
Commit
28ad3527
authored
Oct 30, 2019
by
wjf
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev
parents
e329eee0
c63f272d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
ScratchIcon.ts
egret/src/mapScene/icon/ScratchIcon.ts
+3
-1
ScratchPanel.ts
egret/src/panels/ScratchPanel.ts
+1
-1
scratchGetTaskInfo.json
mock/happyclear/scratchGetTaskInfo.json
+2
-2
No files found.
egret/src/mapScene/icon/ScratchIcon.ts
View file @
28ad3527
...
@@ -86,8 +86,10 @@ export default class ScratchIcon extends IconBase {
...
@@ -86,8 +86,10 @@ export default class ScratchIcon extends IconBase {
case
(
status
==
2
):
// 当前任务完成待领奖 请求领奖接口
case
(
status
==
2
):
// 当前任务完成待领奖 请求领奖接口
NetManager
.
ins
.
scratchTakePrize
((
success
,
res
)
=>
{
NetManager
.
ins
.
scratchTakePrize
((
success
,
res
)
=>
{
if
(
!
success
)
{
if
(
!
success
)
{
if
(
res
.
code
==
600016
){
if
(
res
.
code
==
600016
)
{
showToast
(
"哎呀,萌狮开小差啦!
\n
过会再来看看吧!"
);
showToast
(
"哎呀,萌狮开小差啦!
\n
过会再来看看吧!"
);
}
else
if
(
res
.
code
==
600028
)
{
showToast
(
"哎呀萌狮开小差啦!"
);
}
}
return
;
return
;
}
}
...
...
egret/src/panels/ScratchPanel.ts
View file @
28ad3527
...
@@ -36,7 +36,7 @@ export default class ScratchPanel extends Panel {
...
@@ -36,7 +36,7 @@ export default class ScratchPanel extends Panel {
}
}
x
+=
5
;
x
+=
5
;
this
.
myShape
.
graphics
.
lineTo
(
x
,
y
);
this
.
myShape
.
graphics
.
lineTo
(
x
,
y
);
if
(
x
>
(
+
this
.
data
.
completePercent
)
/
100
*
this
[
"prizeImg"
].
width
){
if
(
x
>
(
+
this
.
data
.
completePercent
)
/
100
*
this
[
"prizeImg"
].
width
+
10
){
return
;
return
;
}
}
this
.
setGtaphics
(
x
,
y
);
this
.
setGtaphics
(
x
,
y
);
...
...
mock/happyclear/scratchGetTaskInfo.json
View file @
28ad3527
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
"timestamp"
:
1572420059060
,
"timestamp"
:
1572420059060
,
"data"
:
{
"data"
:
{
"scratchCardTaskId"
:
3
,
"scratchCardTaskId"
:
3
,
"taskStatus"
:
2
,
"taskStatus"
:
1
,
"prizeImage"
:
"//yun.dui88.com/images/201910/9u6nk8sjt8.jpg"
,
"prizeImage"
:
"//yun.dui88.com/images/201910/9u6nk8sjt8.jpg"
,
"currentTime"
:
1572420059060
,
"currentTime"
:
1572420059060
,
"endTime"
:
1572493282000
,
"endTime"
:
1572493282000
,
"completePercent"
:
"
100
"
,
"completePercent"
:
"
98
"
,
"remainPercent"
:
"0"
,
"remainPercent"
:
"0"
,
"totalNeedCount"
:
1
,
"totalNeedCount"
:
1
,
"helpedCount"
:
1
,
"helpedCount"
:
1
,
...
...
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