tcx_xiyou_yueNan
parent
20fb713092
commit
82190fc2b9
|
@ -53,17 +53,16 @@ function this:InitComponent()
|
|||
local tabBtn = newObjToParent(this.btnItem, this.grid)
|
||||
Util.GetGameObject(tabBtn, "Text"):GetComponent("Text").text = configInfo.RankName
|
||||
--this.actData = ActivityGiftManager.GetActivityInfo(ActivityTypeDef.KaiFuChongBang,infoConfig.GlobalActivity)
|
||||
LogError("检查活动:"..this.actData.activityId)
|
||||
tabBtn.name = "tab" .. configInfo.GlobalActivity
|
||||
LogError("检查活动:" .. configInfo.GlobalActivity)
|
||||
if this.actData and this.actData.activityId == configInfo.GlobalActivity then
|
||||
|
||||
local openTime = this.actData.startTime + configInfo.OpenTime
|
||||
local closeTime = this.actData.startTime + configInfo.CloseTime
|
||||
if GetTimeStamp() >= openTime and GetTimeStamp() <= closeTime then --活动未开启
|
||||
curConfig = configInfo
|
||||
currId = curConfig.Id
|
||||
isFirst = true
|
||||
LogError("xccccccccccccccccccccccccccccccc开启活动"..configInfo.GlobalActivity)
|
||||
end
|
||||
--if GetTimeStamp() >= openTime and GetTimeStamp() <= closeTime then --活动未开启
|
||||
curConfig = configInfo
|
||||
currId = curConfig.Id
|
||||
isFirst = true
|
||||
--end
|
||||
--活动没开启页签不显示
|
||||
if openTime > GetTimeStamp() + configInfo.Preview then
|
||||
tabBtn.gameObject:SetActive(false)
|
||||
|
@ -71,7 +70,6 @@ function this:InitComponent()
|
|||
else
|
||||
tabBtn.gameObject:SetActive(false)
|
||||
end
|
||||
|
||||
table.insert(this.btnList, tabBtn)
|
||||
Util.AddClick(tabBtn, function()
|
||||
btnType = _
|
||||
|
@ -94,11 +92,9 @@ end
|
|||
local state = 0
|
||||
function this.TabBtnOnClick(config, btn)
|
||||
local time = 0
|
||||
LogError("ccccccccccccccccccccccccccsssssssssssssssssssssss")
|
||||
--this.actData = CommonActPageManager.GetData(config.GlobalActivity)
|
||||
--this.actData = ActivityGiftManager.GetActivityInfo(ActivityTypeDef.KaiFuChongBang,infoConfig.GlobalActivity)
|
||||
if this.actData and this.actData.activityId == config.GlobalActivity then
|
||||
LogError("vvvvvvvvvvvvvvvvvvvvvvvvvvvvvv")
|
||||
local openTime = this.actData.startTime + config.OpenTime
|
||||
local closeTime = this.actData.startTime + config.CloseTime
|
||||
if openTime > GetTimeStamp() then --活动未开启
|
||||
|
@ -119,7 +115,7 @@ function this.TabBtnOnClick(config, btn)
|
|||
PopupTipPanel.ShowTip(Language[11926])
|
||||
return
|
||||
end
|
||||
|
||||
|
||||
this.selectObj.transform:SetParent(btn.transform)
|
||||
this.selectObj.transform.localScale = Vector3.one
|
||||
this.selectObj.transform.localPosition = Vector3.zero
|
||||
|
@ -160,7 +156,6 @@ end
|
|||
|
||||
function this.ChangeWindow(config)
|
||||
this.titleImg.sprite = this.spLoader:LoadSprite(config.Icon)
|
||||
LogError("sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss"..config.Icon)
|
||||
curConfig = config
|
||||
if state == 3 then
|
||||
rankType = config.BackRankType
|
||||
|
|
Loading…
Reference in New Issue