|  | @@ -38,6 +38,7 @@ namespace GFGGame
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              _ui.m_btnBack.onClick.Add(OnBtnBackClick);
 | 
	
		
			
				|  |  |              _ui.m_btnGet.onClick.Add(OnBtnGetClick);
 | 
	
		
			
				|  |  | +            _ui.m_btnGet.data = LeagueWelfareType.ALL;
 | 
	
		
			
				|  |  |              _ui.m_btnRule.onClick.Add(RuleController.ShowRuleView);
 | 
	
		
			
				|  |  |              _ui.m_btnRule.data = 300003;
 | 
	
		
			
				|  |  |              _ui.m_listBuy.itemRenderer = RenderListBuyItem;
 | 
	
	
		
			
				|  | @@ -109,6 +110,11 @@ namespace GFGGame
 | 
	
		
			
				|  |  |              item.m_comItem.m_loaType.url = string.Format("ui://League/lm_biaoqian_{0}", _getDatas[index].GiftCfg.type);
 | 
	
		
			
				|  |  |              item.m_comItem.m_listGift.data = _getDatas[index].GiftCfg.bonusArr;
 | 
	
		
			
				|  |  |              item.m_comItem.m_listGift.numItems = _getDatas[index].GiftCfg.bonusArr.Length;
 | 
	
		
			
				|  |  | +            if (item.target.data == null)
 | 
	
		
			
				|  |  | +            {
 | 
	
		
			
				|  |  | +                item.target.onClick.Add(OnBtnGetClick);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            item.target.data = _getDatas[index].Type;
 | 
	
		
			
				|  |  |              UI_ListGiftGetItemTop.ProxyEnd();
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          private void RenderListBuyItem(int index, GObject obj)
 | 
	
	
		
			
				|  | @@ -215,14 +221,11 @@ namespace GFGGame
 | 
	
		
			
				|  |  |              LeagueSproxy.ReqBuyLeagueWelfare(buyData.GiftCfg.type).Coroutine();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        private void OnBtnGetClick()
 | 
	
		
			
				|  |  | +        private void OnBtnGetClick(EventContext context)
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  | -            // bool result = await LeagueSproxy.ReqGetLeagueWelfare();
 | 
	
		
			
				|  |  | -            // if (result)
 | 
	
		
			
				|  |  | -            // {
 | 
	
		
			
				|  |  | -            //     UpdateGetList();
 | 
	
		
			
				|  |  | -            // }
 | 
	
		
			
				|  |  | -            LeagueSproxy.ReqGetLeagueWelfare().Coroutine();
 | 
	
		
			
				|  |  | +            GObject obj = context.sender as GObject;
 | 
	
		
			
				|  |  | +            int type = (int)obj.data;
 | 
	
		
			
				|  |  | +            LeagueSproxy.ReqGetLeagueWelfare(type).Coroutine();
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 |