主题活动提交
parent
25cfb730b6
commit
fb51497d38
|
|
@ -218,9 +218,13 @@ function this.SingleDataShow(pre,value)
|
|||
local activityRewardGo = pre
|
||||
activityRewardGo:SetActive(true)
|
||||
local sConFigData = value
|
||||
|
||||
local state = sConFigData.state
|
||||
local titleText = Util.GetGameObject(activityRewardGo, "title"):GetComponent("Text")
|
||||
titleText.text = sConFigData.title.."("..(sConFigData.progress > sConFigData.value and sConFigData.value or sConFigData.progress) .."/"..sConFigData.value..")"
|
||||
if state == 2 or state == 1 then
|
||||
titleText.text = sConFigData.title.."(".. sConFigData.value .."/"..sConFigData.value..")"
|
||||
else
|
||||
titleText.text = sConFigData.title.."(".. (sConFigData.progress > sConFigData.value and sConFigData.value or sConFigData.progress).."/"..sConFigData.value..")"
|
||||
end
|
||||
local missionText = Util.GetGameObject(activityRewardGo, "mission"):GetComponent("Text")
|
||||
missionText.text = sConFigData.content
|
||||
local timeText = Util.GetGameObject(activityRewardGo, "btn/Text")
|
||||
|
|
@ -236,7 +240,7 @@ function this.SingleDataShow(pre,value)
|
|||
|
||||
local lingquButton = Util.GetGameObject(activityRewardGo.gameObject, "btn")
|
||||
--0-未完成,1-完成未领取 2-已领取
|
||||
local state = sConFigData.state
|
||||
|
||||
timeText:SetActive(state == 0)
|
||||
|
||||
local red = Util.GetGameObject(lingquButton.gameObject, "redPoint")
|
||||
|
|
|
|||
Loading…
Reference in New Issue