| 
					
				 | 
			
			
				@@ -31,9 +31,11 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui = UI_LeagueGiftUI.Create(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.viewCom = _ui.target; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.viewCom.Center(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.modal = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            viewAnimationType = EnumViewAnimationType.ZOOM_CENTER; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            isfullScreen = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // this.viewCom.Center(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //   this.viewCom = _ui.target; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // this.modal = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            // viewAnimationType = EnumViewAnimationType.ZOOM_CENTER; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_btnBack.onClick.Add(OnBtnBackClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_btnGet.onClick.Add(OnBtnGetClick); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -43,6 +45,9 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_listBuy.itemProvider = GetListBuyItemResource; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_listGet.itemRenderer = RenderListGetItem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_listGet.itemProvider = GetListGetItemResource; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_loaBg.url = ResPathUtil.GetBgImgPath("lm_beijing2"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void AddEventListener() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -61,6 +66,7 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             base.OnHide(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (_ui.m_listBuy.numItems > 0) _ui.m_listBuy.ScrollToView(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (_ui.m_listGet.numItems > 0) _ui.m_listGet.ScrollToView(0); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_c1.selectedIndex = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void RemoveEventListener() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -96,12 +102,12 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void RenderListGetItem(int index, GObject obj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UI_ListGiftGetItemTop item = UI_ListGiftGetItemTop.Proxy(obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (item.m_listGift.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (item.m_comItem.m_listGift.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                item.m_listGift.itemRenderer = RenderListRewardItem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                item.m_comItem.m_listGift.itemRenderer = RenderListRewardItem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_listGift.data = _getDatas[index].GiftCfg.bonusArr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_listGift.numItems = _getDatas[index].GiftCfg.bonusArr.Length; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_comItem.m_listGift.data = _getDatas[index].GiftCfg.bonusArr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_comItem.m_listGift.numItems = _getDatas[index].GiftCfg.bonusArr.Length; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UI_ListGiftGetItemTop.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void RenderListBuyItem(int index, GObject obj) 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -109,24 +115,25 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UI_ListGiftBuyItemTop item = UI_ListGiftBuyItemTop.Proxy(obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             LeagueGiftBuyData buyData = _buyDatas[index]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             string strCount = buyData.GiftCfg.limitType == 1 ? "今日剩余:{0}/{1}" : "本周剩余:{0}/{1}"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_txtCount.text = string.Format(strCount, buyData.GiftCfg.limit - buyData.BuyCount, buyData.GiftCfg.limit); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            int day = TimeUtil.FormattingTime11(TimeHelper.ServerNow(), buyData.EndTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_comItem.m_txtCount.text = string.Format(strCount, buyData.GiftCfg.limit - buyData.BuyCount, buyData.GiftCfg.limit); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            long day = buyData.EndTime / TimeUtil.SECOND_PER_DAY / 1000;// TimeUtil.FormattingTime11(TimeHelper.ServerNow(), TimeHelper.ServerNow() + buyData.EndTime); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             // item.m_txtTime.text = buyData.EndTime == 0 ? "" : string.Format("(剩余{0}天)", day); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_txtTime.SetVar("value", buyData.EndTime == 0 ? "" : day.ToString()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ItemUtil.UpdateItemNeedNum(item.m_comCost, buyData.GiftCfg.consumeArr[0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_comItem.m_txtTime.visible = buyData.EndTime != 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_comItem.m_txtTime.text = string.Format("剩余{0}天", StringUtil.GetColorText(day.ToString(), "#E45E29")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ItemUtil.UpdateItemNeedNum(item.m_comItem.m_comCost, buyData.GiftCfg.consumeArr[0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (item.m_listGift.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (item.m_comItem.m_listGift.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                item.m_listGift.itemRenderer = RenderListRewardItem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                item.m_comItem.m_listGift.itemRenderer = RenderListRewardItem; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_listGift.data = _buyDatas[index].GiftCfg.bonusArr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_listGift.numItems = _buyDatas[index].GiftCfg.bonusArr.Length; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_comItem.m_listGift.data = _buyDatas[index].GiftCfg.bonusArr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_comItem.m_listGift.numItems = _buyDatas[index].GiftCfg.bonusArr.Length; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (item.m_btnBuy.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (item.m_comItem.m_btnBuy.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                item.m_btnBuy.onClick.Add(OnBtnBuyClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                item.m_comItem.m_btnBuy.onClick.Add(OnBtnBuyClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_btnBuy.data = buyData; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_comItem.m_btnBuy.data = buyData; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UI_ListGiftBuyItemTop.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -139,8 +146,9 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 obj.data = new ItemView(obj as GComponent); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             (obj.data as ItemView).SetData(itemData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            (obj.data as ItemView).SetComItemScale = 0.6f; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            (obj.data as ItemView).SetTxtCountPos(185, 155); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (obj.data as ItemView).ChangeTxtCountStyle(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (obj.data as ItemView).SetTxtCountScale = 3f; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            (obj.data as ItemView).SetTxtCountPos(250, 142); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private string GetListGetItemResource(int index) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 |