修改bug

dev_chengFeng
zhangqiang 2020-08-25 17:50:52 +08:00
parent e6946944b0
commit 060cc081bb
5 changed files with 14 additions and 5 deletions

View File

@ -169,11 +169,13 @@ function this.RefreshShow(i)
end
--设置滚动条
local curMaxOpenId = 0
function this.SetScroll(i)
curMaxOpenId = 1
this.scrollView:SetData(curData,function(index,root)
this.SetData(root,curData[index], curData[index - 1])
end)
this.scrollView:SetIndex(1)
this.scrollView:SetIndex(curMaxOpenId)
end
--设置滚动条数据 root根节点 data本地表数据 ldata 上一条数据
@ -243,6 +245,9 @@ function this.SetData(root, data, ldata)
goBtnText.text=Language[10336]
goBtnImage.sprite=Util.LoadSprite("s_slbz_1anniuhuise")
tip.text=Language[10337]
if curMaxOpenId < data.Id then
curMaxOpenId = data.Id
end
end
else
type=0

View File

@ -163,12 +163,13 @@ function this.UpdateHeroDatas(_msgHeroData, isFindHandBook)
end
function this.SetHeroFormationList(heroDid,teamId,isAddOrDel)
if heroDatas[heroDid] then
if isAddOrDel then
heroDatas[heroDid].formationList[teamId] = teamId
else
heroDatas[heroDid].formationList[teamId] = nil
end
end
end
function this.GetHeroEquipIdList(heroDid)

View File

@ -137,7 +137,8 @@ function this.SingleHeroDataShow(go,_heroData)
elseif heroData.isFormations[1] == FormationTypeDef.FORMATION_ENDLESS_MAP then
JumpManager.GoJump(57001)
elseif heroData.isFormations[1] == FormationTypeDef.ARENA_TOM_MATCH then
JumpManager.GoJump(57001)
-- JumpManager.GoJump(57001)
UIManager.OpenPanel(UIName.ArenaTopMatchPanel)
end
end
end)

View File

@ -220,7 +220,8 @@ function this.SingleHeroDataShow(go,_heroData)
elseif heroData.isFormations[1] == FormationTypeDef.EXPEDITION then
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.SAVE_FORMATION,FormationTypeDef.EXPEDITION)
elseif heroData.isFormations[1] == FormationTypeDef.ARENA_TOM_MATCH then
JumpManager.GoJump(57001)
-- JumpManager.GoJump(57001)
UIManager.OpenPanel(UIName.ArenaTopMatchPanel)
end
end
end)

View File

@ -159,7 +159,8 @@ function this.SingleHeroDataShow(go,_heroData)
elseif heroData.isFormations[1] == FormationTypeDef.EXPEDITION then
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.SAVE_FORMATION,FormationTypeDef.EXPEDITION)
elseif heroData.isFormations[1] == FormationTypeDef.ARENA_TOM_MATCH then
JumpManager.GoJump(57001)
-- JumpManager.GoJump(57001)
UIManager.OpenPanel(UIName.ArenaTopMatchPanel)
end
end
end)