【十五日登陆】增加红点
(cherry picked from commit 120106c6d0d8957d7e7f0bbce687fafd42a70277)dev_chengFeng
parent
6641fa8814
commit
7a59fe9d6a
File diff suppressed because it is too large
Load Diff
|
@ -135,10 +135,12 @@ end
|
|||
function FifteenDayGift:SetSingleReward(sData,go,index)
|
||||
-- LogPink("index:"..tostring(index).." sData.Progress:"..tostring(sData.Progress).." sData.State:"..tostring(sData.State))
|
||||
local front = Util.GetGameObject(go,"front")
|
||||
local name = Util.GetGameObject(go,"name"):GetComponent("Text")
|
||||
local icon = Util.GetGameObject(go,"icon"):GetComponent("Image")
|
||||
local num = Util.GetGameObject(go,"num"):GetComponent("Text")
|
||||
local name = Util.GetGameObject(front,"name"):GetComponent("Text")
|
||||
local icon = Util.GetGameObject(front,"icon"):GetComponent("Image")
|
||||
local num = Util.GetGameObject(front,"num"):GetComponent("Text")
|
||||
local back = Util.GetGameObject(go,"back")
|
||||
local red = Util.GetGameObject(front,"red")
|
||||
red:SetActive(false)
|
||||
local curTime = GetTimeStamp()
|
||||
|
||||
--弄一个ItemView提供点击方法
|
||||
|
@ -156,6 +158,7 @@ function FifteenDayGift:SetSingleReward(sData,go,index)
|
|||
if sData.Progress <= curTime and sData.State == 0 then
|
||||
table.insert(frontList,front)
|
||||
table.insert(backList,back)
|
||||
red:SetActive(true)
|
||||
end
|
||||
--如果已领取、可领取、不可领取显示第几天;下一领取显示时间
|
||||
if sData.Progress > curTime and sData.Progress - 86400 <= curTime then
|
||||
|
|
Loading…
Reference in New Issue