| 
					
				 | 
			
			
				@@ -9,6 +9,7 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public class NewYearLoginView : BaseWindow 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private UI_NewYearLoginUI _ui; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private int _activityId = 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         public override void Dispose() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -29,68 +30,74 @@ namespace GFGGame 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.viewCom.Center(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.modal = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //viewAnimationType = EnumViewAnimationType.ZOOM_CENTER; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             _ui.m_listLogin.itemRenderer = RenderListLogin; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            //_ui.m_btnOpen.onClick.Add(OnClickBtnOpen); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            //_ui.m_btnDoubleGet.target.onClick.Add(OnClickBtnDoubleGet); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void OnShown() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             base.OnShown(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            _ui.m_listLogin.numItems = ActivitySignCfgArray.Instance.dataArray.Length;    
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _activityId = ActivityDataManager.Instance.GetCurOpenActiveByType(ActivityType.ShenDuChenYou); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ET.Log.Debug("´òÓ¡²âÊÔ============6666666666666===="+ _activityId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            RefreshViewInfo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void AddEventListener() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             base.AddEventListener(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            EventAgent.AddEventListener(ConstMessage.NEW_YEAR_RED_ENVELOPE_INFO, RefreshViewInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         protected override void RemoveEventListener() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             base.RemoveEventListener(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            EventAgent.RemoveEventListener(ConstMessage.NEW_YEAR_RED_ENVELOPE_INFO, RefreshViewInfo); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void RefreshViewInfo() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            //_ui.m_btnDoubleGet.target.visible = NewYearRedEnvelopeDataManager.Status != RedPacketStatus.Double; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ET.Log.Debug("´òÓ¡²âÊÔ====fsdfafd============" + ActivitySignCfgArray.Instance.GetCfgsByactivityId(_activityId).Count); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            _ui.m_listLogin.numItems = ActivitySignCfgArray.Instance.GetCfgsByactivityId(_activityId).Count; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         private void RenderListLogin(int index, GObject obj) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UI_ComLoginItem item = UI_ComLoginItem.Proxy(obj); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            var cfg = ActivitySignCfgArray.Instance.dataArray[index].bonusArr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            var data = ActivitySignCfgArray.Instance.GetCfgsByactivityId(_activityId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            var cfg = data[index].bonusArr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             item.m_bgType.selectedIndex = index % 2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             ItemCfg itemCfg = ItemCfgArray.Instance.GetCfg(cfg[0][0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             item.m_loaIcon.url = ResPathUtil.GetIconPath(itemCfg); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             item.m_txtName.text = itemCfg.name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             item.m_txtNum.text = "x" + NumberUtil.ChangeNumberUnit(cfg[0][1], 10000); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            item.m_imgGot.visible = ActivityDataManager.Instance.sevenDayLoginBonusStatusList[cfg[0][0] - 1] == ConstBonusStatus.GOT; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            // if (cfg.id == dailyLoginId) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            // { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            RedDotController.Instance.SetComRedDot(item.target, ActivityDataManager.Instance.sevenDayLoginBonusStatusList[cfg[0][0] - 1] == ConstBonusStatus.CAN_GET); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ActivityDataManager.Instance.NewYearLoginInfoDic.TryGetValue(index + 1, out var state); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            item.m_imgGot.visible = state == ConstBonusStatus.GOT; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            RedDotController.Instance.SetComRedDot(item.target, state == ConstBonusStatus.CAN_GET); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (item.target.data == null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                //item.target.onClick.Add(OnListItemClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                item.target.onClick.Add(OnListItemClick); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             item.target.data = cfg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             UI_ComLoginItem.ProxyEnd(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        private void OnClickBtnOpen(EventContext context) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ReqLeagueList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        private async void ReqLeagueList() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        private async void OnListItemClick(EventContext context) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            int actRedPacketId = ActivityDataManager.Instance.GetCurOpenActiveByType(ActivityType.NewYearRedPacket); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            bool result = await NewYearRedEnvelopeSProxy.ReqOpenRedPacket(actRedPacketId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (result) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            DailyLoginCfg cfg = (context.sender as GObject).data as DailyLoginCfg; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (ActivityDataManager.Instance.sevenDayLoginBonusStatusList[cfg.id - 1] == ConstBonusStatus.CAN_GET) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                int actRedPacketId = ActivityDataManager.Instance.GetCurOpenActiveByType(ActivityType.NewYearRedPacket); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                bool result = await ActivitySProxy.ReqGetAcitivitySignBonus(actRedPacketId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (result) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    //LogServerHelper.SendPlayParticipationLog((int)PlayParticipationEnum.MEI_RI_DNEG_LU, 2); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    RefreshViewInfo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            else 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                GoodsItemTipsController.ShowItemTips(cfg.rewardsArr[0][0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |