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
3275d414
Commit
3275d414
authored
Sep 24, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
9a85a188
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
SignPanel.ts
egret/src/panels/SignPanel.ts
+11
-1
No files found.
egret/src/panels/SignPanel.ts
View file @
3275d414
...
...
@@ -3,6 +3,9 @@ import SignItem from "./SignItem";
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
DataManager
}
from
"../../libs/tw/manager/DataManager"
;
import
{
showToast
}
from
"../../libs/new_wx/ctrls/toastCtrl"
;
import
{
updateMainTimer
}
from
"../../libs/new_wx/MainBase"
;
import
SceneCtrl
from
"../../libs/new_wx/ctrls/sceneCtrl"
;
import
wait
from
"../../libs/new_tc/wait"
;
// export const getSignInfo = ()=> {
// return new Promise((r) => {
...
...
@@ -58,7 +61,14 @@ export default class SignPanel extends Panel {
NetManager
.
ins
.
doSign
((
s
)
=>
{
if
(
s
)
{
item
.
setSinged
();
showToast
(
'签到成功!快去闯关吧~'
)
showToast
(
'签到成功!快去闯关吧~'
);
wait
(
200
).
then
(()
=>
{
NetManager
.
ins
.
hc_home
(()
=>
{
updateMainTimer
();
SceneCtrl
.
instance
.
updateScene
();
},
window
[
'collectRuleId'
]);
});
}
},
window
[
'signActivityId'
])
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