Browse Source

活动公告修改

zhangyuqian 1 năm trước cách đây
mục cha
commit
b3922aa389

+ 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)