【bug】修复好友列表不能滑动的问题
parent
79bc5b3966
commit
1e62d7eed0
|
@ -227,10 +227,10 @@ function GoodFriendMainPanel:OnShow()
|
|||
this.roleImage2:SetActive(false)
|
||||
this.roleImage3:SetActive(false)
|
||||
this.roleImage4:SetActive(false)
|
||||
this:FriendListDataShow(true,true)
|
||||
this:FriendApplicationDataShow(true,true)
|
||||
this:FriendSearchDataShow(true,true)
|
||||
this:BlackListDataShow(true,true)
|
||||
-- this:FriendListDataShow(true,true)
|
||||
-- this:FriendApplicationDataShow(true,true)
|
||||
-- this:FriendSearchDataShow(true,true)
|
||||
-- this:BlackListDataShow(true,true)
|
||||
this.isInRecommendPage = true
|
||||
this:OnRefreshData()
|
||||
this.UpView:OnOpen({ showType = UpViewOpenType.ShowLeft, panelType = PanelType.GoodFriend })
|
||||
|
@ -336,7 +336,8 @@ function GoodFriendMainPanel:OnDestroy()
|
|||
end
|
||||
|
||||
--好友列表循环滚动数据
|
||||
function GoodFriendMainPanel:FriendListDataShow(isTop,isAni)
|
||||
function GoodFriendMainPanel:FriendListDataShow()
|
||||
LogYellow("GoodFriendMainPanel:FriendListDataShow")
|
||||
CheckRedPointStatus(RedPointType.Friend_GetAllReward)
|
||||
this:OnRefreshData()
|
||||
local list = {}
|
||||
|
@ -369,7 +370,7 @@ function GoodFriendMainPanel:FriendListDataShow(isTop,isAni)
|
|||
-- else
|
||||
-- item.gameObject:SetActive(true)
|
||||
-- end
|
||||
end,not isTop,not isAni)
|
||||
end)
|
||||
if isPlayAnim then
|
||||
SecTorPlayAnimByScroll(this.ScrollView1)
|
||||
isPlayAnim = false
|
||||
|
@ -378,7 +379,7 @@ function GoodFriendMainPanel:FriendListDataShow(isTop,isAni)
|
|||
this.haveGetRewardNumText.text=Language[10810]..(GoodFriendManager.MaxEnergy-GoodFriendManager.MaxEnergyGet).."/"..GoodFriendManager.MaxEnergy
|
||||
end
|
||||
--好友申请循环滚动数据
|
||||
function GoodFriendMainPanel:FriendApplicationDataShow(isTop,isAni)
|
||||
function GoodFriendMainPanel:FriendApplicationDataShow()
|
||||
-- 检测红点
|
||||
CheckRedPointStatus(RedPointType.Friend_Application)
|
||||
this:OnRefreshData()
|
||||
|
@ -416,7 +417,7 @@ function GoodFriendMainPanel:FriendApplicationDataShow(isTop,isAni)
|
|||
-- else
|
||||
-- item.gameObject:SetActive(true)
|
||||
-- end
|
||||
end,not isTop,not isAni)
|
||||
end)
|
||||
if isPlayAnim then
|
||||
SecTorPlayAnimByScroll(this.ScrollView2)
|
||||
isPlayAnim = false
|
||||
|
@ -424,8 +425,7 @@ function GoodFriendMainPanel:FriendApplicationDataShow(isTop,isAni)
|
|||
end
|
||||
|
||||
--好友搜索循环滚动数据
|
||||
function GoodFriendMainPanel:FriendSearchDataShow(isTop,isAni)
|
||||
LogRed("isTop "..tostring(isTop).." isAni "..tostring(isAni))
|
||||
function GoodFriendMainPanel:FriendSearchDataShow()
|
||||
this:OnRefreshData()
|
||||
local list = {}
|
||||
local j = 1
|
||||
|
@ -457,7 +457,7 @@ LogRed("isTop "..tostring(isTop).." isAni "..tostring(isAni)
|
|||
-- else
|
||||
-- item.gameObject:SetActive(true)
|
||||
-- end
|
||||
end,not isTop,not isAni)
|
||||
end)
|
||||
if isPlayAnim then
|
||||
SecTorPlayAnimByScroll(this.ScrollView3)
|
||||
isPlayAnim = false
|
||||
|
@ -465,7 +465,7 @@ LogRed("isTop "..tostring(isTop).." isAni "..tostring(isAni)
|
|||
end
|
||||
|
||||
--黑名单滚动数据
|
||||
function GoodFriendMainPanel:BlackListDataShow(isTop,isAni)
|
||||
function GoodFriendMainPanel:BlackListDataShow()
|
||||
this:OnRefreshData()
|
||||
local list = {}
|
||||
local j = 1
|
||||
|
@ -497,7 +497,7 @@ function GoodFriendMainPanel:BlackListDataShow(isTop,isAni)
|
|||
-- else
|
||||
-- item.gameObject:SetActive(true)
|
||||
-- end
|
||||
end,not isTop,not isAni)
|
||||
end)
|
||||
if isPlayAnim then
|
||||
SecTorPlayAnimByScroll(this.ScrollView4)
|
||||
isPlayAnim = false
|
||||
|
|
Loading…
Reference in New Issue