Commit 96bd5c99 authored by wildfirecode's avatar wildfirecode

1

parent 64407c60
...@@ -7,7 +7,7 @@ export default class PanelCtrl { ...@@ -7,7 +7,7 @@ export default class PanelCtrl {
this._panels.unshift(panelName); this._panels.unshift(panelName);
} }
_params:any[] _params:any[]
_panels:any[] private _panels:any[]
_callback:any; _callback:any;
showPanels(panels: any[],params:any[],callback:Function) { showPanels(panels: any[],params:any[],callback:Function) {
this._panels=panels; this._panels=panels;
......
...@@ -185,15 +185,18 @@ export default class MapScene extends Scene { ...@@ -185,15 +185,18 @@ export default class MapScene extends Scene {
// 红包雨强提示 // 红包雨强提示
const hbRainRes = DataManager.ins.getData(NetName.HBRAIN_BASEINFO); const hbRainRes = DataManager.ins.getData(NetName.HBRAIN_BASEINFO);
if(hbRainRes.data.currentSession || hbRainRes.data.nextSession) { if(hbRainRes.data) {
const sessionId = hbRainRes.data.currentSession ? hbRainRes.data.currentSession.sessionIndex : hbRainRes.data.nextSession.sessionIndex; // 场次ID if(hbRainRes.data.currentSession || hbRainRes.data.nextSession) {
const nowTimerStr3 = date.getTime() + sessionId + ''; const sessionId = hbRainRes.data.currentSession ? hbRainRes.data.currentSession.sessionIndex : hbRainRes.data.nextSession.sessionIndex; // 场次ID
const oldTimerStr3 = localStorage.getItem('nowTimer3Str' + window['CFG'].consumerId); const nowTimerStr3 = date.getTime() + sessionId + '';
if(nowTimerStr3 != oldTimerStr3) { const oldTimerStr3 = localStorage.getItem('nowTimer3Str' + window['CFG'].consumerId);
panels.push('HbCutTime'); if(nowTimerStr3 != oldTimerStr3) {
localStorage.setItem('nowTimer3Str' + window['CFG'].consumerId, nowTimerStr3); panels.push('HbCutTime');
localStorage.setItem('nowTimer3Str' + window['CFG'].consumerId, nowTimerStr3);
}
} }
} }
if(!readCache() && getHomeData().levels.length <= 0) { //引导 if(!readCache() && getHomeData().levels.length <= 0) { //引导
const guide = new GuideCon(() => { const guide = new GuideCon(() => {
......
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