【周卡】====周卡修改
parent
bf108a4f18
commit
6185ec6e58
|
|
@ -303,10 +303,14 @@ function WeekCardPanel:ShowCardInfo(index,config)
|
|||
getNum=getNum+1
|
||||
end
|
||||
end
|
||||
pre.timeTxt.gameObject:SetActive(true)
|
||||
local residueTimeNum = endTime - GetTimeStamp()
|
||||
local dayNum = math.floor(residueTimeNum / (24 * 3600))
|
||||
pre.timeTxt.text="(剩余"..dayNum.."天)"
|
||||
if dayNum==0 then
|
||||
pre.timeTxt.gameObject:SetActive(false)
|
||||
else
|
||||
pre.timeTxt.gameObject:SetActive(true)
|
||||
end
|
||||
if getNum > 0 then
|
||||
-- 领取奖励
|
||||
pre.btnText.text = "领取"
|
||||
|
|
|
|||
Loading…
Reference in New Issue