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