【万象商会】upview调整
parent
50cbd0ea50
commit
cad9409314
|
@ -299,16 +299,26 @@ function this.OnPageTabChange(index)
|
|||
subViewList[index].sub:OnShow(orginLayer)
|
||||
end
|
||||
end
|
||||
if tabs[index].UpView and #tabs[index].UpView > 0 then
|
||||
this.upView:OnOpen({showType = tabs[index].UpView[1][1], panelType = tabs[index].UpView[2] })
|
||||
this.upView.gameObject:SetActive(true)
|
||||
else
|
||||
this.upView.gameObject:SetActive(false)
|
||||
end
|
||||
this.SetUpView(tabs[index])
|
||||
DynamicActivityManager.ChangeUIList(tabs[index].Jump)
|
||||
_CurPageIndex = index
|
||||
end
|
||||
|
||||
function this.SetUpView(_data)
|
||||
local data = _data
|
||||
if _data.ActiveType == ActivityTypeDef.DynamicActShop then
|
||||
local actId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.DynamicActShop)
|
||||
if actId then
|
||||
data = ConfigManager.GetConfigDataByDoubleKey(ConfigName.ActivityGroups,"ActId",actId,"ActiveType",ActivityTypeDef.DynamicActShop)
|
||||
end
|
||||
end
|
||||
if data.UpView and #data.UpView > 0 then
|
||||
this.upView:OnOpen({showType = data.UpView[1][1], panelType = data.UpView[2] })
|
||||
this.upView.gameObject:SetActive(true)
|
||||
else
|
||||
this.upView.gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
|
||||
--界面关闭时调用(用于子类重写)
|
||||
function ActivityMainPanel:OnClose()
|
||||
|
|
Loading…
Reference in New Issue