diff --git a/Assets/ManagedResources/~Lua/Modules/TreasureStore/TreasureStorePopup.lua b/Assets/ManagedResources/~Lua/Modules/TreasureStore/TreasureStorePopup.lua index 7bf83a2aee..ff81930902 100644 --- a/Assets/ManagedResources/~Lua/Modules/TreasureStore/TreasureStorePopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/TreasureStore/TreasureStorePopup.lua @@ -5,7 +5,6 @@ local this=TreasureStorePopup local itemConfig=ConfigManager.GetConfig(ConfigName.ItemConfig) local GlobalActivity = ConfigManager.GetConfig(ConfigName.GlobalActivity) local itemsGrid = {} -local isPlayAnim = true function TreasureStorePopup:InitComponent() this.panel=Util.GetGameObject(this.gameObject,"Panel") this.backBtn=Util.GetGameObject(this.panel,"BackBtn") @@ -42,7 +41,6 @@ end function TreasureStorePopup:OnShow() this:RefreshPanel() this:TimeCountDown() - isPlayAnim = true end function TreasureStorePopup:OnClose() @@ -79,10 +77,6 @@ function TreasureStorePopup:RefreshPanel() this:SetScrollPre(go, allData[index]) end) end - if isPlayAnim then - SecTorPlayAnimByScroll(this.scrollView) - isPlayAnim = false - end this.scrollView:SetIndex(1) end @@ -103,11 +97,7 @@ function this.SortData(allData) end --设置每一条 function this:SetScrollPre(root,data) - if isPlayAnim then - root.gameObject:SetActive(false) - else - root.gameObject:SetActive(true) - end + root.gameObject:SetActive(true) local title=Util.GetGameObject(root,"Title"):GetComponent("Text") local iRoot=Util.GetGameObject(root,"ItemRoot") local buyBtn=Util.GetGameObject(root,"BuyBtn")