parent
4a373a2480
commit
866dac6e1b
|
|
@ -37,8 +37,8 @@ function GrowthGiftPage:InitComponent()
|
|||
self.scrollItem = Util.GetGameObject(self.gameObject, "rzyBg/scrollItem")
|
||||
self.itemPre = Util.GetGameObject(self.gameObject, "rzyBg/ItemPre")
|
||||
self.btn_qmfl=Util.GetGameObject(self.gameObject, "rzyBg/bg/btn_qmfl")
|
||||
self.red_qmfl=Util.GetGameObject(self.gameObject, "rzyBg/bg/btn_qmfl/red")
|
||||
self.red_qmfl:SetActive(false)
|
||||
--self.red_qmfl=Util.GetGameObject(self.gameObject, "rzyBg/bg/btn_qmfl/red")
|
||||
--self.red_qmfl:SetActive(false)
|
||||
--self.btn_qmfl:GetComponent("Image").sprite=self.spLoader:LoadSprite("GM_qmfl_botton_zh")
|
||||
--设置滚动条
|
||||
local rootHight = self.scrollItem.transform.rect.height
|
||||
|
|
@ -77,7 +77,7 @@ function GrowthGiftPage:OnOpen(_activityConfig,_index,parent)
|
|||
end
|
||||
|
||||
function GrowthGiftPage:OnFocus()
|
||||
self.red_qmfl:SetActive(RecruitTreasureManager.GetQuanMinRed(self.curActiId))
|
||||
--self.red_qmfl:SetActive(RecruitTreasureManager.GetQuanMinRed(self.curActiId))
|
||||
end
|
||||
|
||||
|
||||
|
|
@ -94,7 +94,8 @@ function GrowthGiftPage:OnShow(_sortingOrder)
|
|||
end
|
||||
|
||||
self.curActiId = self.actConfig.ActId
|
||||
self.btn_qmfl:SetActive(ActivityGiftManager.GetActivityInfoByType(10502)~=nil and ActivityGiftManager.CheckIsHaveHaveQMFL(ActivityTypeDef.GrowthReward,self.curActiId) )
|
||||
--self.btn_qmfl:SetActive(ActivityGiftManager.GetActivityInfoByType(10502)~=nil and ActivityGiftManager.CheckIsHaveHaveQMFL(ActivityTypeDef.GrowthReward,self.curActiId) )
|
||||
self.btn_qmfl:SetActive(false)
|
||||
self.actType = self.actConfig.ActiveType
|
||||
if self.actConfig.IfBack == 1 then
|
||||
if self.actConfig.ActiveType > 0 then
|
||||
|
|
@ -109,7 +110,7 @@ function GrowthGiftPage:OnShow(_sortingOrder)
|
|||
end
|
||||
end
|
||||
LogError("self.curActiId:=="..self.curActiId)
|
||||
self.red_qmfl:SetActive(RecruitTreasureManager.GetQuanMinRed(self.curActiId))
|
||||
--self.red_qmfl:SetActive(RecruitTreasureManager.GetQuanMinRed(self.curActiId))
|
||||
--LogGreen("self.curActiId:"..self.curActiId)
|
||||
if self.actConfig.Icon[3] and self.actConfig.Icon[3] ~= "" then
|
||||
self.titleBgIma.sprite = self.spLoader:LoadSprite(self.actConfig.Icon[3])
|
||||
|
|
|
|||
Loading…
Reference in New Issue