bug修复

dev_chengFeng
ZhangBiao 2020-08-03 20:01:59 +08:00
parent de441aa61d
commit c2024a15cb
2 changed files with 4 additions and 2 deletions

View File

@ -7,11 +7,11 @@ this._CurPageIndex =1
local _PageInfo = {--后期可以做成tableInserticon名字都去读表 local _PageInfo = {--后期可以做成tableInserticon名字都去读表
[1] = { --限时召唤 [1] = { --限时召唤
default = "x_xianshizaohuan_02", lock = "x_xianshizaohuan_02", select = "x_xianshizaohuan_01", default = "x_xianshizaohuan_02", lock = "x_xianshizaohuan_02", select = "x_xianshizaohuan_01",
rpType = RedPointType.TimeLimited, rpType = RedPointType.TimeLimited,panelType = PanelType.TimelimitCall,
}, },
[2] = { --乾坤宝盒 [2] = { --乾坤宝盒
default = "q_qiankun_baoheanniu_02", lock = "q_qiankun_baoheanniu_02", select = "q_qiankun_baoheanniu_01", default = "q_qiankun_baoheanniu_02", lock = "q_qiankun_baoheanniu_02", select = "q_qiankun_baoheanniu_01",
rpType = RedPointType.QianKunBox, rpType = RedPointType.QianKunBox,panelType = PanelType.QianKunBox,
}, },
} }
local TimeLimitedCall = require("Modules/Operating/TimeLimitedCall") local TimeLimitedCall = require("Modules/Operating/TimeLimitedCall")
@ -104,6 +104,7 @@ function this.OnPageTabChange(index, lastIndex)
end end
this.PageList[index]:OnShow(this.sortingOrder, _PageInfo[index].params and unpack(_PageInfo[index].params) or nil) this.PageList[index]:OnShow(this.sortingOrder, _PageInfo[index].params and unpack(_PageInfo[index].params) or nil)
this.PageList[index].gameObject:SetActive(true) this.PageList[index].gameObject:SetActive(true)
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = _PageInfo[index].panelType })
end end
-- 绑定数据 -- 绑定数据

View File

@ -36,6 +36,7 @@ function TimeLimitedCall:InitComponent(gameObject)
self.helpPosition=self.helpBtn:GetComponent("RectTransform").localPosition self.helpPosition=self.helpBtn:GetComponent("RectTransform").localPosition
self.activityBtn = Util.GetGameObject(self.gameObject,"btngroup/activity") self.activityBtn = Util.GetGameObject(self.gameObject,"btngroup/activity")
self.rewardBtn = Util.GetGameObject(self.gameObject,"btngroup/reward") self.rewardBtn = Util.GetGameObject(self.gameObject,"btngroup/reward")
self.rewardBtn:SetActive(false)--(暂时关闭)
self.timeupdate=Util.GetGameObject(self.gameObject,"timeupdate"):GetComponent("Text") --剩余时间 self.timeupdate=Util.GetGameObject(self.gameObject,"timeupdate"):GetComponent("Text") --剩余时间
self.upper=Util.GetGameObject(self.gameObject,"maxtimes/times"):GetComponent("Text") ---召唤上限 self.upper=Util.GetGameObject(self.gameObject,"maxtimes/times"):GetComponent("Text") ---召唤上限
self.slider = Util.GetGameObject(self.gameObject, "nextlevel/Slider"):GetComponent("Slider") self.slider = Util.GetGameObject(self.gameObject, "nextlevel/Slider"):GetComponent("Slider")