4坐发射子弹 抽奖界面打开关闭

This commit is contained in:
2026-09-27 18:38:28 +08:00
parent 4bc30fef04
commit 84035ac327
4 changed files with 99 additions and 11 deletions
+10 -1
View File
@@ -140,7 +140,16 @@ public class UIHomeMain : UIBase
});
btn_ChouJiang.onClick.AddListener(() =>
{
subUIManager.ShowAsync(UIPanel.ChouJiangPanel);
// 接收配置信息时直接判断:未开启不打开面板,避免面板先弹出又关掉的闪烁
APIRequestList.GetLotteryActivityConfig(cfg =>
{
if (cfg != null && !cfg.isOpen)
{
UIManager.Instance.ShowTiShi("活动未开启");
return;
}
subUIManager.ShowAsync(UIPanel.ChouJiangPanel);
});
});
#endregion