Commit c6c00c21 authored by wildfirecode's avatar wildfirecode

1

parent d9c856bf
...@@ -3,6 +3,9 @@ import Panel from "../components/Panel"; ...@@ -3,6 +3,9 @@ import Panel from "../components/Panel";
import Loading from "../components/Loading"; import Loading from "../components/Loading";
import wait from "../../new_tc/wait"; import wait from "../../new_tc/wait";
export default class PanelCtrl { export default class PanelCtrl {
addToShowPanels(panelName: string) {
this._panels.unshift(panelName);
}
_params:any[] _params:any[]
_panels:any[] _panels:any[]
_callback:any; _callback:any;
......
...@@ -47,7 +47,7 @@ export default class SignPanel extends Panel { ...@@ -47,7 +47,7 @@ export default class SignPanel extends Panel {
SceneCtrl.instance.updateScene(); SceneCtrl.instance.updateScene();
}, window['signActivityId']); }, window['signActivityId']);
}); });
this.hidePanel();
if(s) { if(s) {
const {customInfo,success} =DataManager.ins.getData('dosign'); const {customInfo,success} =DataManager.ins.getData('dosign');
if(!success || !customInfo.success || customInfo.prizeType =='none') { if(!success || !customInfo.success || customInfo.prizeType =='none') {
...@@ -61,7 +61,8 @@ export default class SignPanel extends Panel { ...@@ -61,7 +61,8 @@ export default class SignPanel extends Panel {
item.setSinged(); item.setSinged();
// showToast('签到成功!快去闯关吧~'); // showToast('签到成功!快去闯关吧~');
PanelCtrl.instance.show('signPrize'); // PanelCtrl.instance.show('signPrize');
PanelCtrl.instance.addToShowPanels('signPrize');
wait(200).then(()=>{ wait(200).then(()=>{
NetManager.ins.hc_home(() => { NetManager.ins.hc_home(() => {
updateMainTimer(); updateMainTimer();
...@@ -72,6 +73,8 @@ export default class SignPanel extends Panel { ...@@ -72,6 +73,8 @@ export default class SignPanel extends Panel {
}else { }else {
showToast('哎呀,奖励擦肩而过!'); showToast('哎呀,奖励擦肩而过!');
} }
this.hidePanel();
}, window['signActivityId']) }, window['signActivityId'])
console.log(data); console.log(data);
}; };
......
...@@ -37,11 +37,11 @@ showlog(){ ...@@ -37,11 +37,11 @@ showlog(){
const homedata = getHomeData(); const homedata = getHomeData();
if (data > homedata.levels.length) { if (data > homedata.levels.length) {
addAdComp(84, 911-10, this,29); addAdComp(84, 901, this,29);
NetManager.ins.showLog(getlogItem(29)); NetManager.ins.showLog(getlogItem(29));
} }
else else
addRankFriendList(84, 911-10, this,data); addRankFriendList(84, 901, this,data);
setGlow(this['levelTxt'], 0xfa4b09, 1); setGlow(this['levelTxt'], 0xfa4b09, 1);
this['levelTxt'].text = `第${data}关`; this['levelTxt'].text = `第${data}关`;
......
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