From 6c17058b8e13be0a391fe7117b59abcc339979a7 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Thu, 16 Sep 2021 17:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=AF=BB=E5=AE=9D=E8=BF=B7=E8=B8=AA?= =?UTF-8?q?=E3=80=91=E6=B4=BB=E5=8A=A8=E7=BB=93=E6=9D=9F=E8=B7=B3=E5=9B=9E?= =?UTF-8?q?=E8=BF=98=E5=BC=B9=E5=87=BA=E5=A5=96=E5=8A=B1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../View/GeneralBigPopup_XunBaoMiZong.lua | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_XunBaoMiZong.lua b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_XunBaoMiZong.lua index e72cb4ebfc..844596a8d3 100644 --- a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_XunBaoMiZong.lua +++ b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_XunBaoMiZong.lua @@ -40,10 +40,16 @@ function this:OnShow(_parent,...) end function this:Refresh(isTop,isAni) - local dataList = self.actData.FreelyData - self.scrollView:SetData(dataList, function (index, item) - this:ShowSingleItem(item, dataList[index],index) - end,not isTop,not 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)