Browse Source

商城会员领取礼包修改

huangxiaoyue 1 year ago
parent
commit
b23c3e3dae
1 changed files with 11 additions and 7 deletions
  1. 11 7
      GameClient/Assets/Game/HotUpdate/Views/Store/WeekGiftView.cs

+ 11 - 7
GameClient/Assets/Game/HotUpdate/Views/Store/WeekGiftView.cs

@@ -71,13 +71,17 @@ namespace GFGGame
                 PromptController.Instance.ShowFloatTextPrompt("会员等级不足");
                 return;
             }
-            AlertUI.Show("提升VIP等级能领取更高级的礼包,是否继续领取当前等级的VIP礼包?", "(该礼包每周只能领取1次)")
-             .SetLeftButton(true, "否").SetRightButton(true, "是", async (object data) =>
-             {
-                 ViewManager.Hide<WeekGiftView>();
-                 bool result = await ShopSProxy.ReqGetVipWeekGiftBag(_vipLv);
-                 if (result){ }
-             });
+            //AlertUI.Show("提升VIP等级能领取更高级的礼包,是否继续领取当前等级的VIP礼包?", "(该礼包每周只能领取1次)")
+            // .SetLeftButton(true, "否").SetRightButton(true, "是", async (object data) =>
+            // {
+            GetVipWeekGiftBag();
+             //});
+        }
+        private async void GetVipWeekGiftBag()
+        {
+            ViewManager.Hide<WeekGiftView>();
+            bool result = await ShopSProxy.ReqGetVipWeekGiftBag(_vipLv);
+            if (result) { }
         }
     }
 }