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
de6d8d5a
Commit
de6d8d5a
authored
Oct 29, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0de10dbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
ScratchIcon.ts
egret/src/mapScene/icon/ScratchIcon.ts
+5
-1
TurntablePrize2Panel.ts
egret/src/panels/TurntablePanel/TurntablePrize2Panel.ts
+4
-0
No files found.
egret/src/mapScene/icon/ScratchIcon.ts
View file @
de6d8d5a
...
@@ -7,6 +7,7 @@ import { ModuleTypes } from "../../../libs/new_wx/types/sceneTypes";
...
@@ -7,6 +7,7 @@ import { ModuleTypes } from "../../../libs/new_wx/types/sceneTypes";
import
{
loadSvga
}
from
"../../loadSvga"
;
import
{
loadSvga
}
from
"../../loadSvga"
;
import
getResPath
from
"../../../libs/new_tc/getResPath"
;
import
getResPath
from
"../../../libs/new_tc/getResPath"
;
import
Utils
from
"../../Utils"
;
import
Utils
from
"../../Utils"
;
import
{
showToast
}
from
"../../../libs/new_wx/ctrls/toastCtrl"
;
export
default
class
ScratchIcon
extends
IconBase
{
export
default
class
ScratchIcon
extends
IconBase
{
private
cutTimer
:
CutTimer
=
null
;
private
cutTimer
:
CutTimer
=
null
;
...
@@ -81,8 +82,11 @@ export default class ScratchIcon extends IconBase {
...
@@ -81,8 +82,11 @@ export default class ScratchIcon extends IconBase {
// PanelCtrl.instance.show('scratch', res.data);
// PanelCtrl.instance.show('scratch', res.data);
break
;
break
;
case
(
status
==
2
):
// 当前任务完成待领奖 请求领奖接口
case
(
status
==
2
):
// 当前任务完成待领奖 请求领奖接口
NetManager
.
ins
.
scratchTakePrize
((
success
)
=>
{
NetManager
.
ins
.
scratchTakePrize
((
success
,
res
)
=>
{
if
(
!
success
)
{
if
(
!
success
)
{
if
(
res
.
code
==
600016
){
showToast
(
"哎呀,萌狮开小差啦!
\n
过会再来看看吧!"
);
}
return
;
return
;
}
}
PanelCtrl
.
instance
.
show
(
"scratchPrize"
,
res
.
data
);
PanelCtrl
.
instance
.
show
(
"scratchPrize"
,
res
.
data
);
...
...
egret/src/panels/TurntablePanel/TurntablePrize2Panel.ts
View file @
de6d8d5a
...
@@ -7,6 +7,7 @@ import { NetManager } from "../../../libs/tw/manager/NetManager";
...
@@ -7,6 +7,7 @@ import { NetManager } from "../../../libs/tw/manager/NetManager";
import
CutTimer
from
"../../CutTimer"
;
import
CutTimer
from
"../../CutTimer"
;
import
Utils
from
"../../Utils"
;
import
Utils
from
"../../Utils"
;
import
{
getlogItem
}
from
"../../Main"
;
import
{
getlogItem
}
from
"../../Main"
;
import
{
showToast
}
from
"../../../libs/new_wx/ctrls/toastCtrl"
;
export
default
class
TurnPrize2Panel
extends
Panel
{
export
default
class
TurnPrize2Panel
extends
Panel
{
start
(
data
)
{
start
(
data
)
{
...
@@ -103,6 +104,9 @@ export default class TurnPrize2Panel extends Panel {
...
@@ -103,6 +104,9 @@ export default class TurnPrize2Panel extends Panel {
case
(
status
==
2
):
// 当前任务完成待领奖 请求领奖接口
case
(
status
==
2
):
// 当前任务完成待领奖 请求领奖接口
NetManager
.
ins
.
scratchTakePrize
((
success
,
res
)
=>
{
NetManager
.
ins
.
scratchTakePrize
((
success
,
res
)
=>
{
if
(
!
success
)
{
if
(
!
success
)
{
if
(
res
.
code
==
600016
){
showToast
(
"哎呀,萌狮开小差啦!
\n
过会再来看看吧!"
);
}
return
;
return
;
}
}
PanelCtrl
.
instance
.
show
(
"scratchPrize"
,
res
.
data
);
PanelCtrl
.
instance
.
show
(
"scratchPrize"
,
res
.
data
);
...
...
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