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
c4462e1e
Commit
c4462e1e
authored
Oct 29, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev
parents
d6f519c8
de6d8d5a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+3
-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/libs/tw/manager/NetManager.ts
View file @
c4462e1e
...
@@ -2137,7 +2137,9 @@ export class NetManager extends ABNetManager {
...
@@ -2137,7 +2137,9 @@ export class NetManager extends ABNetManager {
hideMsg
:
true
,
hideMsg
:
true
,
param
:
{
param
:
{
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
activityId
:
DataManager
.
ins
.
customCfgData
.
actId
,
scratchCardTaskId
:
scratchCardTaskId
scratchCardTaskId
:
scratchCardTaskId
,
detect
:
window
[
'detect'
],
deviceSessionId
:
window
[
'_device_session_id'
]
},
},
callback
:
callback
callback
:
callback
};
};
...
...
egret/src/mapScene/icon/ScratchIcon.ts
View file @
c4462e1e
...
@@ -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 @
c4462e1e
...
@@ -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