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
bb8cc5c5
Commit
bb8cc5c5
authored
Sep 26, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d66d6712
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
SignPanel.ts
egret/src/panels/SignPanel.ts
+7
-0
No files found.
egret/src/panels/SignPanel.ts
View file @
bb8cc5c5
...
@@ -42,6 +42,11 @@ export default class SignPanel extends Panel {
...
@@ -42,6 +42,11 @@ export default class SignPanel extends Panel {
const
func
=
(
data
,
item
:
SignItem
)
=>
{
const
func
=
(
data
,
item
:
SignItem
)
=>
{
NetManager
.
ins
.
doSign
((
s
)
=>
{
NetManager
.
ins
.
doSign
((
s
)
=>
{
if
(
s
)
{
if
(
s
)
{
const
{
customInfo
}
=
DataManager
.
ins
.
getData
([
'dosign'
]);
if
(
customInfo
.
code
==
100004
||
!
customInfo
.
success
)
{
showToast
(
'哎呀!奖励与您擦肩而过~'
);
return
;
}
item
.
setSinged
();
item
.
setSinged
();
// showToast('签到成功!快去闯关吧~');
// showToast('签到成功!快去闯关吧~');
PanelCtrl
.
instance
.
show
(
'signPrize'
);
PanelCtrl
.
instance
.
show
(
'signPrize'
);
...
@@ -52,6 +57,8 @@ export default class SignPanel extends Panel {
...
@@ -52,6 +57,8 @@ export default class SignPanel extends Panel {
},
window
[
'collectRuleId'
]);
},
window
[
'collectRuleId'
]);
});
});
}
else
{
showToast
(
'哎呀!奖励与您擦肩而过~'
);
}
}
},
window
[
'signActivityId'
])
},
window
[
'signActivityId'
])
console
.
log
(
data
);
console
.
log
(
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