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
1964fbe7
Commit
1964fbe7
authored
Jun 22, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整广告回来监听
parent
80ac538e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
MainBase.ts
egret/libs/new_wx/MainBase.ts
+6
-2
TaskCenter.ts
egret/src/panels/TaskCenter/TaskCenter.ts
+1
-0
statistics.ts
egret/src/statistics.ts
+1
-1
No files found.
egret/libs/new_wx/MainBase.ts
View file @
1964fbe7
...
@@ -203,14 +203,18 @@ export default class MainBase extends eui.UILayer {
...
@@ -203,14 +203,18 @@ export default class MainBase extends eui.UILayer {
super
.
createChildren
();
super
.
createChildren
();
egret
.
lifecycle
.
addLifecycleListener
((
context
)
=>
{
egret
.
lifecycle
.
addLifecycleListener
((
context
)
=>
{
// custom lifecycle plugin
// custom lifecycle plugin
// console.log("addLifecycleListener--------------------");
})
})
egret
.
lifecycle
.
onPause
=
()
=>
{
egret
.
lifecycle
.
onPause
=
()
=>
{
// egret.ticker.pause();
// console.log("pause--------------------");
egret
.
ticker
.
pause
();
}
}
egret
.
lifecycle
.
onResume
=
()
=>
{
egret
.
lifecycle
.
onResume
=
()
=>
{
// egret.ticker.resume();
console
.
log
(
'resume-------------------'
);
GDispatcher
.
dispatchEvent
(
'docVisible'
);
egret
.
ticker
.
resume
();
}
}
//inject the custom material parser
//inject the custom material parser
...
...
egret/src/panels/TaskCenter/TaskCenter.ts
View file @
1964fbe7
...
@@ -27,6 +27,7 @@ export default class TaskCenter extends Panel {
...
@@ -27,6 +27,7 @@ export default class TaskCenter extends Panel {
}
}
private
getTaskInfo
()
{
private
getTaskInfo
()
{
// console.log("刷新任务数据------------------------");
NetManager
.
ins
.
getTaskInfo
((
success
,
res
)
=>
{
NetManager
.
ins
.
getTaskInfo
((
success
,
res
)
=>
{
if
(
!
success
)
{
if
(
!
success
)
{
return
;
return
;
...
...
egret/src/statistics.ts
View file @
1964fbe7
...
@@ -30,7 +30,7 @@ const handleVisibilityChange = (e) => {
...
@@ -30,7 +30,7 @@ const handleVisibilityChange = (e) => {
const
sendData
=
()
=>
{
const
sendData
=
()
=>
{
const
t0
=
endTimer
-
startTimer
;
const
t0
=
endTimer
-
startTimer
;
console
.
log
(
'停留时间是
'
,
t0
);
// console.log('页面切换停留时间是----------------
', t0);
// if (localStorage.getItem('xxl_first_statistics') == null) {
// if (localStorage.getItem('xxl_first_statistics') == null) {
// NetManager.ins.remainDuration(t0, true);
// NetManager.ins.remainDuration(t0, true);
// localStorage.setItem('xxl_first_statistics', '1');
// localStorage.setItem('xxl_first_statistics', '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