修改bug

This commit is contained in:
Caiyanpeng committed 2022-01-13 18:50:51 +08:00
1 parent 0a1ba5fbde
commit d89deba02c
9 files changed
+438 -310

No files matched your search

@@ -365,7 +365,7 @@ public class MapListController : PFUIPanel
{
var scrollrect = scroll.GetComponent<ScrollRect>();
Debug.Log(scrollrect.verticalNormalizedPosition);
if (scrollrect.verticalNormalizedPosition <= 0)
if (scrollrect.verticalNormalizedPosition < 0)
{
pageIndex++;
GetList();
@@ -137,6 +137,7 @@ public class MapListExtraController : PFUIPanel
var res = await ConfigHelper.mapApi.GetMemberMapRouteAreaList(pageIndex, 10);
if (res.result)
{
p2.Find("Scroll View/Error").gameObject.SetActive(res.data.Count == 0);
foreach (var area in res.data)
{
var item = Instantiate<Transform>(tmpCollectItem);
@@ -267,16 +267,15 @@ public class NewRouteDetailController : PFUIPanel
#if !(UNITY_ANDROID || UNITY_IOS)
transform.Find("Container/Left/NOData").gameObject.SetActive(res.data.UserList.Count == 0);
transform.Find("Container/Left/Users").DestroyChildren();
#endif
foreach (var item in res.data.UserList)
{
var info = Instantiate<GameObject>(userinfo);
Utils.DisplayImageTempDict(info.transform.Find("Avatar").GetComponent<Image>(), item.WxHeadImg, caches);
info.transform.Find("NickName").GetComponent<Text>().text = item.NickName;
info.transform.SetParent(transform.Find("Container/Left/Users"));
info.transform.localScale = Vector3.one;
}
#endif
}
}