Commit 0b985d36 authored by 邱旭's avatar 邱旭

1

parent 4c37fa2c
...@@ -491,7 +491,8 @@ export default class MainBase extends eui.UILayer { ...@@ -491,7 +491,8 @@ export default class MainBase extends eui.UILayer {
} }
protected async createGameScene() { protected async createGameScene() {
window['getaward'] = () => { getRedBombAward((param) => { console.log(param) }) } window['getaward'] = () => { getRedBombAward((param) => { console.log(param) }) };
localStorage.setItem('taskCenter' + window['CFG'].consumerId, 'true'); // 任务中心强提示,每次进入游戏只强提示一次
await Promise.all([ await Promise.all([
this.getAd(), this.getAd(),
this.ajaxElement(), this.ajaxElement(),
......
...@@ -208,15 +208,19 @@ export default class MapScene extends Scene { ...@@ -208,15 +208,19 @@ export default class MapScene extends Scene {
} }
// 任务中心可领奖强提示 // 任务中心可领奖强提示
let canShow = localStorage.getItem('taskCenter' + window['CFG'].consumerId);
if(canShow == 'true'){
const taskInfoRes = DataManager.ins.getData(NetName.GET_TASKINFO); const taskInfoRes = DataManager.ins.getData(NetName.GET_TASKINFO);
if(taskInfoRes && taskInfoRes.data && taskInfoRes.data.length > 0) { if(taskInfoRes && taskInfoRes.data && taskInfoRes.data.length > 0) {
for(let i = 0; i < taskInfoRes.data.length; i++) { for(let i = 0; i < taskInfoRes.data.length; i++) {
if(taskInfoRes.data[i].count > 0) { if(taskInfoRes.data[i].count > 0) {
panels.push('task'); panels.push('task');
localStorage.setItem('taskCenter' + window['CFG'].consumerId, 'false');
break; break;
} }
} }
} }
}
if(!readCache() && getHomeData().levels.length <= 0) { //引导 if(!readCache() && getHomeData().levels.length <= 0) { //引导
const guide = new GuideCon(() => { const guide = new GuideCon(() => {
......
...@@ -2,7 +2,6 @@ import IconBase from "./IconBase"; ...@@ -2,7 +2,6 @@ import IconBase from "./IconBase";
import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl"; import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl";
import { NetManager } from "../../../libs/tw/manager/NetManager"; import { NetManager } from "../../../libs/tw/manager/NetManager";
import { GDispatcher } from "../../../libs/tc/util/GDispatcher"; import { GDispatcher } from "../../../libs/tc/util/GDispatcher";
import { getLadderGap } from "../../playScene/utils";
import { getlogItem } from "../../Main"; import { getlogItem } from "../../Main";
export default class TaskCenterIcon extends IconBase { export default class TaskCenterIcon extends IconBase {
......
import { ChapterData } from "./interface/ChapterData";
import { Element } from "./class/Element"; import { Element } from "./class/Element";
import { Lattice } from "./class/Lattice"; import { Lattice } from "./class/Lattice";
import { ElementType, FiveBaseElementTypes } from "./enum/ElementType"; import { ElementType, FiveBaseElementTypes } from "./enum/ElementType";
import { PassType } from "./enum/PassType";
import { EffectType } from "./enum/EffectType"; import { EffectType } from "./enum/EffectType";
import { Pool } from "./Pool"; import { Pool } from "./Pool";
import { RecoverName } from "./enum/RecoverName"; import { RecoverName } from "./enum/RecoverName";
...@@ -296,7 +294,8 @@ export class Tool { ...@@ -296,7 +294,8 @@ export class Tool {
if (this.judgeFall(lat) && if (this.judgeFall(lat) &&
!lat.element.hasState(StateType.HAIRBALLBLACK) && !lat.element.hasState(StateType.HAIRBALLBLACK) &&
!lat.element.hasState(StateType.HAIRBALLGREY) && !lat.element.hasState(StateType.HAIRBALLGREY) &&
!lat.element.hasState(StateType.HAIRBALLBROWN) !lat.element.hasState(StateType.HAIRBALLBROWN)&&
lat.element.type != ElementType.FESTIVALELE_SMALL
) { ) {
return true return true
} }
......
...@@ -1136,7 +1136,7 @@ ...@@ -1136,7 +1136,7 @@
"remainProp": [ "remainProp": [
{ {
"type": 2, "type": 2,
"num": 0 "num": 2
}, },
{ {
"type": 3, "type": 3,
......
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