Browse Source

主界面点击广告跳转进摘星

huangxiaoyue 1 year ago
parent
commit
333e84878e
1 changed files with 10 additions and 1 deletions
  1. 10 1
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

+ 10 - 1
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -969,6 +969,7 @@ namespace GFGGame
             GObject obj = context.sender as GObject;
             GObject obj = context.sender as GObject;
             AdCfg adCfg = obj.data as AdCfg;
             AdCfg adCfg = obj.data as AdCfg;
             object[] param = null;
             object[] param = null;
+            int jumpIndex = 0;
             if (adCfg.jumpId == nameof(LimitChargeView))
             if (adCfg.jumpId == nameof(LimitChargeView))
             {
             {
                 param = new object[] { adCfg.activityId };
                 param = new object[] { adCfg.activityId };
@@ -977,7 +978,15 @@ namespace GFGGame
             {
             {
                 param = new object[] { adCfg.activityId };
                 param = new object[] { adCfg.activityId };
             }
             }
-            ViewManager.Show($"GFGGame.{adCfg.jumpId}", param);
+            if (adCfg.jumpId == nameof(LuckyBoxView))
+            {
+                jumpIndex = adCfg.jumpParamArr[0];
+            }
+
+            if(jumpIndex != 0)
+                ViewManager.Show($"GFGGame.{adCfg.jumpId}", jumpIndex);
+            else
+                ViewManager.Show($"GFGGame.{adCfg.jumpId}", param);
         }
         }
         private void OnListAdScrollEnd()
         private void OnListAdScrollEnd()
         {
         {