Commit 924d532c authored by 张华挺's avatar 张华挺

getIconAward

parent 2e812ba8
...@@ -23,6 +23,6 @@ else if (cmd === 'build' && process.argv[3] === 'prod2') { ...@@ -23,6 +23,6 @@ else if (cmd === 'build' && process.argv[3] === 'prod2') {
if (process.argv[4] === 'exml') if (process.argv[4] === 'exml')
cmd = 'buildProdEXML'; cmd = 'buildProdEXML';
} }
// build[cmd]('egret'); build[cmd]('egret');
build['notinypng']('egret'); // build['notinypng']('egret');
console.log(); console.log();
\ No newline at end of file
...@@ -934,9 +934,7 @@ export default class MainScene extends Scene { ...@@ -934,9 +934,7 @@ export default class MainScene extends Scene {
} }
onTap_quitBtn() { onTap_quitBtn() {
const configData = DataManager.ins.getData('getConfig') const configData = DataManager.ins.getData('getConfig')
let signConfigData = configData.data.filter(item => item.id === 5) let signConfigData = configData.data.list.filter(item => item.id === 5)
/* eslint-disable-next-line */
debugger
if (signConfigData.length) { if (signConfigData.length) {
if (signConfigData[0].index === 0) { if (signConfigData[0].index === 0) {
window['bridge'] && window['bridge']["showGamerAd"] && window['bridge']["showGamerAd"](window["TTPauseScreen"], 3) window['bridge'] && window['bridge']["showGamerAd"] && window['bridge']["showGamerAd"](window["TTPauseScreen"], 3)
......
...@@ -58,7 +58,7 @@ export default class MapScene extends Scene { ...@@ -58,7 +58,7 @@ export default class MapScene extends Scene {
this["tuiaGroup"].visible = false; this["tuiaGroup"].visible = false;
this["newTuiaGroup"].visible = false; this["newTuiaGroup"].visible = false;
const configData = DataManager.ins.getData('getConfig') const configData = DataManager.ins.getData('getConfig')
let iconConfigData = configData.data.filter(item => item.id === 1) let iconConfigData = configData.data.list.filter(item => item.id === 1)
if (iconConfigData.length) { if (iconConfigData.length) {
const index = iconConfigData[0].index const index = iconConfigData[0].index
switch (index) { switch (index) {
......
...@@ -51,7 +51,7 @@ export default class FailedPanel extends Panel { ...@@ -51,7 +51,7 @@ export default class FailedPanel extends Panel {
} }
const configData = DataManager.ins.getData('getConfig') const configData = DataManager.ins.getData('getConfig')
let fileConfigData = configData.data.filter(item => item.id === 3) let fileConfigData = configData.data.list.filter(item => item.id === 3)
if (fileConfigData.length && fileConfigData[0].index === 0) { if (fileConfigData.length && fileConfigData[0].index === 0) {
// 增加重新闯关倒计时 // 增加重新闯关倒计时
let time = 3 let time = 3
......
...@@ -62,7 +62,7 @@ export default class SignPanel extends Panel { ...@@ -62,7 +62,7 @@ export default class SignPanel extends Panel {
// showToast('签到成功!快去闯关吧~'); // showToast('签到成功!快去闯关吧~');
// PanelCtrl.instance.show('signPrize'); // PanelCtrl.instance.show('signPrize');
const configData = DataManager.ins.getData('getConfig') const configData = DataManager.ins.getData('getConfig')
let signConfigData = configData.data.filter(item => item.id === 6) let signConfigData = configData.data.list.filter(item => item.id === 6)
if (signConfigData.length && signConfigData[0].index === 1) { if (signConfigData.length && signConfigData[0].index === 1) {
window['bridge'] && window['bridge']["showGamerAd"] && window['bridge']["showGamerAd"](window["TASignScreen"], 3) window['bridge'] && window['bridge']["showGamerAd"] && window['bridge']["showGamerAd"](window["TASignScreen"], 3)
window["finishScreenShowSignPrize"] = window['bridge']["finishScreenShowSignPrize"] = PanelCtrl.instance.addToShowPanels('signPrize'); window["finishScreenShowSignPrize"] = window['bridge']["finishScreenShowSignPrize"] = PanelCtrl.instance.addToShowPanels('signPrize');
......
...@@ -49,7 +49,7 @@ export default class SignPrizePanel extends Panel { ...@@ -49,7 +49,7 @@ export default class SignPrizePanel extends Panel {
NetManager.ins.showLog(getlogItem(7)) NetManager.ins.showLog(getlogItem(7))
const configData = DataManager.ins.getData('getConfig') const configData = DataManager.ins.getData('getConfig')
let signConfigData = configData.data.filter(item => item.id === 6) let signConfigData = configData.data.list.filter(item => item.id === 6)
if (signConfigData.length && signConfigData[0].index === 1) { if (signConfigData.length && signConfigData[0].index === 1) {
// 因为除了插屏了,不需要翻倍 // 因为除了插屏了,不需要翻倍
this['close2Btn'].visible = true; this['close2Btn'].visible = true;
......
...@@ -12,7 +12,7 @@ export const gotoNextLevel = (currentLevel?) => { ...@@ -12,7 +12,7 @@ export const gotoNextLevel = (currentLevel?) => {
    }     }
    const onMapScene = SceneCtrl.instance.currentScene instanceof MapScene;     const onMapScene = SceneCtrl.instance.currentScene instanceof MapScene;
const configData = DataManager.ins.getData('getConfig') const configData = DataManager.ins.getData('getConfig')
let startConfigData = configData.data.filter(item => item.id === 2) let startConfigData = configData.data.list.filter(item => item.id === 2)
let startPanelType = 'StartPanel' let startPanelType = 'StartPanel'
if (startConfigData.length && startConfigData[0].index === 0) startPanelType = 'StartPanelNew' if (startConfigData.length && startConfigData[0].index === 0) startPanelType = 'StartPanelNew'
......
...@@ -3,26 +3,29 @@ ...@@ -3,26 +3,29 @@
"code": "0000000000", "code": "0000000000",
"desc": "OK", "desc": "OK",
"timestamp": 1582701970753, "timestamp": 1582701970753,
"data": [ "data":{
{ "list":[
"id": 1, {
"index": 0 "id":1,
}, "index":2
{ },
"id": 2, {
"index": 0 "id":2,
}, "index":1
{ },
"id": 3, {
"index": 0 "id":3,
}, "index":1
{ },
"id": 5, {
"index": 0 "id":5,
}, "index":1
{ },
"id": 6, {
"index": 0 "id":6,
} "index":1
] }
],
"num":3
}
} }
\ No newline at end of file
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