| 
					
				 | 
			
			
				@@ -383,29 +383,35 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //确认按钮 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void OnBtnSubClick() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            List<GiftBoxSelChildItemProto> reqItemList = new List<GiftBoxSelChildItemProto>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _selDic = _selDic.Where(pair => pair.Value != 0).ToDictionary(pair => pair.Key, pair => pair.Value); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (_selDic.Keys.Count > 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            AlertUI.Show("是否确认领取该物品,选择后不可撤销。") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            .SetLeftButton(true, "取消", (object data) => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                foreach (var itemKv in _selDic) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            .SetRightButton(true, "确定", (object data) => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                List<GiftBoxSelChildItemProto> reqItemList = new List<GiftBoxSelChildItemProto>(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                _selDic = _selDic.Where(pair => pair.Value != 0).ToDictionary(pair => pair.Key, pair => pair.Value); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (_selDic.Keys.Count > 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    if (itemKv.Value != 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    foreach (var itemKv in _selDic) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        reqItemList.Add(new GiftBoxSelChildItemProto 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        if (itemKv.Value != 0) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            ChildItemId = itemKv.Key, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            ChildItemCount = itemKv.Value 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            reqItemList.Add(new GiftBoxSelChildItemProto 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                ChildItemId = itemKv.Key, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                                ChildItemCount = itemKv.Value 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    ItemProxy.ReqUseGiftBoxSelItem(_itemId, reqItemList).Coroutine(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    this.Hide(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                ItemProxy.ReqUseGiftBoxSelItem(_itemId, reqItemList).Coroutine(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                this.Hide(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                PromptController.Instance.ShowFloatTextPrompt("请先选择"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    PromptController.Instance.ShowFloatTextPrompt("请先选择"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |