Commit 1964fbe7 authored by zjz1994's avatar zjz1994

调整广告回来监听

parent 80ac538e
......@@ -203,14 +203,18 @@ export default class MainBase extends eui.UILayer {
super.createChildren();
egret.lifecycle.addLifecycleListener((context) => {
// custom lifecycle plugin
// console.log("addLifecycleListener--------------------");
})
egret.lifecycle.onPause = () => {
// egret.ticker.pause();
// console.log("pause--------------------");
egret.ticker.pause();
}
egret.lifecycle.onResume = () => {
// egret.ticker.resume();
console.log('resume-------------------');
GDispatcher.dispatchEvent('docVisible');
egret.ticker.resume();
}
//inject the custom material parser
......
......@@ -27,6 +27,7 @@ export default class TaskCenter extends Panel {
}
private getTaskInfo() {
// console.log("刷新任务数据------------------------");
NetManager.ins.getTaskInfo((success, res) => {
if(!success) {
return;
......
......@@ -30,7 +30,7 @@ const handleVisibilityChange = (e) => {
const sendData = () => {
const t0 = endTimer - startTimer;
console.log('停留时间是', t0);
// console.log('页面切换停留时间是----------------', t0);
// if (localStorage.getItem('xxl_first_statistics') == null) {
// NetManager.ins.remainDuration(t0, true);
// 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