【推荐工会】
parent
78f4dccc1e
commit
1f2a21a587
|
@ -48,7 +48,7 @@ function GuildFindPopup:BindEvent()
|
||||||
local name = this.input.text
|
local name = this.input.text
|
||||||
if name == "" then
|
if name == "" then
|
||||||
this.input.text = ""
|
this.input.text = ""
|
||||||
this.RefreshRecommandList()
|
this.RefreshRecommandList(true,true)
|
||||||
PopupTipPanel.ShowTip(Language[10879])
|
PopupTipPanel.ShowTip(Language[10879])
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
@ -175,10 +175,10 @@ function this.CloseSelf()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 刷新推荐列表
|
-- 刷新推荐列表
|
||||||
function this.RefreshRecommandList()
|
function this.RefreshRecommandList(isTop,isAnim)
|
||||||
GuildManager.RecommandGuildList = {}
|
GuildManager.RecommandGuildList = {}
|
||||||
GuildManager.RequestRecommandGuildList(this.curPage,function()
|
GuildManager.RequestRecommandGuildList(this.curPage,function()
|
||||||
this.SetListType(1)
|
this.SetListType(1,isTop,isAnim)
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -11,11 +11,17 @@ end
|
||||||
|
|
||||||
-- 请求推荐公会列表
|
-- 请求推荐公会列表
|
||||||
function GuildManager.RequestRecommandGuildList(page,func)
|
function GuildManager.RequestRecommandGuildList(page,func)
|
||||||
|
this.RecommandGuildList = {}
|
||||||
NetManager.RequestRecommandGuild(page,function(msg)
|
NetManager.RequestRecommandGuild(page,function(msg)
|
||||||
local len = #this.RecommandGuildList
|
local len = #this.RecommandGuildList
|
||||||
for i, info in ipairs(msg.familyRecomandInfo) do
|
for i, info in ipairs(msg.familyRecomandInfo) do
|
||||||
this.RecommandGuildList[len+i] = info
|
this.RecommandGuildList[len+i] = info
|
||||||
end
|
end
|
||||||
|
if #msg.familyRecomandInfo < 10 then
|
||||||
|
this.MaxNumber = true
|
||||||
|
else
|
||||||
|
this.MaxNumber = false
|
||||||
|
end
|
||||||
if func then func() end
|
if func then func() end
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue