瀏覽代碼

主界面提交回退

zhangyuqian 1 年之前
父節點
當前提交
bb0b8e9f37
共有 1 個文件被更改,包括 29 次插入30 次删除
  1. 29 30
      GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

+ 29 - 30
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -426,8 +426,7 @@ namespace GFGGame
 
         private void OnClickBtnHaoYou()
         {
-            //ViewManager.Show<FriendView>(null, true);
-            ViewManager.Show<MergeGameView>();
+            ViewManager.Show<FriendView>(null, true);
         }
 
         private void OnClickBtnGongGao()
@@ -1077,34 +1076,34 @@ namespace GFGGame
                     return;
                 }
             }
-            ////月卡弹窗
-            //if (GameGlobal.AutoMonthlyCardView)
-            //{
-            //    GameGlobal.AutoMonthlyCardView = false;
-            //    if (GameGlobal.myNumericComponent.GetAsInt(NumericType.IsPropCzykActivity) == 0)
-            //    {
-            //        long endTime1 = GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardGoldEndTime);
-            //        long endTime2 = GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardBlackGoldEndTime);
-            //        if (endTime1 < TimeHelper.ServerNow())
-            //        {
-            //            if (endTime2 < TimeHelper.ServerNow())
-            //            {
-            //                ViewManager.Show<MonthlyCardTipsView>();
-            //            }
-            //        }
-            //        return; 
-            //    }
-            //}
-            ////活动公告弹窗
-            //if (GameGlobal.AutoAcitivtyTipsLoginView)
-            //{
-            //    GameGlobal.AutoAcitivtyTipsLoginView = false;
-            //    if (GameGlobal.myNumericComponent.GetAsInt(NumericType.IsPropYchmActivity) == 0)
-            //    {
-            //        ViewManager.Show<ActivityMainTipsView>();
-            //        return;
-            //    }
-            //}
+            //月卡弹窗
+            if (GameGlobal.AutoMonthlyCardView)
+            {
+                GameGlobal.AutoMonthlyCardView = false;
+                if (GameGlobal.myNumericComponent.GetAsInt(NumericType.IsPropCzykActivity) == 0)
+                {
+                    long endTime1 = GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardGoldEndTime);
+                    long endTime2 = GameGlobal.myNumericComponent.GetAsLong(NumericType.MonthCardBlackGoldEndTime);
+                    if (endTime1 < TimeHelper.ServerNow())
+                    {
+                        if (endTime2 < TimeHelper.ServerNow())
+                        {
+                            ViewManager.Show<MonthlyCardTipsView>();
+                        }
+                    }
+                    return;
+                }
+            }
+            //活动公告弹窗
+            if (GameGlobal.AutoAcitivtyTipsLoginView)
+            {
+                GameGlobal.AutoAcitivtyTipsLoginView = false;
+                if (GameGlobal.myNumericComponent.GetAsInt(NumericType.IsPropYchmActivity) == 0)
+                {
+                    ViewManager.Show<ActivityMainTipsView>();
+                    return;
+                }
+            }
             if (GameGlobal.AutoSpecialOfferGiftBoxView)
             {
                 //List<int> shopListId = new List<int>() { 40012, 40013 };