dev_chengFeng
parent
416d6eb16c
commit
7a1e1599d8
|
@ -10,6 +10,10 @@ local CumulativeSignInPage = quick_class("CumulativeSignInPage")
|
|||
local kMaxDay = 31
|
||||
--已领取 再领一次
|
||||
local receiveImage={[1]="s_slbz_yilingqu",[2]="r_meiriqiandao_zailingyici"}
|
||||
local boxImage = {
|
||||
[1] = "r_renwu_box2",
|
||||
[2] = ""
|
||||
}
|
||||
--本地标记可领取次数
|
||||
local receiveNum=0
|
||||
--今日是否充值标记 1未充值 2已充值
|
||||
|
@ -73,6 +77,14 @@ function CumulativeSignInPage:RefreshBox()
|
|||
|
||||
for i = 1, #data.mission do
|
||||
local btnBox = Util.GetGameObject(content,"progressBottom/BoxBtn"..i)
|
||||
local effectKeKaiQi = Util.GetGameObject(btnBox,"UI_Effect_BaoXiang_KeKaiQi")
|
||||
local effectKaiQi = Util.GetGameObject(btnBox,"UI_Effect_BaoXiang_KaiQi")
|
||||
local KaiQi = Util.GetGameObject(effectKaiQi,"KaiQi")
|
||||
|
||||
btnBox:GetComponent("Image").enabled = data.mission[i].state == 0
|
||||
effectKeKaiQi:SetActive((curDay>=SignRewardConfig[i].Values[1][1]) and (data.mission[i].state == 0))
|
||||
effectKaiQi:SetActive(data.mission[i].state == 1)
|
||||
KaiQi:SetActive(data.mission[i].state == 1)
|
||||
btnBox:GetComponent("Button").interactable = data.mission[i].state == 0
|
||||
if data.mission[i].state == 0 then--未领取
|
||||
if curDay<SignRewardConfig[i].Values[1][1] then
|
||||
|
|
Loading…
Reference in New Issue