Browse Source

招财进宝提示语提交

zhangyuqian 1 year ago
parent
commit
ef33da4028

+ 9 - 1
GameClient/Assets/Game/HotUpdate/Views/ActivityMainTips/ActivityZCJBRewardView.cs

@@ -119,7 +119,7 @@ namespace GFGGame
             int itemCfg = (int)btnGet.data;
 
             UI_ActivityRewardItemUI item = UI_ActivityRewardItemUI.Proxy(_ui.m_List.GetChildAt(itemCfg - 1));
-            if(item.m_RewardBtn.m_c1.selectedIndex == 1)
+            if (item.m_RewardBtn.m_c1.selectedIndex == 1)
             {
                 bool result = await ActivitySProxy.ReqActivityZCJBReward(5006, itemCfg);
                 if (!result) return;
@@ -129,6 +129,14 @@ namespace GFGGame
                 _ui.m_List.numItems = ActivityDressCfgArray.Instance.dataArray.Length;
                 UpdateList();
             }
+            else if (item.m_RewardBtn.m_c1.selectedIndex == 0)
+            {
+                PromptController.Instance.ShowFloatTextPrompt("请优先兑换前置物品!");
+            }
+            else if (item.m_RewardBtn.m_c1.selectedIndex == 3)
+            {
+                PromptController.Instance.ShowFloatTextPrompt("数量不够!");
+            }
         }
 
         private void RenderRewardItemList(int index, GObject obj)