【万象商会】upview调整
parent
a735668f30
commit
b0ae4e3d2c
|
@ -299,16 +299,26 @@ function this.OnPageTabChange(index)
|
||||||
subViewList[index].sub:OnShow(orginLayer)
|
subViewList[index].sub:OnShow(orginLayer)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if tabs[index].UpView and #tabs[index].UpView > 0 then
|
this.SetUpView(tabs[index])
|
||||||
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
|
|
||||||
DynamicActivityManager.ChangeUIList(tabs[index].Jump)
|
DynamicActivityManager.ChangeUIList(tabs[index].Jump)
|
||||||
_CurPageIndex = index
|
_CurPageIndex = index
|
||||||
end
|
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()
|
function ActivityMainPanel:OnClose()
|
||||||
|
|
Loading…
Reference in New Issue