Commit f563bd33 authored by wildfirecode's avatar wildfirecode

1

parent b9b8a82a
......@@ -112,7 +112,7 @@ export default class MapScene extends Scene {
async start(data?) {
super.start();
// PanelCtrl.instance.show('RedBombAlert');
PanelCtrl.instance.show('RedBombAlert');
// NetManager.ins.hc_submit(()=>{
// // const submitData = DataManager.ins.getData('hc_submit').data;
// // PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL,{ level:1, option: submitData.option })
......
......@@ -13,8 +13,8 @@ export default class RedBombAlertPanel extends Panel {
this.showlog();
const times = getRedBombTimes();
this['tips'].text = `今日还有${times-1}个红包在其他关卡等你哦~`;
if(times <= 1) {
this['tips'].text = `今日还有${times}个红包在其他关卡等你哦~`;
if(times <= 0) {
this['tips'].text = `当日红包任务达成,明日再来~`;
}
this['group'].alpha=0;
......
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