Selaa lähdekoodia

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

huangxiaoyue 1 vuosi sitten
vanhempi
commit
333e84878e
1 muutettua tiedostoa jossa 10 lisäystä ja 1 poistoa
  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;
             AdCfg adCfg = obj.data as AdCfg;
             object[] param = null;
+            int jumpIndex = 0;
             if (adCfg.jumpId == nameof(LimitChargeView))
             {
                 param = new object[] { adCfg.activityId };
@@ -977,7 +978,15 @@ namespace GFGGame
             {
                 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()
         {