【寻宝迷踪】活动结束跳回还弹出奖励修改

dev_chengFeng
ZhangBiao 2021-09-16 17:45:14 +08:00
parent 9d8fa02bcc
commit 6c17058b8e
1 changed files with 10 additions and 4 deletions

View File

@ -40,10 +40,16 @@ function this:OnShow(_parent,...)
end
function this:Refresh(isTop,isAni)
local activityId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.XunBaoMiZong)
if activityId and activityId > 0 and ActivityGiftManager.IsQualifiled(ActivityTypeDef.XunBaoMiZong) then
local dataList = self.actData.FreelyData
self.scrollView:SetData(dataList, function (index, item)
this:ShowSingleItem(item, dataList[index],index)
end,not isTop,not isAni)
else
self.parent:ClosePanel()
PopupTipPanel.ShowTip("活动尚未开启")
end
end
function this:ShowSingleItem(go,data,index)