【周卡】====周卡修改

dev_chengFeng
wangzhenxing 2022-07-27 10:15:40 +08:00
parent bf108a4f18
commit 6185ec6e58
1 changed files with 5 additions and 1 deletions

View File

@ -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 = "领取"