소스 검색

活动公告修改

zhangyuqian 1 년 전
부모
커밋
b3922aa389
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      GameClient/Assets/Game/HotUpdate/Views/Notice/NoticeView.cs

+ 7 - 1
GameClient/Assets/Game/HotUpdate/Views/Notice/NoticeView.cs

@@ -130,7 +130,7 @@ namespace GFGGame
 
         private void OnListActivityClick(EventContext context)
         {
-            AdCfg adCfg = (AdCfg)(context.data as GObject).data;
+            AdCfg adCfg = (AdCfg)(context.sender as GObject).data;
             object[] param = null;
             int jumpIndex = 0;
             if (adCfg.jumpId == nameof(LimitChargeView))
@@ -147,9 +147,15 @@ namespace GFGGame
             }
 
             if (jumpIndex != 0)
+            {
+                this.Hide();
                 ViewManager.Show($"GFGGame.{adCfg.jumpId}", jumpIndex);
+            }
             else
+            {
+                this.Hide();
                 ViewManager.Show($"GFGGame.{adCfg.jumpId}", param);
+            }
         }
 
         private void ListNoticeItemRender(int index, GObject obj)