Commit c6c00c21 authored by wildfirecode's avatar wildfirecode

1

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