Commit 1964fbe7 authored by zjz1994's avatar zjz1994

调整广告回来监听

parent 80ac538e
...@@ -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
......
...@@ -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;
......
...@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment