百宝商会修改提交

jiaoyangna 2020-10-15 17:16:32 +08:00
parent 8759e04261
commit 8b75d0a9d1
1 changed files with 1 additions and 11 deletions

View File

@ -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")