From 2c379e55a1b587d221de52d81eb46ddfa0e4dafe Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Mon, 17 Jul 2023 17:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=BC=80=E5=90=AF=E5=BC=82?= =?UTF-8?q?=E5=B8=B8=E9=A3=98=E5=AD=97=E4=BF=AE=E5=A4=8D=EF=BC=8C=E5=BC=95?= =?UTF-8?q?=E5=AF=BC=E5=BC=82=E5=B8=B8=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/ui/hero/hero_comp.lua | 2 +- lua/app/ui/main_city/cell/side_bar_discount_cell.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/app/ui/hero/hero_comp.lua b/lua/app/ui/hero/hero_comp.lua index afab5ff9..aecfc8dc 100644 --- a/lua/app/ui/hero/hero_comp.lua +++ b/lua/app/ui/hero/hero_comp.lua @@ -164,7 +164,7 @@ function HeroComp:refreshScrollRect() cellCount = cellCount + math.ceil(lockCount / 4) end local currCount = self.scrollRect:getTotalCount() - if cellCount == currCount then + if cellCount == currCount and not DataManager.TutorialData:getIsInTutorial() then -- 引导的时候强制重新填充 self.scrollRect:refreshAll() else self.scrollRect:clearCells() diff --git a/lua/app/ui/main_city/cell/side_bar_discount_cell.lua b/lua/app/ui/main_city/cell/side_bar_discount_cell.lua index e8df5b5c..e3c086d9 100644 --- a/lua/app/ui/main_city/cell/side_bar_discount_cell.lua +++ b/lua/app/ui/main_city/cell/side_bar_discount_cell.lua @@ -11,7 +11,7 @@ end function SideBarDiscountCell:getIsOpen() -- 同ShopComp:refreshDiscountPage() 一起修改 - if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.MALL, false) then + if not ModuleManager:getIsOpen(ModuleManager.MODULE_KEY.MALL, true) then return false end