【公会援助】每次点击援助,列表都会重新置顶显示
parent
3b59ae09ec
commit
2b122d7fee
|
@ -135,7 +135,7 @@ function this.ShowPanelData()
|
|||
this.aidNumText.text = Language[10987]..curAidNum.."/"..guildHelpConfig[1].RecourseTime[1]..")"
|
||||
this.ScrollView:SetData(allMyAidData, function (index, go)
|
||||
this.SingleHelpDataShow(go, allMyAidData[index])
|
||||
end,true,true)
|
||||
end,false,true)
|
||||
end
|
||||
function this.SingleHelpDataShow(go,data)
|
||||
local isHave = data.type ~= nil
|
||||
|
|
|
@ -320,8 +320,10 @@ function this:SetData(dataList, updateFunc, noTop, noAnim)
|
|||
|
||||
-- 判断是否回到顶部,否则保持不动
|
||||
if noTop then
|
||||
local oldPosY = self.dragGOTran.anchoredPosition.y
|
||||
local showIndex = self:CalShowIndex()
|
||||
self:SetShow(showIndex)
|
||||
self.dragGOTran.anchoredPosition = Vector2.New(0, oldPosY)
|
||||
else
|
||||
self:SetShow(1)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue